IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Jul 17, 2014, 12:32:26 PM (12 years ago)
Author:
eugene
Message:

merge changes (from past YEAR) into trunk

Location:
branches/eam_branches/ipp-ops-20130712/ppStack/src
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • branches/eam_branches/ipp-ops-20130712/ppStack/src

  • branches/eam_branches/ipp-ops-20130712/ppStack/src/ppStackLoop.c

    r35167 r37067  
    8787        pmCellFreeData(options->cells->data[i]);
    8888    }
    89     //    psFree(stack);
     89    //MEH -- must uncomment back out -- unclear is should be moved after pixel rejection
     90    psFree(stack);
    9091
    9192    // Pixel rejection
     
    119120    psTrace("ppStack", 2, "Final stack of convolved images....\n");
    120121    if (options->convolve) {
    121       if (!ppStackCombineFinal(stack, options->convCovars, options, config, false, false, true)) {
     122      if (!ppStackCombineFinal(stack, options->convCovars, options, config, false, false, true, false)) {
    122123        psError(psErrorCodeLast(), false, "Unable to perform final combination.");
    123124        psFree(stack);
     
    127128    else {
    128129      // Since we haven't convolved, I believe we do need to normalize here.
    129       if (!ppStackCombineFinal(stack, options->convCovars, options, config, false, true, true)) {
     130      //MEH -- see below for comment on ppStackCombineFinal and bscaleOffset
     131      if (!ppStackCombineFinal(stack, options->convCovars, options, config, false, true, true, true)) {
    130132        psError(psErrorCodeLast(), false, "Unable to perform final combination.");
    131133        psFree(stack);
     
    181183        return false;
    182184    }
    183     //    psFree(stack);
     185    //MEH -- also must uncomment back out..
     186    psFree(stack);
    184187    psLogMsg("ppStack", PS_LOG_INFO, "Stage 7: Cleanup, WCS & JPEGS: %f sec", psTimerClear("PPSTACK_STEPS"));
    185188    ppStackMemDump("cleanup");
     
    205208        // generate the unconvolved stack. NOTE: this one must be normalized since the inputs have not been
    206209        psTrace("ppStack", 2, "Stack of unconvolved images....\n");
    207         if (!ppStackCombineFinal(stack, options->origCovars, options, config, false, true, false)) {
     210        //MEH -- terrible hack for bscale offset to input warps -- treat like normalization
     211        // -- if BSCALEOFFSET TRUE, 0.5*bscale for offset values, otherwise value 0.0
     212        // -- bscaleOffset set when files read in and applied in CombineFinal (if arg true, only valid for unconv case)
     213        if (!ppStackCombineFinal(stack, options->origCovars, options, config, false, true, false, true)) {
    208214            psError(psErrorCodeLast(), false, "Unable to perform unconvolved combination.");
    209215            psFree(stack);
Note: See TracChangeset for help on using the changeset viewer.