Changeset 25745 for branches/eam_branches/20090715/psModules/src/imcombine
- Timestamp:
- Oct 2, 2009, 12:11:34 PM (17 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/eam_branches/20090715/psModules/src/imcombine/pmPSFEnvelope.c
r25626 r25745 149 149 } 150 150 151 // Test PSF 152 { 153 bool goodPSF = true; // Good PSF? 154 pmModelClassSetLimits(PM_MODEL_LIMITS_IGNORE); 155 pmModel *model = pmModelFromPSFforXY(psf, numCols / 2.0, numRows / 2.0, PEAK_FLUX); // Test model 156 model->modelSetLimits(PM_MODEL_LIMITS_STRICT); 157 for (int j = 0; j < model->params->n && goodPSF; j++) { 158 if (!model->modelLimits(PS_MINIMIZE_PARAM_MIN, j, model->params->data.F32, NULL) || 159 !model->modelLimits(PS_MINIMIZE_PARAM_MAX, j, model->params->data.F32, NULL)) { 160 goodPSF = false; 161 } 162 } 163 psFree(model); 164 if (!goodPSF) { 165 psWarning("PSF %d is bad --- not including in envelope calculation.", i); 166 continue; 167 } 168 } 169 151 170 pmResiduals *resid = psf->residuals;// PSF residuals 152 171 psf->residuals = NULL; 153 172 if (!pmReadoutFakeFromSources(fakeRO, fakeSize, fakeSize, fakes, 0, xOffset, yOffset, psf, 154 NAN, radius, true, true)) {173 NAN, radius, true, false)) { 155 174 psError(PS_ERR_UNKNOWN, false, "Unable to generate fake readout."); 156 175 psFree(envelope);
Note:
See TracChangeset
for help on using the changeset viewer.
