IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Nov 30, 2006, 1:25:59 PM (19 years ago)
Author:
Paul Price
Message:

Preventing masking where it's not necessary (e.g., for bias, dark
creation, don't want a mask, since it will mask negative pixels; for
this reason, masking should be done after the bias has been applied
--- though this might affect the saturation: check later).

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/ppImage/src/ppImageDetrendReadout.c

    r10288 r10322  
    1515    // find the currently selected readout
    1616    pmReadout *input = pmFPAfileThisReadout(config->files, view, "PPIMAGE.INPUT");
    17 
    18     // apply the externally supplied mask to the input->mask pixels
    19     if (options->doMask) {
    20         pmReadout *mask = pmFPAfileThisReadout(config->files, detview, "PPIMAGE.MASK");
    21         pmMaskBadPixels(input, mask, options->maskValue);
    22     }
    2317
    2418# if 0
     
    4640    }
    4741
    48     // create the target mask and weight images
    49     pmReadoutGenerateMaskWeight(input, true);
     42    if (options->doMask || options->doShutter || options->doFlat || options->doPhotom) {
     43        // create the target mask and weight images
     44        pmReadoutGenerateMaskWeight(input, true);
     45    }
     46
     47    // apply the externally supplied mask to the input->mask pixels
     48    if (options->doMask) {
     49        pmReadout *mask = pmFPAfileThisReadout(config->files, detview, "PPIMAGE.MASK");
     50        pmMaskBadPixels(input, mask, options->maskValue);
     51    }
    5052
    5153    // Shutter correction
Note: See TracChangeset for help on using the changeset viewer.