Changeset 38343
- Timestamp:
- May 31, 2015, 8:59:47 AM (11 years ago)
- Location:
- branches/eam_branches/ohana.20150429/src/libfits
- Files:
-
- 3 edited
-
table/F_compress_T.c (modified) (1 diff)
-
table/F_uncompress_T.c (modified) (1 diff)
-
test/compress.sh (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
branches/eam_branches/ohana.20150429/src/libfits/table/F_compress_T.c
r38342 r38343 154 154 155 155 int Nraw = Nrows*fields[j].Nvalues; // number of pixels 156 if (!strcmp(fields[j].zctype, "GZIP_1")) { 157 if (!gfits_byteswap_zdata (raw, Nraw, fields[j].pixsize)) ESCAPE(A); 158 } 159 156 160 int Nzdata = Nzdata_alloc; // available space, replaced with actual output size on compression 157 161 if (!gfits_compress_data (zdata, &Nzdata, fields[j].zctype, NULL, NULL, 0, raw, Nraw, fields[j].pixsize)) ESCAPE(A); -
branches/eam_branches/ohana.20150429/src/libfits/table/F_uncompress_T.c
r38342 r38343 124 124 if (!gfits_uncompress_data (zdata, Nzdata, fields[i].zctype, NULL, NULL, 0, raw, &Nraw, fields[i].pixsize)) ESCAPE(A); 125 125 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 126 131 off_t row_start = row*ztilelen; 127 132 // ^- first row for this tile & field -
branches/eam_branches/ohana.20150429/src/libfits/test/compress.sh
r38342 r38343 119 119 delete -q x 120 120 121 $NPT = 10 121 $NPT = 1000 122 122 create x 0 $NPT 123 123 … … 177 177 delete -q x y z 178 178 179 $NPT = 10 179 $NPT = 1000 180 180 create x 0 $NPT 181 181 set y = x^2
Note:
See TracChangeset
for help on using the changeset viewer.
