Changeset 25788 for branches/pap/ppStack/src/ppStackLoop.c
- Timestamp:
- Oct 6, 2009, 1:19:44 PM (17 years ago)
- File:
-
- 1 edited
-
branches/pap/ppStack/src/ppStackLoop.c (modified) (4 diffs)
Legend:
- Unmodified
- Added
- Removed
-
branches/pap/ppStack/src/ppStackLoop.c
r25738 r25788 56 56 // Start threading 57 57 ppStackThreadInit(); 58 ppStackThreadData *stack = ppStackThreadDataSetup(options, config );58 ppStackThreadData *stack = ppStackThreadDataSetup(options, config, true); 59 59 if (!stack) { 60 60 psError(PS_ERR_IO, false, "Unable to initialise stack threads."); … … 122 122 123 123 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 124 149 // Photometry 125 150 psTrace("ppStack", 1, "Photometering stacked image....\n"); … … 129 154 return false; 130 155 } 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")); 132 157 ppStackMemDump("photometry"); 133 158 … … 140 165 return false; 141 166 } 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")); 143 168 ppStackMemDump("finish"); 144 169
Note:
See TracChangeset
for help on using the changeset viewer.
