IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Mar 6, 2008, 10:47:50 AM (18 years ago)
Author:
Paul Price
Message:

Adding multi-darks --- fitting dark current with multi-dimensional polynomial. This allows the dark current to be a function of temperature, or time since PON. To do this, added new file type, DARK. A DARK file is just like an IMAGE, except that it has a table per FITS file that contains the parameters to use in applying the dark. It's kinda like a FRINGE, but there's only one table per file, instead of one table per extension.

File:
1 edited

Legend:

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

    r15162 r16841  
    113113    }
    114114    if (dark) {
     115        psWarning("Dark processing is now available using pmDark --- perhaps you should use that instead?");
    115116        PS_ASSERT_PTR_NON_NULL(view, false);
    116117        PS_ASSERT_IMAGE_NON_NULL(dark->image, false);
     
    121122
    122123    if (!pmOverscanSubtract (in, overscanOpts)) {
    123         return false;
     124        return false;
    124125    }
    125126
     
    148149        }
    149150
    150         float darkNorm = 1.0;
     151        float darkNorm = 1.0;
    151152        float inNorm = pmFPADarkNorm(in->parent->parent->parent, view, inTime);
    152153
    153         // if we have a normalized dark exposure, we simply multiply the master by inNorm.  if
    154         // we do not have a normalized exposure, we have to scale the master as well.  XXX do
    155         // we need to explicitly identify the master as normalized?
     154        // if we have a normalized dark exposure, we simply multiply the master by inNorm.  if
     155        // we do not have a normalized exposure, we have to scale the master as well.  XXX do
     156        // we need to explicitly identify the master as normalized?
    156157
    157         if (darkTime != 1.0) {
    158             darkNorm = pmFPADarkNorm(dark->parent->parent->parent, view, darkTime);
    159         }
     158        if (darkTime != 1.0) {
     159            darkNorm = pmFPADarkNorm(dark->parent->parent->parent, view, darkTime);
     160        }
    160161
    161         if (isnan(inNorm) || isnan(darkNorm)) {
     162        if (isnan(inNorm) || isnan(darkNorm)) {
    162163            psError(PS_ERR_UNKNOWN, false, "Unable to determine dark normalisations.");
    163164            return false;
Note: See TracChangeset for help on using the changeset viewer.