IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Changeset 21216


Ignore:
Timestamp:
Jan 28, 2009, 5:11:31 PM (17 years ago)
Author:
Paul Price
Message:

Fixing mask types.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/pap_branch_20090128/ppImage/src/ppImageSetMaskBits.c

    r18556 r21216  
    77bool ppImageSetMaskBits (pmConfig *config, ppImageOptions *options) {
    88
    9     if (!pmConfigMaskSetBits (&options->maskValue, &options->markValue, config)) {
    10         psError (PS_ERR_UNKNOWN, true, "Unable to define the mask bit values");
    11         return false;
     9    if (!pmConfigMaskSetBits(&options->maskValue, &options->markValue, config)) {
     10        psError (PS_ERR_UNKNOWN, true, "Unable to define the mask bit values");
     11        return false;
    1212    }
    1313
     
    1515
    1616    // mask for non-linear flat corrections
    17     options->flatMask = pmConfigMaskGet("FLAT", config); 
     17    options->flatMask = pmConfigMaskGet("FLAT", config);
    1818    psAssert (options->flatMask, "flat mask not set");
    1919
    2020    // mask for non-existent data  (default to DETECTOR if not defined)
    21     options->blankMask = pmConfigMaskGet("BLANK", config); 
     21    options->blankMask = pmConfigMaskGet("BLANK", config);
    2222    psAssert (options->blankMask, "blank mask not set");
    2323
     
    2525    options->satMask = pmConfigMaskGet("SAT", config);
    2626    psAssert (options->satMask, "sat mask not set");
    27    
     27
    2828    // mask for below-range data  (default to RANGE if not defined)
    2929    options->badMask = pmConfigMaskGet("BAD", config);
     
    3838
    3939    // set maskValue and markValue in the psphot recipe
    40     psMetadataAddU8 (recipe, PS_LIST_TAIL, "MASK.PSPHOT", PS_META_REPLACE, "user-defined mask", options->maskValue);
    41     psMetadataAddU8 (recipe, PS_LIST_TAIL, "MARK.PSPHOT", PS_META_REPLACE, "user-defined mask", options->markValue);
     40    psMetadataAddImageMask(recipe, PS_LIST_TAIL, "MASK.PSPHOT", PS_META_REPLACE, "user-defined mask",
     41                           options->maskValue);
     42    psMetadataAddImageMask(recipe, PS_LIST_TAIL, "MARK.PSPHOT", PS_META_REPLACE, "user-defined mask",
     43                           options->markValue);
    4244
    4345    return true;
Note: See TracChangeset for help on using the changeset viewer.