IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Jun 4, 2015, 5:42:47 PM (11 years ago)
Author:
eugene
Message:

libfits compressed I/O seems to be generally working

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/eam_branches/ohana.20150429/src/libfits/matrix/F_compress_data.c

    r38362 r38366  
    4242
    4343  // do not actually compress : this is used for testing
    44   if (!strcasecmp(cmptype, "NONE")) {
     44  if (!strcasecmp(cmptype, "NONE") || !strcasecmp(cmptype, "NONE_2")) {
    4545    unsigned long Nbytes = Nrawpix * rawpix_size;
    4646
     
    8585    // fprintf (stderr, "%d comp bytes; %d uncomp 'pixels', totals: %d %d\n", Nzdata, Npix, Ninsum, Noutsum);
    8686
    87     char buffer[1000];
    8887    int k;
    8988
     
    101100          fprintf (stderr, "Nout: %d, Nrawpix: %d\n", Nout, Nrawpix);
    102101          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, " "); }
    104103          fprintf (stderr, "\n");
    105104        }
    106 
    107         status = fits_rdecomp_short ((unsigned char *) zdata, Nout, (unsigned short *) buffer, Nrawpix, blocksize);
    108         myAssert (!status, "failed to rdecomp");
    109105        break;
    110106
Note: See TracChangeset for help on using the changeset viewer.