Changeset 17561 for trunk/psphot/src/psphotIsophotal.c
- Timestamp:
- May 7, 2008, 11:14:09 AM (18 years ago)
- File:
-
- 1 edited
-
trunk/psphot/src/psphotIsophotal.c (modified) (5 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/psphot/src/psphotIsophotal.c
r17396 r17561 1 1 # include "psphotInternal.h" 2 3 static float ISOPHOT_FLUX = NAN;4 2 5 3 bool psphotIsophotal (pmSource *source, psMetadata *recipe, psMaskType maskVal) { … … 16 14 17 15 // flux at which to measure isophotal parameters 18 if (!isfinite(ISOPHOT_FLUX)) { 19 // XXX ISOPHOTAL_FLUX should be specified in mags, need the zero point to get counts/sec 20 ISOPHOT_FLUX = psMetadataLookupF32 (&status, recipe, "ISOPHOTAL_FLUX"); 21 assert (status); 22 } 16 // XXX ISOPHOTAL_FLUX should be specified in mags, need the zero point to get counts/sec 17 float ISOPHOT_FLUX = psMetadataLookupF32 (&status, recipe, "ISOPHOTAL_FLUX"); 18 assert (status); 23 19 24 20 // find the first bin below the flux level and the last above the level 25 21 // XXX can this be done faster with bisection? 26 // XXX do I need to worry about crazy outliers? 22 // XXX do I need to worry about crazy outliers? 27 23 // XXX should i be smoothing or fitting the curve? 28 24 int firstBelow = -1; … … 44 40 return false; 45 41 } 46 42 47 43 // need to examine pixels in this vicinity 48 44 float isophotalFluxFirst = 0; … … 65 61 source->extpars->isophot = pmSourceIsophotalValuesAlloc (); 66 62 } 67 63 68 64 // these are uncalibrated: instrumental mags and pixel units 69 65 source->extpars->isophot->mag = -2.5*log10(isophotalFlux); … … 74 70 75 71 psTrace ("psphot", 5, "Isophot flux:%f +/- %f @ %f +/- %f for %f, %f\n", 76 source->extpars->isophot->mag, source->extpars->isophot->magErr,77 source->extpars->isophot->rad, source->extpars->isophot->radErr,78 source->peak->xf, source->peak->yf);72 source->extpars->isophot->mag, source->extpars->isophot->magErr, 73 source->extpars->isophot->rad, source->extpars->isophot->radErr, 74 source->peak->xf, source->peak->yf); 79 75 80 76 return true;
Note:
See TracChangeset
for help on using the changeset viewer.
