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

    r15936 r16820  
    44// generate the median in NxN boxes, clipping heavily
    55// linear interpolation to generate full-scale model
    6 bool psphotModelBackground (pmConfig *config, const pmFPAview *view, const char *filename, psMaskType maskVal)
     6bool psphotModelBackground (pmConfig *config, const pmFPAview *view, const char *filename)
    77{
    88    bool status = true;
     
    2020    // select the appropriate recipe information
    2121    psMetadata *recipe  = psMetadataLookupPtr (&status, config->recipes, PSPHOT_RECIPE);
     22    assert (recipe);
     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);
    2227
    2328    // user supplied seed, if available
Note: See TracChangeset for help on using the changeset viewer.