Changeset 21287
- Timestamp:
- Feb 4, 2009, 11:07:14 AM (17 years ago)
- Location:
- branches/pap_branch_20090128/psModules/src/camera
- Files:
-
- 2 edited
-
pmFPAWrite.c (modified) (3 diffs)
-
pmFPAWrite.h (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
branches/pap_branch_20090128/psModules/src/camera/pmFPAWrite.c
r21270 r21287 500 500 PS_ASSERT_PTR_NON_NULL(cell, false); 501 501 PS_ASSERT_PTR_NON_NULL(fits, false); 502 return cellWrite(cell, fits, config, blank, FPA_WRITE_TYPE_VARIANCE); 502 if (!cellWrite(cell, fits, config, blank, FPA_WRITE_TYPE_VARIANCE)) { 503 return false; 504 } 505 if (!pmCellWriteCovariance(fits, cell)) { 506 return false; 507 } 508 return true; 503 509 } 504 510 … … 507 513 PS_ASSERT_PTR_NON_NULL(chip, false); 508 514 PS_ASSERT_PTR_NON_NULL(fits, false); 509 return chipWrite(chip, fits, config, blank, recurse, FPA_WRITE_TYPE_VARIANCE); 515 if (!chipWrite(chip, fits, config, blank, recurse, FPA_WRITE_TYPE_VARIANCE)) { 516 return false; 517 } 518 if (!pmChipWriteCovariance(fits, chip)) { 519 return false; 520 } 521 return true; 510 522 } 511 523 … … 514 526 PS_ASSERT_PTR_NON_NULL(fpa, false); 515 527 PS_ASSERT_PTR_NON_NULL(fits, false); 516 return fpaWrite(fpa, fits, config, blank, recurse, FPA_WRITE_TYPE_VARIANCE); 528 if (!fpaWrite(fpa, fits, config, blank, recurse, FPA_WRITE_TYPE_VARIANCE)) { 529 return false; 530 } 531 if (!pmFPAWriteCovariance(fits, fpa)) { 532 return false; 533 } 534 return true; 517 535 } 518 536 -
branches/pap_branch_20090128/psModules/src/camera/pmFPAWrite.h
r21211 r21287 4 4 * @author Paul Price, IfA 5 5 * 6 * @version $Revision: 1.11.44. 1$ $Name: not supported by cvs2svn $7 * @date $Date: 2009-0 1-29 00:33:51$6 * @version $Revision: 1.11.44.2 $ $Name: not supported by cvs2svn $ 7 * @date $Date: 2009-02-04 21:07:14 $ 8 8 * Copyright 2005-2006 Institute for Astronomy, University of Hawaii 9 9 */ … … 165 165 ); 166 166 167 /// Write covariance matrix to a FITS file 168 /// 169 /// The covariance matrices for a cell are written to an independent extension, named after the chip and cell 170 /// name. 171 bool pmCellWriteCovariance(psFits *fits,///< FITS file to which to write 172 const pmCell *cell ///< Cell for which to write covariance 173 ); 174 175 bool pmChipWriteCovariance(psFits *fits,///< FITS file to which to write 176 const pmChip *chip ///< Chip for which to write covariance 177 ); 178 179 bool pmFPAWriteCovariance(psFits *fits,///< FITS file to which to write 180 const pmFPA *fpa ///< FPA for which to write covariance 181 ); 182 167 183 // XXX better name, please 168 184 bool pmFPAUpdateNames(pmFPA *fpa, pmChip *chip, pmCell *cell);
Note:
See TracChangeset
for help on using the changeset viewer.
