IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Changeset 18217


Ignore:
Timestamp:
Jun 19, 2008, 4:54:30 PM (18 years ago)
Author:
eugene
Message:

replace sky mean if desired by recipe

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/ppImage/src/ppImageReplaceBackground.c

    r16821 r18217  
    2828    psMaskType maskVal  = options->satMask | options->badMask | options->flatMask | options->blankMask;
    2929
     30    // user-defined masks to test for good/bad pixels (build from recipe list if not yet set)
     31    psMetadataAddU8 (recipe, PS_LIST_TAIL, "MASK.PSPHOT", PS_META_REPLACE, "user-defined mask", maskVal);
     32
    3033    float meanValue = psMetadataLookupF32 (&status, recipe, "SKY_MEAN");
     34    bool replaceSkyMean = psMetadataLookupBool (&status, recipe, "REPLACE.SKY_MEAN");
    3135
    3236    // iterate over the cells and readout for this chip
     
    6872                for (int ix = 0; ix < image->numCols; ix++) {
    6973                    if (!(mask->data.U8[iy][ix] && maskVal)) continue;
    70                     if (1) {
     74                    if (replaceSkyMean) {
    7175                        image->data.F32[iy][ix] = meanValue;
    7276                    } else {
Note: See TracChangeset for help on using the changeset viewer.