IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Changeset 13593 for trunk/psphot/src


Ignore:
Timestamp:
Jun 1, 2007, 6:16:29 PM (19 years ago)
Author:
Paul Price
Message:

Updating high-level programs to use symbolic names for mask values in the recipes.

Location:
trunk/psphot/src
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/psphot/src/psphot.h

    r13411 r13593  
    5757int             pmSourceSortByY (const void **a, const void **b);
    5858bool            psphotGrowthCurve (pmReadout *readout, pmPSF *psf, bool ignore);
    59 bool            psphotMaskReadout (pmReadout *readout, psMetadata *recipe);
     59bool            psphotMaskReadout (pmReadout *readout, psMetadata *recipe, pmConfig *config);
    6060void            psphotSourceFreePixels (psArray *sources);
    6161
  • trunk/psphot/src/psphotMaskReadout.c

    r12792 r13593  
    11# include "psphotInternal.h"
    22
    3 bool psphotMaskReadout (pmReadout *readout, psMetadata *recipe) {
    4    
     3bool psphotMaskReadout (pmReadout *readout, psMetadata *recipe, pmConfig *config) {
     4
    55    bool status;
    66
     
    1919
    2020    // psImageKeepRegion assumes the region refers to the parent coordinates
    21     psImageKeepRegion (readout->mask, keep, "OR", PM_MASK_BAD);
     21    psImageKeepRegion (readout->mask, keep, "OR", pmConfigMask("BAD", config));
    2222
    2323    return true;
  • trunk/psphot/src/psphotReadout.c

    r13411 r13593  
    2424
    2525    // generate mask & weight images if they don't already exit
    26     if ((!readout->mask && !pmReadoutGenerateMask(readout)) ||
     26    if ((!readout->mask && !pmReadoutGenerateMask(readout, pmConfigMask("SAT", config),
     27                                                  pmConfigMask("BAD", config))) ||
    2728        (!readout->weight && !pmReadoutGenerateWeight(readout, true))) {
    2829        psError (PSPHOT_ERR_CONFIG, false, "trouble creating mask and/or weight");
     
    3738
    3839    // I have a valid mask, now mask in the analysis region of interest
    39     psphotMaskReadout (readout, recipe);
     40    psphotMaskReadout (readout, recipe, config);
    4041
    4142    // run a single-model test if desired
Note: See TracChangeset for help on using the changeset viewer.