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/psphotMagnitudes.c

    r13900 r16820  
    11# include "psphotInternal.h"
    22
    3 bool psphotMagnitudes(psArray *sources,
    4                       psMetadata *recipe,
    5                       pmPSF *psf,
    6                       pmReadout *background,
    7                       psMaskType maskVal,
    8                       psMaskType mark)
    9 {
     3bool psphotMagnitudes(psArray *sources, psMetadata *recipe, pmPSF *psf, pmReadout *background) {
     4
    105    bool status = false;
    116    int Nap = 0;
    127
    138    psTimerStart ("psphot");
     9
     10    // user-defined masks to test for good/bad pixels (build from recipe list if not yet set)
     11    psMaskType maskVal = psMetadataLookupU8(&status, recipe, "MASK.PSPHOT"); // Mask value for bad pixels
     12    assert (maskVal);
     13
     14    // user-defined masks to test for good/bad pixels (build from recipe list if not yet set)
     15    psMaskType mark = psMetadataLookupU8(&status, recipe, "MASK.MARK"); // Mask value for bad pixels
     16    assert (mark);
    1417
    1518    pmSourceMagnitudesInit (recipe);
Note: See TracChangeset for help on using the changeset viewer.