IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Changeset 20666


Ignore:
Timestamp:
Nov 10, 2008, 4:29:44 PM (17 years ago)
Author:
Paul Price
Message:

If we can't measure the background, it probably means the whole readout is bad --- mask it all.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/psModules/src/detrend/pmRemnance.c

    r20624 r20666  
    3030    psStats *stats = psStatsAlloc(PS_STAT_ROBUST_MEDIAN | PS_STAT_ROBUST_STDEV); // Statistics
    3131    if (!psImageBackground(stats, NULL, image, mask, maskVal, rng)) {
    32         psError(PS_ERR_UNKNOWN, false, "Unable to calculate image statistics.");
     32        psWarning("Unable to calculate image statistics: masking entire readout.");
     33        psBinaryOp(mask, mask, "|", psScalarAlloc(maskRem, PS_TYPE_MASK));
    3334        psFree(stats);
    3435        psFree(rng);
Note: See TracChangeset for help on using the changeset viewer.