- Timestamp:
- Jun 9, 2013, 3:31:46 PM (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/eam_branches/ipp-20130509/psphot/src/psphotChoosePSF.c
r34317 r35640 158 158 } 159 159 float maxChisqDOF = psMetadataLookupF32 (&status, recipe, "PSF_FIT_MAX_CHISQ"); // Fit tolerance 160 161 bool chisqConvergence = psMetadataLookupBool (&status, recipe, "LMM_FIT_CHISQ_CONVERGENCE"); // Fit tolerance 162 if (!status) { 163 // default to the old method (chisqConvergence) 164 chisqConvergence = true; 165 } 166 167 int gainFactorMode = psMetadataLookupS32 (&status, recipe, "LMM_FIT_GAIN_FACTOR_MODE"); // Fit tolerance 168 if (!status) { 169 // default to the old method (chisqConvergence) 170 gainFactorMode = 0; 171 } 160 172 161 173 // options which modify the behavior of the model fitting … … 169 181 options->fitOptions->mode = PM_SOURCE_FIT_PSF; 170 182 options->fitOptions->covarFactor = psImageCovarianceFactorForAperture(readout->covariance, 10.0); // Covariance matrix 171 172 183 184 options->fitOptions->gainFactorMode = gainFactorMode; 185 options->fitOptions->chisqConvergence = chisqConvergence; 186 173 187 psArray *stars = psArrayAllocEmpty (sources->n); 174 188
Note:
See TracChangeset
for help on using the changeset viewer.
