- Timestamp:
- Jan 7, 2010, 5:07:54 PM (17 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/eam_branches/20091201/psphot/src/psphotMaskReadout.c
r26523 r26542 2 2 3 3 // generate mask and variance if not defined, additional mask for restricted subregion 4 bool psphotSetMaskAndVariance (pmConfig *config, pmReadout *readout, psMetadata *recipe) {4 bool psphotSetMaskAndVarianceReadout (pmConfig *config, pmReadout *readout, psMetadata *recipe) { 5 5 6 6 bool status; … … 76 76 } 77 77 78 bool psphotS tackSetMaskAndVariance (pmConfig *config, const pmFPAview *view, psMetadata *recipe) {78 bool psphotSetMaskAndVariance (pmConfig *config, const pmFPAview *view, psMetadata *recipe) { 79 79 80 int num = psMetadataAddS32 (&status, config->arguments, "INPUTS.NUM"); 81 psAbort (!status, "programming error: must define INPUTS.NUM"); 80 bool status = false; 81 82 int num = psMetadataLookupS32 (&status, config->arguments, "PSPHOT.INPUT.NUM"); 83 psAssert (status, "programming error: must define PSPHOT.INPUT.NUM"); 82 84 83 85 // loop over the available readouts … … 85 87 86 88 pmFPAfile *file = pmFPAfileSelectSingle(config->files, "PSPHOT.INPUT", i); // File of interest 89 PS_ASSERT_PTR_NON_NULL (file, false); 87 90 88 91 // find the currently selected readout … … 91 94 92 95 // Generate the mask and weight images, including the user-defined analysis region of interest 93 psphotSetMaskAndVariance (config, readout, recipe); 96 if (!psphotSetMaskAndVarianceReadout (config, readout, recipe)) { 97 psError (PSPHOT_ERR_CONFIG, false, "failed to generate mask for PSPHOT.INPUT entry %d", i); 98 return false; 99 } 94 100 95 101 // display the image, weight, mask (ch 1,2,3) 96 102 psphotVisualShowImage (readout); 97 103 } 98 104 return true; 99 105 }
Note:
See TracChangeset
for help on using the changeset viewer.
