- Timestamp:
- May 1, 2013, 3:17:52 PM (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/eam_branches/ipp-20130419/psphot/src/psphotRadialApertures.c
r34404 r35458 47 47 static float outerRadius = NAN; 48 48 static float SN_LIM = NAN; 49 static int RADIAL_AP_MIN = 5; 49 50 static psImageMaskType maskVal = 0; 50 51 … … 115 116 // S/N limit to perform full non-linear fits 116 117 SN_LIM = psMetadataLookupF32 (&status, recipe, "RADIAL_APERTURES_SN_LIM"); 118 119 // S/N limit to perform full non-linear fits 120 RADIAL_AP_MIN = psMetadataLookupS32 (&status, recipe, "RADIAL.ANNULAR.BINS.MIN"); 121 if (!status) { 122 RADIAL_AP_MIN = 5; 123 } 117 124 118 125 // source analysis is done in S/N order (brightest first) … … 310 317 311 318 // find the largest aperture of interest (use only apertures with inner radii <= 312 // source->skyRadius )319 // source->skyRadius, as long as i >= RADIAL_AP_MIN 313 320 int lastAp = aperRadii->n; 314 for (int i = 0; i < aperRadii->n; i++) {315 if (aperRadii->data.F32[i] < source->skyRadius) continue; 321 for (int i = RADIAL_AP_MIN; i < aperRadii->n; i++) { 322 if (aperRadii->data.F32[i] < source->skyRadius) continue; // measure out to this radius 316 323 lastAp = i + 1; 317 324 break;
Note:
See TracChangeset
for help on using the changeset viewer.
