IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Changeset 42148


Ignore:
Timestamp:
Mar 29, 2022, 3:03:37 PM (4 years ago)
Author:
eugene
Message:

add option to mask dead readouts (overscan < minValue)

Location:
branches/eam_branches/ipp-20220316/ppImage/src
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • branches/eam_branches/ipp-20220316/ppImage/src/ppImageOptions.c

    r41918 r42148  
    217217        }
    218218
     219        bool mdok;
    219220        int boxcar = psMetadataLookupS32(NULL, recipe, "OVERSCAN.BOXCAR");
    220221        float gauss = psMetadataLookupF32(NULL, recipe, "OVERSCAN.GAUSS");
     222        float minValid = psMetadataLookupF32(&mdok, recipe, "OVERSCAN.MIN.VALID");
     223        if (!mdok) { minValid = 0.0; }
    221224
    222225        // Fill in the options
     
    226229        options->overscan->constant = psMetadataLookupBool(NULL, recipe, "OVERSCAN.CONSTANT");
    227230        options->overscan->value = psMetadataLookupF32(NULL, recipe, "OVERSCAN.VALUE");
     231        options->overscan->minValid = minValid;
     232        options->overscan->maskVal  = 0x0001;
    228233
    229234        psFree(overscanStats);
  • branches/eam_branches/ipp-20220316/ppImage/src/ppImageSetMaskBits.c

    r37406 r42148  
    2727    options->blankMask = pmConfigMaskGet("BLANK", config);
    2828    psAssert (options->blankMask, "blank mask not set");
     29    if (options->overscan) {
     30        options->overscan->maskVal  = options->blankMask;
     31    }
    2932
    3033    // mask for saturated data  (default to RANGE if not defined)
Note: See TracChangeset for help on using the changeset viewer.