- Timestamp:
- Jun 19, 2012, 5:24:19 PM (14 years ago)
- Location:
- branches/meh_branches/ppstack_test
- Files:
-
- 4 edited
-
. (modified) (1 prop)
-
psphot (modified) (1 prop)
-
psphot/src (modified) (1 prop)
-
psphot/src/psphotRadialProfileWings.c (modified) (4 diffs)
Legend:
- Unmodified
- Added
- Removed
-
branches/meh_branches/ppstack_test
- Property svn:mergeinfo changed
-
branches/meh_branches/ppstack_test/psphot
- Property svn:mergeinfo changed
/branches/eam_branches/ipp-20111122/psphot merged: 33070-33071,33086,33088,33094-33095,33612,33640 /branches/eam_branches/ipp-20120405/psphot (added) merged: 33946,33953
- Property svn:mergeinfo changed
-
branches/meh_branches/ppstack_test/psphot/src
- Property svn:mergeinfo changed
-
branches/meh_branches/ppstack_test/psphot/src/psphotRadialProfileWings.c
r33415 r34041 55 55 static float MIN_RADIUS = NAN; 56 56 static float SKY_STDEV = NAN; 57 static float SKY_SLOPE_MIN = NAN; 57 58 // static FILE *file = NULL; 58 59 … … 81 82 82 83 MIN_RADIUS = psMetadataLookupF32 (&status, readout->analysis, "PSF_MOMENTS_RADIUS"); 83 if (!status ) {84 if (!status || (MIN_RADIUS > MAX_RADIUS)) { 84 85 MIN_RADIUS = psMetadataLookupF32 (&status, recipe, "PSF_MOMENTS_RADIUS"); 85 86 } … … 89 90 if (!status) { 90 91 SKY_STDEV = 1.0; // a crude default value (why would this not exist?) 92 } 93 94 // SKY_SLOPE_MIN is the sigma of the sky model (ie, smoothed on large scales) 95 SKY_SLOPE_MIN = psMetadataLookupF32 (&status, recipe, "SKY_SLOPE_MIN"); 96 if (!status) { 97 SKY_SLOPE_MIN = 3.0; 91 98 } 92 99 … … 302 309 limitSlope = slope; 303 310 } 304 if (!limit && isfinite(slope) && (fabs(slope) < 3.0)) {311 if (!limit && isfinite(slope) && (fabs(slope) < SKY_SLOPE_MIN)) { 305 312 // SB no longer changing. 306 313 limit = true; 307 314 // linearly interpolate to the radius at which we hit the sky, using the last flux and the limiting slope 308 315 if (isfinite(lastFlux)) { 309 limitRadius = lastRadius + lastFlux / 3.0; 316 float interpolatedRadius = lastRadius + lastFlux / SKY_SLOPE_MIN; 317 if (interpolatedRadius < MAX_RADIUS) { 318 limitRadius = interpolatedRadius; 319 } else { 320 // XXX should we keep going in this case? 321 limitRadius = meanRadius; 322 } 310 323 } else { 311 324 limitRadius = meanRadius;
Note:
See TracChangeset
for help on using the changeset viewer.
