IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Nov 8, 2021, 7:57:10 AM (5 years ago)
Author:
eugene
Message:

merge changes from ppStack.20211015: adding stack-by-percent, some code cleanups (remove commented out blocks), fix thread failure error

Location:
branches/eam_branches/ipp-20211108/ppStack
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • branches/eam_branches/ipp-20211108/ppStack

  • branches/eam_branches/ipp-20211108/ppStack/src/ppStackLoop.c

    r41529 r41908  
    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
    132       if (!ppStackCombineFinal(stack, options->convCovars, options, config, false, true, true, true)) {
     136      // MEH -- see below for comment on ppStackCombineFinal and bscaleOffset
     137      // last 4 parameters are: safe, normalize, grow, bscaleoffset
     138      // EAM : looks like we do NOT need to normalize here eithr because ppStackConvolve is still called and
     139      // the inputs are normalized
     140      if (!ppStackCombineFinal(stack, options->convCovars, options, config, false, false, true, true)) {
    133141        psError(psErrorCodeLast(), false, "Unable to perform final combination.");
    134142        psFree(stack);
     
    154162      return false;
    155163    }
    156     ppStackFileActivation(config,PPSTACK_FILES_BKG ,false);   
     164    ppStackFileActivation(config, PPSTACK_FILES_BKG, false);   
     165
    157166    // Photometry
    158167    psTrace("ppStack", 1, "Photometering stacked image....\n");
     
    184193        return false;
    185194    }
    186     //MEH -- also must uncomment back out..
     195    // MEH -- also must uncomment back out..
    187196    psFree(stack);
    188197    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.