Changeset 18555 for trunk/psphot/src/psphotExtendedSourceFits.c
- Timestamp:
- Jul 15, 2008, 10:25:50 AM (18 years ago)
- File:
-
- 1 edited
-
trunk/psphot/src/psphotExtendedSourceFits.c (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/psphot/src/psphotExtendedSourceFits.c
r17396 r18555 15 15 psMaskType maskVal = psMetadataLookupU8(&status, recipe, "MASK.PSPHOT"); // Mask value for bad pixels 16 16 assert (maskVal); 17 18 psMaskType markVal = psMetadataLookupU8(&status, recipe, "MARK.PSPHOT"); // Mask value for bad pixels 19 assert (markVal); 20 21 // maskVal is used to test for rejected pixels, and must include markVal 22 maskVal |= markVal; 17 23 18 24 // perform full extended source non-linear fits? … … 155 161 pmModel *modelFit = NULL; 156 162 if (convolved) { 157 modelFit = psphotPSFConvModel (readout, source, modelType, maskVal, psfSize);163 modelFit = psphotPSFConvModel (readout, source, modelType, maskVal, markVal, psfSize); 158 164 if (!modelFit) { 159 165 psTrace ("psphot", 5, "failed to fit psf-conv model for object at %f, %f", source->moments->x, source->moments->y); … … 168 174 psFree (source->modelFlux); 169 175 source->modelFlux = NULL; 170 modelFit = psphotFitEXT (readout, source, modelType, maskVal );176 modelFit = psphotFitEXT (readout, source, modelType, maskVal, markVal); 171 177 if (!modelFit) { 172 178 psTrace ("psphot", 5, "failed to fit plain model for object at %f, %f", source->moments->x, source->moments->y);
Note:
See TracChangeset
for help on using the changeset viewer.
