IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Nov 22, 2009, 2:17:42 PM (17 years ago)
Author:
eugene
Message:

slightly more careful analysis of bootstrap errors

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/eam_branches/20091113/psastro/src/psastroZeroPoint.c

    r26224 r26253  
    9494    if (byExposure) {
    9595        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        }
    96101        psastroZeroPointAnalysis (header, dMag, zeropt, recipe);
    97102        psFree (dMag);
     
    184189}
    185190
    186 #define MAG_RESOLUTION 0.001
     191#define MAG_RESOLUTION 0.0002
    187192
    188193// set the bin closest to the corresponding value.  if USE_END is +/- 1,
     
    304309    psTrace("psastro", 6, "subset stats: Sum: %f, S2: %f, Npts: %d\n", Sum, S2, edgeSample);
    305310
    306     stats->clippedStdev = sqrt(S2 / edgeSample - PS_SQR(Sum/edgeSample));
     311    stats->clippedStdev = PS_MAX (sqrt(S2 / edgeSample - PS_SQR(Sum/edgeSample)), MAG_RESOLUTION);
    307312    psTrace("psastro", 5, "percentile stats %f +/- %f\n", stats->clippedMean, stats->clippedStdev);
    308313
Note: See TracChangeset for help on using the changeset viewer.