Changeset 38062 for trunk/Ohana/src/opihi/cmd.data/wd.c
Legend:
- Unmodified
- Added
- Removed
-
trunk
- Property svn:mergeinfo changed
-
trunk/Ohana
- Property svn:mergeinfo deleted
-
trunk/Ohana/src/opihi/cmd.data/wd.c
r27435 r38062 81 81 memcpy (temp_header.buffer, buf[0].header.buffer, temp_header.datasize); 82 82 83 if (temp_header.Naxes) { 84 // the inBlank value probably does not matter: temp_matrix is float, so nan is used 85 gfits_convert_format (&temp_header, &temp_matrix, outBitpix, outScale, outZero, 0xffff, outUnsign); 86 } else { 87 gfits_modify (&temp_header, "BITPIX", "%d", 1, outBitpix); 88 gfits_modify (&temp_header, "BSCALE", "%lf", 1, outScale); 89 gfits_modify (&temp_header, "BZERO", "%lf", 1, outZero); 90 gfits_modify_alt (&temp_header, "UNSIGN", "%t", 1, outUnsign); 91 } 83 gfits_convert_format (&temp_header, &temp_matrix, outBitpix, outScale, outZero, 0xffff, outUnsign); 92 84 85 // Extend puts the output matrix in the first available non-PHU slot (ie, the last one) 86 // it updates NEXTEND and set EXTEND to TRUE, and modifies the PHU header (neither should happen) 87 // if those keywords do not exist... 93 88 if (Extend) { 94 89 Header Xhead;
Note:
See TracChangeset
for help on using the changeset viewer.
