Changeset 31154 for trunk/psphot/src/psphotRadialAperturesByObject.c
- Timestamp:
- Apr 4, 2011, 1:12:39 PM (15 years ago)
- Location:
- trunk/psphot
- Files:
-
- 2 edited
-
. (modified) (2 props)
-
src/psphotRadialAperturesByObject.c (modified) (4 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/psphot
- Property svn:ignore
-
old new 19 19 psphot-config 20 20 Doxyfile 21 a.out.dSYM
-
- Property svn:mergeinfo changed
- Property svn:ignore
-
trunk/psphot/src/psphotRadialAperturesByObject.c
r30624 r31154 43 43 assert (maskVal); 44 44 45 // XXX temporary user-supplied systematic sky noise measurement (derive from background model)46 float skynoise = psMetadataLookupF32 (&status, recipe, "SKY.NOISE");47 48 45 // S/N limit to perform full non-linear fits 49 46 float SN_LIM = psMetadataLookupF32 (&status, recipe, "RADIAL_APERTURES_SN_LIM"); … … 63 60 64 61 // source analysis is done in S/N order (brightest first) 65 objects = psArraySort (objects, pmPhotObjSortBy SN);62 objects = psArraySort (objects, pmPhotObjSortByFlux); 66 63 67 64 // generate look-up arrays for readouts … … 109 106 // limit selection to some SN limit 110 107 assert (source->peak); // how can a source not have a peak? 111 if (s ource->peak->SN< SN_LIM) continue;108 if (sqrt(source->peak->detValue) < SN_LIM) continue; 112 109 113 110 int index = source->imageID; … … 147 144 148 145 // force source image to be a bit larger... 149 // float radius = source->peak->xf - source->pixels->col0;150 // radius = PS_MAX (radius, source->peak->yf - source->pixels->row0);151 // radius = PS_MAX (radius, source->pixels->numRows - source->peak->yf + source->pixels->row0);152 // radius = PS_MAX (radius, source->pixels->numCols - source->peak->xf + source->pixels->col0);153 146 pmSourceRedefinePixels (source, readout, source->peak->xf, source->peak->yf, outerRadius + 2); 154 147 155 if (!psphotRadialApertureSource (source, recipe, skynoise,maskVal, radMax, nMatchedPSF)) {148 if (!psphotRadialApertureSource (source, recipe, maskVal, radMax, nMatchedPSF)) { 156 149 psTrace ("psphot", 5, "failed to extract radial profile for source at %7.1f, %7.1f", source->moments->Mx, source->moments->My); 157 150 } else { 158 151 source->mode |= PM_SOURCE_MODE_RADIAL_FLUX; 152 if (source->parent) { 153 source->parent->mode |= PM_SOURCE_MODE_RADIAL_FLUX; 154 } 159 155 } 160 156
Note:
See TracChangeset
for help on using the changeset viewer.
