IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Oct 15, 2021, 6:45:21 AM (5 years ago)
Author:
eugene
Message:

adding simple percentile stack

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/eam_branches/ppStack.20211015/src/ppStackLoop.c

    r41529 r41841  
    3131    ppStackMemDump("prepare");
    3232    if (options->quality) return true; // Can't do anything else
     33
     34    // if we want to skip the rejection steps, and instead use a percentile clipping:
     35    if (options->clipPercent) {
     36      bool result = ppStackLoopByPercent (config, options);
     37      return result;
     38    }
    3339
    3440    // Convolve inputs
     
    8894        pmCellFreeData(options->cells->data[i]);
    8995    }
    90     //MEH -- must uncomment back out -- unclear is should be moved after pixel rejection
     96    // MEH -- must uncomment back out -- unclear is should be moved after pixel rejection
    9197    psFree(stack);
    9298
     
    126132        return false;
    127133      }
    128     }
    129     else {
     134    } else {
    130135      // Since we haven't convolved, I believe we do need to normalize here.
    131       //MEH -- see below for comment on ppStackCombineFinal and bscaleOffset
     136      // MEH -- see below for comment on ppStackCombineFinal and bscaleOffset
    132137      if (!ppStackCombineFinal(stack, options->convCovars, options, config, false, true, true, true)) {
    133138        psError(psErrorCodeLast(), false, "Unable to perform final combination.");
     
    154159      return false;
    155160    }
    156     ppStackFileActivation(config,PPSTACK_FILES_BKG ,false);   
     161    ppStackFileActivation(config, PPSTACK_FILES_BKG, false);   
     162
    157163    // Photometry
    158164    psTrace("ppStack", 1, "Photometering stacked image....\n");
     
    184190        return false;
    185191    }
    186     //MEH -- also must uncomment back out..
     192    // MEH -- also must uncomment back out..
    187193    psFree(stack);
    188194    psLogMsg("ppStack", PS_LOG_INFO, "Stage 7: Cleanup, WCS & JPEGS: %f sec", psTimerClear("PPSTACK_STEPS"));
Note: See TracChangeset for help on using the changeset viewer.