IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Changeset 13956


Ignore:
Timestamp:
Jun 22, 2007, 1:25:59 PM (19 years ago)
Author:
magnier
Message:

do not divide by darkNorm is DARKTIME is 1.0 (ie, if master is normalized)

File:
1 edited

Legend:

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

    r13920 r13956  
    487487        }
    488488
     489        float darkNorm = 1.0;
    489490        float inNorm = pmFPADarkNorm(inRO->parent->parent->parent, view, inTime);
    490         float darkNorm = pmFPADarkNorm(darkRO->parent->parent->parent, view, darkTime);
    491         if (isnan(inNorm) || isnan(darkNorm)) {
     491
     492        // if we have a normalized dark exposure, we simply multiply the master by inNorm.  if
     493        // we do not have a normalized exposure, we have to scale the master as well.  XXX do
     494        // we need to explicitly identify the master as normalized?
     495
     496        if (darkTime != 1.0) {
     497            darkNorm = pmFPADarkNorm(darkRO->parent->parent->parent, view, darkTime);
     498        }
     499
     500        if (isnan(inNorm) || isnan(darkNorm)) {
    492501            psError(PS_ERR_UNKNOWN, false, "Unable to determine dark normalisations.");
    493502            return false;
Note: See TracChangeset for help on using the changeset viewer.