Changeset 29455
- Timestamp:
- Oct 17, 2010, 9:21:18 AM (16 years ago)
- Location:
- branches/eam_branches/ipp-20100823/psphot/src
- Files:
-
- 2 edited
-
psphotFitSourcesLinear.c (modified) (1 diff)
-
psphotFitSourcesLinearStack.c (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
branches/eam_branches/ipp-20100823/psphot/src/psphotFitSourcesLinear.c
r29004 r29455 104 104 float MIN_VALID_FLUX = psMetadataLookupF32(&status, recipe, "PSF_FIT_MIN_VALID_FLUX"); 105 105 if (!status) { 106 MIN_VALID_FLUX = 1e-8;106 MIN_VALID_FLUX = 0.0; 107 107 } 108 108 float MAX_VALID_FLUX = psMetadataLookupF32(&status, recipe, "PSF_FIT_MAX_VALID_FLUX"); -
branches/eam_branches/ipp-20100823/psphot/src/psphotFitSourcesLinearStack.c
r29004 r29455 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.
