- Timestamp:
- Jun 4, 2015, 5:42:47 PM (11 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/eam_branches/ohana.20150429/src/libfits/matrix/F_compress_data.c
r38362 r38366 42 42 43 43 // do not actually compress : this is used for testing 44 if (!strcasecmp(cmptype, "NONE") ) {44 if (!strcasecmp(cmptype, "NONE") || !strcasecmp(cmptype, "NONE_2")) { 45 45 unsigned long Nbytes = Nrawpix * rawpix_size; 46 46 … … 85 85 // fprintf (stderr, "%d comp bytes; %d uncomp 'pixels', totals: %d %d\n", Nzdata, Npix, Ninsum, Noutsum); 86 86 87 char buffer[1000];88 87 int k; 89 88 … … 101 100 fprintf (stderr, "Nout: %d, Nrawpix: %d\n", Nout, Nrawpix); 102 101 fprintf (stderr, "cmp inp: "); 103 for (k = 0; k < Nout; k++) { fprintf (stderr, " 0x%02hhx ", zdata[k]); }102 for (k = 0; k < Nout; k++) { fprintf (stderr, "%02hhx", zdata[k]); if (k % 2) fprintf (stderr, " "); } 104 103 fprintf (stderr, "\n"); 105 104 } 106 107 status = fits_rdecomp_short ((unsigned char *) zdata, Nout, (unsigned short *) buffer, Nrawpix, blocksize);108 myAssert (!status, "failed to rdecomp");109 105 break; 110 106
Note:
See TracChangeset
for help on using the changeset viewer.
