IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
May 1, 2012, 11:55:45 AM (14 years ago)
Author:
bills
Message:

Don't overwrite PSPHOT's value for MASK.BAD

File:
1 edited

Legend:

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

    r32348 r33841  
    105105    psAssert(psphotRecipe, "Need PSPHOT recipe");
    106106
     107#if (0)
     108    // DON'T OVERWRITE PSPHOT recipe value
    107109    psString maskBadStr = psMetadataLookupStr(NULL, ppStackRecipe, "MASK.BAD");// Name of bits to mask for bad
    108110    psMaskType maskBad = pmConfigMaskGet(maskBadStr, config); // Bits to mask for bad pixels
    109111
    110112    // user-defined masks to test for good/bad pixels (build from recipe list if not yet set)
    111     psMetadataAddU8(psphotRecipe, PS_LIST_TAIL, "MASK.PSPHOT", PS_META_REPLACE, "user-defined mask", maskBad);
     113    psMetadataAddImageMask(psphotRecipe, PS_LIST_TAIL, "MASK.PSPHOT", PS_META_REPLACE, "user-defined mask", maskBad);
     114#endif
    112115
    113116    psImage *binned = psphotModelBackgroundReadoutNoFile(ro, config); // Binned background model
Note: See TracChangeset for help on using the changeset viewer.