Changeset 5772 for trunk/psphot/src/psphotEnsemblePSF.c
- Timestamp:
- Dec 13, 2005, 6:43:44 AM (21 years ago)
- File:
-
- 1 edited
-
trunk/psphot/src/psphotEnsemblePSF.c (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/psphot/src/psphotEnsemblePSF.c
r5718 r5772 12 12 // source analysis is done in spatial order 13 13 sources = psArraySort (sources, psphotSortByY); 14 15 // this should be added to the PM_SOURCE flags:16 int PM_SOURCE_BLEND = PM_SOURCE_OTHER + 1;17 14 18 15 float OUTER_RADIUS = psMetadataLookupF32 (&status, config, "SKY_OUTER_RADIUS"); … … 35 32 // skip non-astronomical objects (very likely defects) 36 33 // XXX EAM : should we try these anyway? 37 if (inSource-> type ==PM_SOURCE_BLEND) continue;34 if (inSource->mode & PM_SOURCE_BLEND) continue; 38 35 if (inSource->type == PM_SOURCE_DEFECT) continue; 39 36 if (inSource->type == PM_SOURCE_SATURATED) continue; … … 73 70 psImage *mask = otSource->mask; 74 71 75 // XXX EAM : set model to unit peak, zero sky, maybe use peak (x,y)72 // XXX EAM : use these lines to fit to the peak 76 73 // model->params->data.F32[2] = inSource->peak->x; 77 74 // model->params->data.F32[3] = inSource->peak->y; 75 // XXX EAM : better option: improve the peak with 2D poly fit 3x3 76 77 // set model to unit peak, zero sky (we assume sky is constant) 78 78 model->params->data.F32[0] = 0.0; 79 79 model->params->data.F32[1] = 1.0;
Note:
See TracChangeset
for help on using the changeset viewer.
