IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Apr 3, 2021, 11:30:56 AM (5 years ago)
Author:
eugene
Message:

ensure min and max are always calculated

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/psphot/src/psphotModelBackground.c

    r38520 r41527  
    110110    }
    111111
    112     const psStatsOptions statsOption = statsOptionLocation | statsOptionWidth;
     112    const psStatsOptions statsOption = statsOptionLocation | statsOptionWidth | PS_STAT_MIN | PS_STAT_MAX; // use the requested value, but be sure MIN and MAX are calculated;
    113113    psStats *statsDefaults = psStatsAlloc (statsOption);
    114114
     
    472472        modelStdevData[iy][ix] = psStatsGetValue(stats, statsOptionWidth);
    473473
    474         // fprintf (stderr, "dQ : %f - %f - %f = %f\n", stats->robustLQ, stats->robustMedian, stats->robustUQ, stats->robustUQ + stats->robustLQ - 2*stats->robustMedian);
     474        // fprintf (stderr, "background stats: %d, %d : %f > %f > %f > %f > %f : %f\n", ix, iy, stats->min, stats->robustLQ, modelData[iy][ix], stats->robustUQ, stats->max, modelStdevData[iy][ix]);
    475475        // XXX this operation is not thread safe -- move out somehow...
    476476        // psVectorAppend (dQ, stats->robustUQ + stats->robustLQ - 2*stats->robustMedian);
Note: See TracChangeset for help on using the changeset viewer.