IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

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.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/ppMerge/src/ppMergeOptions.c

    r13246 r13593  
    5959    options->combine->maskVal = 0xff;
    6060    options->combine->weights = false;
     61    options->satMask = 0x00;
     62    options->badMask = 0x00;
    6163
    6264    return options;
     
    141143    OPTION_PARSE(options->combine->fracLow,  recipe, "FRACLOW",        F32);
    142144    OPTION_PARSE(options->combine->nKeep,    recipe, "NKEEP",          S32);
    143     OPTION_PARSE(options->combine->maskVal,  recipe, "MASKVAL",        S32);
    144145    OPTION_PARSE(options->combine->weights,  recipe, "WEIGHTS",        Bool);
    145146    OPTION_PARSE(options->fringeNum,         recipe, "FRINGE.NUM",     S32);
     
    153154    OPTION_PARSE(options->maskBad,           recipe, "MASK.BAD",       F32);
    154155
     156    const char *masks = psMetadataLookupStr(NULL, recipe, "MASKVAL");
     157    options->combine->maskVal = pmConfigMask(masks, config);
     158
    155159    options->combine->combine = parseStat(recipe, "COMBINE");
    156160    options->mean             = parseStat(recipe, "MEAN");
     
    238242    }
    239243
    240 
    241244#if 0
    242245    // Or you can set them individually
     
    249252    OPTION_PARSE(options->onOff, config->arguments, "-onoff", S32);
    250253
     254    // Masking options
     255    options->satMask = pmConfigMask("SAT", config);
     256    options->badMask = pmConfigMask("BAD", config);
     257
    251258    return options;
    252259}
Note: See TracChangeset for help on using the changeset viewer.