IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Feb 29, 2008, 2:16:50 PM (18 years ago)
Author:
eugene
Message:

moved peaks and footprints into detections; moving mask selections into recipe and called functions; dropping unused MODE flags

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/eam_branch_20080229/psphot/src/psphotAddNoise.c

    r14655 r16760  
    11# include "psphotInternal.h"
    22
    3 bool psphotAddNoise (pmReadout *readout, psArray *sources, psMetadata *recipe, bool add, psMaskType maskVal) {
     3bool psphotAddNoise (pmReadout *readout, psArray *sources, psMetadata *recipe) {
     4  return psphotAddOrSubNoise (readout, sources, recipe, true);
     5}
     6
     7bool psphotSubNoise (pmReadout *readout, psArray *sources, psMetadata *recipe) {
     8  return psphotAddOrSubNoise (readout, sources, recipe, false);
     9}
     10
     11bool psphotAddOrSubNoise (pmReadout *readout, psArray *sources, psMetadata *recipe, bool add) {
    412
    513    bool status = false;
     
    1321
    1422    psTimerStart ("psphot");
     23
     24    // user-defined masks to test for good/bad pixels (build from recipe list if not yet set)
     25    psMaskType maskVal = psMetadataLookupU8(&status, recipe, "MASK.PSPHOT"); // Mask value for bad pixels
     26    assert (maskVal);
    1527
    1628    // increase variance by factor*(object noise):
Note: See TracChangeset for help on using the changeset viewer.