Changeset 13593 for trunk/psphot/src
- Timestamp:
- Jun 1, 2007, 6:16:29 PM (19 years ago)
- Location:
- trunk/psphot/src
- Files:
-
- 3 edited
-
psphot.h (modified) (1 diff)
-
psphotMaskReadout.c (modified) (2 diffs)
-
psphotReadout.c (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/psphot/src/psphot.h
r13411 r13593 57 57 int pmSourceSortByY (const void **a, const void **b); 58 58 bool psphotGrowthCurve (pmReadout *readout, pmPSF *psf, bool ignore); 59 bool psphotMaskReadout (pmReadout *readout, psMetadata *recipe );59 bool psphotMaskReadout (pmReadout *readout, psMetadata *recipe, pmConfig *config); 60 60 void psphotSourceFreePixels (psArray *sources); 61 61 -
trunk/psphot/src/psphotMaskReadout.c
r12792 r13593 1 1 # include "psphotInternal.h" 2 2 3 bool psphotMaskReadout (pmReadout *readout, psMetadata *recipe ) {4 3 bool psphotMaskReadout (pmReadout *readout, psMetadata *recipe, pmConfig *config) { 4 5 5 bool status; 6 6 … … 19 19 20 20 // psImageKeepRegion assumes the region refers to the parent coordinates 21 psImageKeepRegion (readout->mask, keep, "OR", PM_MASK_BAD);21 psImageKeepRegion (readout->mask, keep, "OR", pmConfigMask("BAD", config)); 22 22 23 23 return true; -
trunk/psphot/src/psphotReadout.c
r13411 r13593 24 24 25 25 // generate mask & weight images if they don't already exit 26 if ((!readout->mask && !pmReadoutGenerateMask(readout)) || 26 if ((!readout->mask && !pmReadoutGenerateMask(readout, pmConfigMask("SAT", config), 27 pmConfigMask("BAD", config))) || 27 28 (!readout->weight && !pmReadoutGenerateWeight(readout, true))) { 28 29 psError (PSPHOT_ERR_CONFIG, false, "trouble creating mask and/or weight"); … … 37 38 38 39 // I have a valid mask, now mask in the analysis region of interest 39 psphotMaskReadout (readout, recipe );40 psphotMaskReadout (readout, recipe, config); 40 41 41 42 // run a single-model test if desired
Note:
See TracChangeset
for help on using the changeset viewer.
