- Timestamp:
- Feb 2, 2009, 2:37:06 PM (17 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/pap_branch_20090128/psModules/src/camera/pmHDU.c
r21264 r21269 12 12 #include "pmHDU.h" 13 13 #include "pmFPA.h" 14 15 #define COVARIANCE_INDICATOR "PS_COVAR" // FITS keyword to indicate if covariance matrices are present16 14 17 15 ////////////////////////////////////////////////////////////////////////////////////////////////////////////// … … 162 160 PS_ASSERT_PTR_NON_NULL(fits, false); 163 161 164 if (!hduRead(hdu, &hdu->variances, fits)) { 165 return false; 166 } 167 168 return true; 162 return hduRead(hdu, &hdu->variances, fits); 169 163 } 170 164 … … 246 240 PS_ASSERT_PTR_NON_NULL(fits, false); 247 241 248 pmHDUCovariancesWriteHeader(hdu);249 250 242 psImageMaskType maskVal = pmConfigMaskGet("MASK.VALUE", config); // Value to mask 251 if (!hduWrite(hdu, hdu->variances, hdu->masks, maskVal, fits)) { 252 return false; 253 } 254 pmHDUCovarianceClearHeader(hdu); 255 256 if (!pmHDUCovarianceWrite(hdu, fits)) { 257 psError(PS_ERR_UNKNOWN, false, "Unable to write covariance"); 258 return false; 259 } 260 261 return true; 262 } 243 return hduWrite(hdu, hdu->variances, hdu->masks, maskVal, fits); 244 }
Note:
See TracChangeset
for help on using the changeset viewer.
