Changeset 6715 for trunk/psphot/src/psphotEnsemblePSF.c
- Timestamp:
- Mar 27, 2006, 4:31:17 PM (20 years ago)
- File:
-
- 1 edited
-
trunk/psphot/src/psphotEnsemblePSF.c (modified) (6 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/psphot/src/psphotEnsemblePSF.c
r6571 r6715 44 44 // skip non-astronomical objects (very likely defects) 45 45 // XXX EAM : should we try these anyway? 46 if (inSource->type == PM_SOURCE_ DEFECT) continue;47 if (inSource->type == PM_SOURCE_ SATURATED) continue;46 if (inSource->type == PM_SOURCE_TYPE_DEFECT) continue; 47 if (inSource->type == PM_SOURCE_TYPE_SATURATED) continue; 48 48 if (final) { 49 if (inSource->mode & PM_SOURCE_ SUBTRACTED) continue;49 if (inSource->mode & PM_SOURCE_MODE_SUBTRACTED) continue; 50 50 } else { 51 if (inSource->mode & PM_SOURCE_ BLEND) continue;51 if (inSource->mode & PM_SOURCE_MODE_BLEND) continue; 52 52 } 53 53 … … 61 61 // really saturated stars should be re-measured for a better centroid 62 62 // XXX EAM : move this to a 'clear satstar function' 63 if (inSource->mode & PM_SOURCE_ SATSTAR) {63 if (inSource->mode & PM_SOURCE_MODE_SATSTAR) { 64 64 status = pmSourceMoments (inSource, INNER_RADIUS); 65 65 } … … 68 68 // use the source moments, etc to guess basic model parameters 69 69 pmModel *modelEXT = pmSourceModelGuess (inSource, psf->type); 70 if (inSource->mode & PM_SOURCE_ SATSTAR) {70 if (inSource->mode & PM_SOURCE_MODE_SATSTAR) { 71 71 modelEXT->params->data.F32[2] = inSource->moments->x; 72 72 modelEXT->params->data.F32[3] = inSource->moments->y; … … 118 118 // fill in the model pixel values 119 119 psImageInit (flux, 0.0); 120 psImageKeepCircle (mask, x, y, model->radius, "OR", P SPHOT_MASK_MARKED);121 pm SourceAddModel(flux, mask, model, false, false);120 psImageKeepCircle (mask, x, y, model->radius, "OR", PM_SOURCE_MASK_MARKED); 121 pmModelAdd (flux, mask, model, false, false); 122 122 123 123 // calculate nDOF (nPix - 1) 124 // int Nmaskpix = psImageCountPixelMask (mask, allArray, P SPHOT_MASK_SATURATED);124 // int Nmaskpix = psImageCountPixelMask (mask, allArray, PM_SOURCE_MASK_SATURATED); 125 125 // model->nDOF = mask->numCols*mask->numRows - Nmaskpix - 1; 126 126 … … 195 195 196 196 // subtract object 197 pm SourceSubModel(Fi->pixels, Fi->mask, Fi->modelPSF, false, false);198 Fi->mode |= PM_SOURCE_ SUBTRACTED;199 if (!final) Fi->mode |= PM_SOURCE_ TEMPSUB;197 pmModelSub (Fi->pixels, Fi->mask, Fi->modelPSF, false, false); 198 Fi->mode |= PM_SOURCE_MODE_SUBTRACTED; 199 if (!final) Fi->mode |= PM_SOURCE_MODE_TEMPSUB; 200 200 } 201 201 … … 209 209 y = model->params->data.F32[3]; 210 210 211 psImageKeepCircle (Fi->mask, x, y, model->radius, "OR", P SPHOT_MASK_MARKED);211 psImageKeepCircle (Fi->mask, x, y, model->radius, "OR", PM_SOURCE_MASK_MARKED); 212 212 pmSourceChisq (model, Fi->pixels, Fi->mask, Fi->weight); 213 psImageKeepCircle (Fi->mask, x, y, model->radius, "AND", ~P SPHOT_MASK_MARKED);213 psImageKeepCircle (Fi->mask, x, y, model->radius, "AND", ~PM_SOURCE_MASK_MARKED); 214 214 } 215 215
Note:
See TracChangeset
for help on using the changeset viewer.
