Changeset 15441
- Timestamp:
- Nov 2, 2007, 4:05:10 PM (19 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/eam_branch_20071015/Ohana/src/opihi/cmd.data/rd.c
r15353 r15441 5 5 6 6 int i, N, status, plane, Nplane, extend, Nextend, Nskip, JustHead; 7 int ccdsel, done ;7 int ccdsel, done, Nword, IsCompressed; 8 8 char region[512], *ccdid, *filename; 9 9 FILE *f; … … 84 84 fclose (f); 85 85 return (FALSE); 86 } 87 if (gfits_extension_is_compressed (&buf[0].header)) { 88 IsCompressed = TRUE; 86 89 } 87 90 } … … 115 118 Nword = 1; 116 119 IsCompressed = FALSE; 117 if (gfits_extension_is_compressed _data(&buf[0].header)) {120 if (gfits_extension_is_compressed (&buf[0].header)) { 118 121 if (!strcmp (CCDKeyword, "EXTNAME")) Nword = 2; 119 122 IsCompressed = TRUE; … … 137 140 if (extend || ccdsel) { 138 141 if (!IsCompressed) { 139 gfits_extended_to_primary ( buf[0].header, TRUE, "Standard FITS");142 gfits_extended_to_primary (&buf[0].header, TRUE, "Standard FITS"); 140 143 } 141 144 } else { … … 179 182 ftable.header = &theader; 180 183 gfits_copy_header (&buf[0].header, ftable.header); 181 status = gfits_fread_ table(f, &ftable); // XXX does this do more than read the bytes?182 status = gfits_uncompress_image (&buf[0].header, &buf[0].matrix, ftable, ccdsel || extend);184 status = gfits_fread_ftable_data (f, &ftable); // XXX does this do more than read the bytes? 185 status = gfits_uncompress_image (&buf[0].header, &buf[0].matrix, &ftable, !(ccdsel || extend)); 183 186 gfits_free_table (&ftable); 184 187 // XXX this currently does not work for a cube (we get a cube back, not a specific plane)
Note:
See TracChangeset
for help on using the changeset viewer.
