IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Changeset 26253


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

slightly more careful analysis of bootstrap errors

Location:
branches/eam_branches/20091113
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • branches/eam_branches/20091113/ippconfig/gpc1/psastro.config

    r26237 r26253  
    117117ZERO.POINT.USE.MEAN             BOOL     FALSE
    118118ZERO.POINT.EDGE.FRACTION        F32      0.9
    119 ZERO.POINT.EDGE.SAMPLE          S32      15
    120 ZERO.POINT.EDGE.SAMPLE.FRACTION F32      0.5
     119ZERO.POINT.EDGE.SAMPLE          S32      25
     120ZERO.POINT.EDGE.SAMPLE.FRACTION F32      0.1
    121121
    122122PHOTCODE.DATA MULTI
  • branches/eam_branches/20091113/ippconfig/recipes/psastro.config

    r26237 r26253  
    173173ZERO.POINT.USE.MEAN             BOOL     TRUE
    174174ZERO.POINT.EDGE.FRACTION        F32      0.9
    175 ZERO.POINT.EDGE.SAMPLE          S32      15
    176 ZERO.POINT.EDGE.SAMPLE.FRACTION F32      0.5
     175ZERO.POINT.EDGE.SAMPLE          S32      10
     176ZERO.POINT.EDGE.SAMPLE.FRACTION F32      0.1
    177177
    178178ZPTEST METADATA
  • 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.