IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Oct 6, 2009, 1:19:44 PM (17 years ago)
Author:
Paul Price
Message:

Implemented unconvolved stack using rejections from convolved stack.

File:
1 edited

Legend:

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

    r25738 r25788  
    5656    // Start threading
    5757    ppStackThreadInit();
    58     ppStackThreadData *stack = ppStackThreadDataSetup(options, config);
     58    ppStackThreadData *stack = ppStackThreadDataSetup(options, config, true);
    5959    if (!stack) {
    6060        psError(PS_ERR_IO, false, "Unable to initialise stack threads.");
     
    122122
    123123
     124#if 1
     125    // Unconvolved stack --- it's cheap to calculate, compared to everything else!
     126    if (options->convolve) {
     127        // Start threading
     128        ppStackThreadData *stack = ppStackThreadDataSetup(options, config, false);
     129        if (!stack) {
     130            psError(PS_ERR_IO, false, "Unable to initialise stack threads.");
     131            psFree(options);
     132            return false;
     133        }
     134        psFree(options->cells); options->cells = NULL;
     135        psTrace("ppStack", 2, "Final stack of convolved images....\n");
     136        if (!ppStackCombineFinal(stack, options, config)) {
     137            psError(PS_ERR_UNKNOWN, false, "Unable to perform final combination.");
     138            psFree(stack);
     139            psFree(options);
     140            return false;
     141        }
     142        psLogMsg("ppStack", PS_LOG_INFO, "Stage 7: Unconvolved Stack: %f sec", psTimerClear("PPSTACK_STEPS"));
     143        ppStackMemDump("unconv");
     144
     145        psFree(stack);
     146    }
     147#endif
     148
    124149    // Photometry
    125150    psTrace("ppStack", 1, "Photometering stacked image....\n");
     
    129154        return false;
    130155    }
    131     psLogMsg("ppStack", PS_LOG_INFO, "Stage 7: Photometry Analysis: %f sec", psTimerClear("PPSTACK_STEPS"));
     156    psLogMsg("ppStack", PS_LOG_INFO, "Stage 8: Photometry Analysis: %f sec", psTimerClear("PPSTACK_STEPS"));
    132157    ppStackMemDump("photometry");
    133158
     
    140165        return false;
    141166    }
    142     psLogMsg("ppStack", PS_LOG_INFO, "Stage 8: Final output: %f sec", psTimerClear("PPSTACK_STEPS"));
     167    psLogMsg("ppStack", PS_LOG_INFO, "Stage 9: Final output: %f sec", psTimerClear("PPSTACK_STEPS"));
    143168    ppStackMemDump("finish");
    144169
Note: See TracChangeset for help on using the changeset viewer.