IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Nov 23, 2021, 9:10:29 AM (5 years ago)
Author:
eugene
Message:

replace COMBINE.MIN.RANGE with COMBINE.REJECT.FRACTION

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/eam_branches/ipp-20211108/ppStack/src/ppStackReadout.c

    r41920 r41931  
    382382
    383383    bool mdok;                          // Status of MD lookup
    384     psF64 minRange = psMetadataLookupF32(&mdok, recipe, "COMBINE.MIN.RANGE"); // Combination threshold
     384    psF64 rejectFraction = psMetadataLookupF32(&mdok, recipe, "COMBINE.REJECT.FRACTION"); // fraction of outliers to reject
    385385
    386386    char defaultBlankStr[16] = "BLANK";
     
    404404
    405405    for (int i = 0; i < num; i++) {
     406        stackData->data[i] = NULL;
     407
    406408        pmReadout *ro = readouts->data[i];
    407409        if (!ro || mask->data.PS_TYPE_VECTOR_MASK_DATA[i]) {
     
    420422    }
    421423
    422     if (!pmStackCombineByPercentile(outRO, expRO, stackData, minRange, maskBad, maskSuspect, maskBlank)) {
     424    if (!pmStackCombineByPercentile(outRO, expRO, stackData, rejectFraction, maskBad, maskSuspect, maskBlank)) {
    423425        psError(PS_ERR_UNKNOWN, false, "Unable to combine input readouts with rejection.");
    424426        psFree(stackData);
Note: See TracChangeset for help on using the changeset viewer.