Changeset 26253
- Timestamp:
- Nov 22, 2009, 2:17:42 PM (17 years ago)
- Location:
- branches/eam_branches/20091113
- Files:
-
- 3 edited
-
ippconfig/gpc1/psastro.config (modified) (1 diff)
-
ippconfig/recipes/psastro.config (modified) (1 diff)
-
psastro/src/psastroZeroPoint.c (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
branches/eam_branches/20091113/ippconfig/gpc1/psastro.config
r26237 r26253 117 117 ZERO.POINT.USE.MEAN BOOL FALSE 118 118 ZERO.POINT.EDGE.FRACTION F32 0.9 119 ZERO.POINT.EDGE.SAMPLE S32 15120 ZERO.POINT.EDGE.SAMPLE.FRACTION F32 0. 5119 ZERO.POINT.EDGE.SAMPLE S32 25 120 ZERO.POINT.EDGE.SAMPLE.FRACTION F32 0.1 121 121 122 122 PHOTCODE.DATA MULTI -
branches/eam_branches/20091113/ippconfig/recipes/psastro.config
r26237 r26253 173 173 ZERO.POINT.USE.MEAN BOOL TRUE 174 174 ZERO.POINT.EDGE.FRACTION F32 0.9 175 ZERO.POINT.EDGE.SAMPLE S32 1 5176 ZERO.POINT.EDGE.SAMPLE.FRACTION F32 0. 5175 ZERO.POINT.EDGE.SAMPLE S32 10 176 ZERO.POINT.EDGE.SAMPLE.FRACTION F32 0.1 177 177 178 178 ZPTEST METADATA -
branches/eam_branches/20091113/psastro/src/psastroZeroPoint.c
r26224 r26253 94 94 if (byExposure) { 95 95 psMetadata *header = psMetadataLookupMetadata (&status, fpa->analysis, "PSASTRO.HEADER"); 96 if (!header) { 97 header = psMetadataAlloc (); 98 psMetadataAddMetadata (fpa->analysis, PS_LIST_TAIL, "PSASTRO.HEADER", PS_META_REPLACE, "psastro header stats", header); 99 psFree (header); 100 } 96 101 psastroZeroPointAnalysis (header, dMag, zeropt, recipe); 97 102 psFree (dMag); … … 184 189 } 185 190 186 #define MAG_RESOLUTION 0.00 1191 #define MAG_RESOLUTION 0.0002 187 192 188 193 // set the bin closest to the corresponding value. if USE_END is +/- 1, … … 304 309 psTrace("psastro", 6, "subset stats: Sum: %f, S2: %f, Npts: %d\n", Sum, S2, edgeSample); 305 310 306 stats->clippedStdev = sqrt(S2 / edgeSample - PS_SQR(Sum/edgeSample));311 stats->clippedStdev = PS_MAX (sqrt(S2 / edgeSample - PS_SQR(Sum/edgeSample)), MAG_RESOLUTION); 307 312 psTrace("psastro", 5, "percentile stats %f +/- %f\n", stats->clippedMean, stats->clippedStdev); 308 313
Note:
See TracChangeset
for help on using the changeset viewer.
