- Timestamp:
- Jan 28, 2009, 2:33:51 PM (17 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/pap_branch_20090128/psModules/src/camera/pmFPAWrite.c
r19385 r21211 29 29 FPA_WRITE_TYPE_IMAGE, // Write image 30 30 FPA_WRITE_TYPE_MASK, // Write mask 31 FPA_WRITE_TYPE_ WEIGHT // Write weightmap31 FPA_WRITE_TYPE_VARIANCE // Write variance map 32 32 } fpaWriteType; 33 33 … … 46 46 case FPA_WRITE_TYPE_MASK: 47 47 return &hdu->masks; 48 case FPA_WRITE_TYPE_ WEIGHT:49 return &hdu-> weights;48 case FPA_WRITE_TYPE_VARIANCE: 49 return &hdu->variances; 50 50 default: 51 51 psAbort("Unknown write type: %x\n", type); … … 66 66 case FPA_WRITE_TYPE_MASK: 67 67 return pmHDUWriteMask(hdu, fits, config); 68 case FPA_WRITE_TYPE_ WEIGHT:69 return pmHDUWrite Weight(hdu, fits, config);68 case FPA_WRITE_TYPE_VARIANCE: 69 return pmHDUWriteVariance(hdu, fits, config); 70 70 default: 71 71 psAbort("Unknown write type: %x\n", type); … … 74 74 } 75 75 76 // Write a cell image/mask/ weight76 // Write a cell image/mask/variance 77 77 static bool cellWrite(pmCell *cell, // Cell to write 78 78 psFits *fits, // FITS file to which to write … … 124 124 } 125 125 126 // Write a chip image/mask/ weight126 // Write a chip image/mask/variance 127 127 static bool chipWrite(pmChip *chip, // Chip to write 128 128 psFits *fits, // FITS file to which to write … … 188 188 189 189 190 // Write an FPA image/mask/ weight190 // Write an FPA image/mask/variance 191 191 static bool fpaWrite(pmFPA *fpa, // FPA to write 192 192 psFits *fits, // FITS file to which to write … … 417 417 418 418 419 bool pmCellWrite Weight(pmCell *cell, psFits *fits, pmConfig *config, bool blank)419 bool pmCellWriteVariance(pmCell *cell, psFits *fits, pmConfig *config, bool blank) 420 420 { 421 421 PS_ASSERT_PTR_NON_NULL(cell, false); 422 422 PS_ASSERT_PTR_NON_NULL(fits, false); 423 return cellWrite(cell, fits, config, blank, FPA_WRITE_TYPE_ WEIGHT);424 } 425 426 bool pmChipWrite Weight(pmChip *chip, psFits *fits, pmConfig *config, bool blank, bool recurse)423 return cellWrite(cell, fits, config, blank, FPA_WRITE_TYPE_VARIANCE); 424 } 425 426 bool pmChipWriteVariance(pmChip *chip, psFits *fits, pmConfig *config, bool blank, bool recurse) 427 427 { 428 428 PS_ASSERT_PTR_NON_NULL(chip, false); 429 429 PS_ASSERT_PTR_NON_NULL(fits, false); 430 return chipWrite(chip, fits, config, blank, recurse, FPA_WRITE_TYPE_ WEIGHT);431 } 432 433 bool pmFPAWrite Weight(pmFPA *fpa, psFits *fits, pmConfig *config, bool blank, bool recurse)430 return chipWrite(chip, fits, config, blank, recurse, FPA_WRITE_TYPE_VARIANCE); 431 } 432 433 bool pmFPAWriteVariance(pmFPA *fpa, psFits *fits, pmConfig *config, bool blank, bool recurse) 434 434 { 435 435 PS_ASSERT_PTR_NON_NULL(fpa, false); 436 436 PS_ASSERT_PTR_NON_NULL(fits, false); 437 return fpaWrite(fpa, fits, config, blank, recurse, FPA_WRITE_TYPE_ WEIGHT);437 return fpaWrite(fpa, fits, config, blank, recurse, FPA_WRITE_TYPE_VARIANCE); 438 438 } 439 439
Note:
See TracChangeset
for help on using the changeset viewer.
