- Timestamp:
- Nov 22, 2009, 2:17:42 PM (17 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
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.
