Changeset 13900 for trunk/psphot/src/psphotGrowthCurve.c
- Timestamp:
- Jun 19, 2007, 4:40:44 PM (19 years ago)
- File:
-
- 1 edited
-
trunk/psphot/src/psphotGrowthCurve.c (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/psphot/src/psphotGrowthCurve.c
r13035 r13900 7 7 // XXX add a option to turn off the curve-of-growth (ie, make the apMag = fitMag everywhere); 8 8 9 bool psphotGrowthCurve (pmReadout *readout, pmPSF *psf, bool ignore ) {9 bool psphotGrowthCurve (pmReadout *readout, pmPSF *psf, bool ignore, psMaskType maskVal) { 10 10 11 11 // bool status; … … 45 45 46 46 // loop over a range of source fluxes 47 // no need to interpolate since we have force the object center 47 // no need to interpolate since we have force the object center 48 48 // to 0.5, 0.5 above 49 49 for (int i = 0; i < psf->growth->radius->n; i++) { … … 53 53 radius = psf->growth->radius->data.F32[i]; 54 54 55 // NOTE: we use pmModelAdd not pmSourceAdd because we are not working with a normal source55 // NOTE: we use pmModelAdd not pmSourceAdd because we are not working with a normal source 56 56 psImageKeepCircle (mask, xc, yc, radius, "OR", PM_MASK_MARK); 57 pmModelAdd (image, mask, model, PM_MODEL_OP_FULL );58 pmSourcePhotometryAper (&apMag, model, image, mask );57 pmModelAdd (image, mask, model, PM_MODEL_OP_FULL, maskVal); 58 pmSourcePhotometryAper (&apMag, model, image, mask, maskVal); 59 59 psImageKeepCircle (mask, xc, yc, radius, "AND", PS_NOT_U8(PM_MASK_MARK)); 60 60 61 // the 'ignore' mode is for testing62 if (ignore) {63 psf->growth->apMag->data.F32[i] = fitMag;64 } else {65 psf->growth->apMag->data.F32[i] = apMag;66 }61 // the 'ignore' mode is for testing 62 if (ignore) { 63 psf->growth->apMag->data.F32[i] = fitMag; 64 } else { 65 psf->growth->apMag->data.F32[i] = apMag; 66 } 67 67 } 68 68
Note:
See TracChangeset
for help on using the changeset viewer.
