IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Mar 4, 2008, 3:10:25 PM (18 years ago)
Author:
eugene
Message:

merge changes from eam_branch_20080229: better flag definitions, cleanup footprint code (move into psphotFindDetections), push mask selection into called functions

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/psphot/src/psphotAddNoise.c

    r14655 r16820  
    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.