IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Oct 28, 2009, 5:35:05 PM (17 years ago)
Author:
Paul Price
Message:

Reworking stack combination because there are *three* modes for pixels going into the final stack (after rejection), not just two: tested and good, tested and rejected, and not tested. The code did not recognise the third, which is a distinct state because we don't want these pixels grown, as we do for rejected pixels. This cannot be fixed merely by using the 'safe' combination because that would discard the 'tested and good' pixels that have only a single unrejected input but are good because they have survived the testing process. Needed to add a new state into the combination process. Now I add these pixels straight into the 'reject' list. This requires a little bit more fiddling around in ppStack. Not sure it's working yet.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/pap/ppStack/src/ppStackLoop.c

    r25950 r25964  
    9797    // Final combination
    9898    psTrace("ppStack", 2, "Final stack of convolved images....\n");
    99     if (!ppStackCombineFinal(options->outRO, stack, options->convCovars, options, config,
    100                              true, false, false)) {
     99    if (!ppStackCombineFinal(options->outRO, stack, options->convCovars, options, config, false, false)) {
    101100        psError(PS_ERR_UNKNOWN, false, "Unable to perform final combination.");
    102101        psFree(stack);
     
    106105    psLogMsg("ppStack", PS_LOG_INFO, "Stage 5: Final Stack: %f sec", psTimerClear("PPSTACK_STEPS"));
    107106    ppStackMemDump("final");
    108 
    109107
    110108    // Clean up
     
    121119    psFree(stack);
    122120
    123 
    124121#if 1
    125122    // Unconvolved stack --- it's cheap to calculate, compared to everything else!
     
    133130        }
    134131        psTrace("ppStack", 2, "Stack of unconvolved images....\n");
    135         if (!ppStackCombineFinal(options->unconvRO, stack, options->origCovars, options, config,
    136                                  true, true, true)) {
     132        if (!ppStackCombineFinal(options->unconvRO, stack, options->origCovars, options, config, true, true)) {
    137133            psError(PS_ERR_UNKNOWN, false, "Unable to perform unconvolved combination.");
    138134            psFree(stack);
     
    158154    ppStackMemDump("photometry");
    159155
    160 
    161156    // Finish up
    162157    psTrace("ppStack", 1, "Finishing up....\n");
     
    170165
    171166    psFree(options);
     167
    172168    return true;
    173169}
Note: See TracChangeset for help on using the changeset viewer.