- Timestamp:
- May 30, 2015, 7:59:48 PM (11 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/eam_branches/ohana.20150429/src/opihi/cmd.data/rd.c
r38338 r38340 85 85 return (FALSE); 86 86 } 87 if (gfits_extension_is_compressed (&buf[0].header)) {87 if (gfits_extension_is_compressed_image (&buf[0].header)) { 88 88 IsCompressed = TRUE; 89 89 } … … 118 118 Nword = 1; 119 119 IsCompressed = FALSE; 120 if (gfits_extension_is_compressed (&buf[0].header)) {120 if (gfits_extension_is_compressed_image (&buf[0].header)) { 121 121 if (!strcmp (CCDKeyword, "EXTNAME")) Nword = 1; 122 122 IsCompressed = TRUE; … … 194 194 195 195 if (!gfits_fread_ftable_data (f, &ftable, FALSE)) { fprintf (stderr, "problem reading compressed image table data\n"); fclose (f); return FALSE; } 196 fprintf (stderr, "rd 1: ");197 for (i = 0; i < 32; i++) {198 fprintf (stderr, "0x%0hhx ", ftable.buffer[i]);199 }200 fprintf (stderr, "\n");201 202 196 if (!gfits_byteswap_varlength_column (&ftable, 1)) { fprintf (stderr, "problem doing byteswap on compressed image metadata column\n"); fclose (f); gfits_free_table (&ftable); return FALSE; } 203 fprintf (stderr, "rd 2: ");204 for (i = 0; i < 32; i++) {205 fprintf (stderr, "0x%0hhx ", ftable.buffer[i]);206 }207 fprintf (stderr, "\n");208 209 197 if (!gfits_uncompress_image (&buf[0].header, &buf[0].matrix, &ftable)) { fprintf (stderr, "problem uncompressing the image data\n"); fclose (f); gfits_free_table (&ftable); return FALSE; } 210 198
Note:
See TracChangeset
for help on using the changeset viewer.
