Changeset 29548 for trunk/psphot/src/psphotFitSourcesLinearStack.c
- Timestamp:
- Oct 25, 2010, 3:16:58 PM (16 years ago)
- File:
-
- 1 edited
-
trunk/psphot/src/psphotFitSourcesLinearStack.c (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/psphot/src/psphotFitSourcesLinearStack.c
r29004 r29548 35 35 bool CONSTANT_PHOTOMETRIC_WEIGHTS = psMetadataLookupBool(&status, recipe, "CONSTANT_PHOTOMETRIC_WEIGHTS"); 36 36 psAssert (status, "You must provide a value for the BOOL recipe CONSTANT_PHOTOMETRIC_WEIGHTS"); 37 38 float MIN_VALID_FLUX = psMetadataLookupF32(&status, recipe, "PSF_FIT_MIN_VALID_FLUX"); 39 if (!status) { 40 MIN_VALID_FLUX = 0.0; 41 } 42 float MAX_VALID_FLUX = psMetadataLookupF32(&status, recipe, "PSF_FIT_MAX_VALID_FLUX"); 43 if (!status) { 44 MAX_VALID_FLUX = 1e+8; 45 } 37 46 38 47 // XXX store a local static array of covar factors for each of the images (by image ID) … … 123 132 124 133 psSparseConstraint constraint; 125 constraint.paramMin = 0.0;126 constraint.paramMax = 1e8;127 constraint.paramDelta = 1e 8;134 constraint.paramMin = MIN_VALID_FLUX; 135 constraint.paramMax = MAX_VALID_FLUX; 136 constraint.paramDelta = 1e7; 128 137 129 138 // solve for normalization terms (need include local sky?)
Note:
See TracChangeset
for help on using the changeset viewer.
