IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
May 31, 2015, 8:59:47 AM (11 years ago)
Author:
eugene
Message:

turn on byteswap for gzip

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/eam_branches/ohana.20150429/src/libfits/table/F_uncompress_T.c

    r38342 r38343  
    124124      if (!gfits_uncompress_data (zdata, Nzdata, fields[i].zctype, NULL, NULL, 0, raw, &Nraw, fields[i].pixsize)) ESCAPE(A);
    125125
     126      if (!strcasecmp(fields[i].zctype, "GZIP_1")) {
     127        myAssert ((fields[i].zdef.format != 'C') && (fields[i].zdef.format != 'M'), "swap is probably wrong for C or M columns");
     128        if (!gfits_byteswap_zdata (raw, Nraw, fields[i].pixsize)) ESCAPE(A);
     129      }
     130
    126131      off_t row_start = row*ztilelen;
    127132      // ^- first row for this tile & field
Note: See TracChangeset for help on using the changeset viewer.