Changeset 27319 for trunk/ppStack/src/ppStackLoop.c
- Timestamp:
- Mar 18, 2010, 12:01:15 PM (16 years ago)
- File:
-
- 1 edited
-
trunk/ppStack/src/ppStackLoop.c (modified) (5 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/ppStack/src/ppStackLoop.c
r27309 r27319 111 111 112 112 // Prepare for combination 113 if (!ppStackCombinePrepare(stack, options, config)) { 113 if (!ppStackCombinePrepare(&options->outRO, "PPSTACK.OUTPUT", PPSTACK_FILES_STACK, 114 stack, options, config)) { 114 115 psError(psErrorCodeLast(), false, "Unable to prepare for combination."); 115 116 psFree(stack); … … 148 149 // Final combination 149 150 psTrace("ppStack", 2, "Final stack of convolved images....\n"); 150 if (!ppStackCombineFinal(options->outRO, stack, options->convCovars, options, config, false, false)) { 151 if (!ppStackCombineFinal(options->outRO, stack, options->convCovars, options, config, 152 false, false, true)) { 151 153 psError(psErrorCodeLast(), false, "Unable to perform final combination."); 152 154 psFree(stack); … … 163 165 return false; 164 166 } 165 psLogMsg("ppStack", PS_LOG_INFO, "Stage 6: Cleanup, WCS & JPEGS: %f sec", psTimerClear("PPSTACK_STEPS")); 167 168 // Photometry 169 psTrace("ppStack", 1, "Photometering stacked image....\n"); 170 if (!ppStackPhotometry(options, config)) { 171 psError(psErrorCodeLast(), false, "Unable to perform photometry."); 172 return false; 173 } 174 psLogMsg("ppStack", PS_LOG_INFO, "Stage 6: Photometry Analysis: %f sec", psTimerClear("PPSTACK_STEPS")); 175 ppStackMemDump("photometry"); 176 177 if (!ppStackFilesIterateUp(config)) { 178 psError(psErrorCodeLast(), false, "Unable to close files."); 179 return false; 180 } 181 ppStackFileActivation(config, PPSTACK_FILES_STACK, false); 182 ppStackFileActivation(config, PPSTACK_FILES_PHOT, false); 183 options->outRO->data_exists = false; 184 options->outRO->parent->data_exists = false; 185 options->outRO->parent->parent->data_exists = false; 186 psFree(options->outRO); 187 options->outRO = NULL; 188 189 psLogMsg("ppStack", PS_LOG_INFO, "Stage 7: Cleanup, WCS & JPEGS: %f sec", psTimerClear("PPSTACK_STEPS")); 166 190 ppStackMemDump("cleanup"); 167 191 … … 177 201 return false; 178 202 } 203 204 // Prepare for combination 205 if (!ppStackCombinePrepare(&options->unconvRO, "PPSTACK.UNCONV", PPSTACK_FILES_UNCONV, 206 stack, options, config)) { 207 psError(psErrorCodeLast(), false, "Unable to prepare for combination."); 208 psFree(stack); 209 return false; 210 } 211 179 212 psTrace("ppStack", 2, "Stack of unconvolved images....\n"); 180 if (!ppStackCombineFinal(options->unconvRO, stack, options->origCovars, options, config, false, true)) { 213 if (!ppStackCombineFinal(options->unconvRO, stack, options->origCovars, options, config, 214 false, true, false)) { 181 215 psError(psErrorCodeLast(), false, "Unable to perform unconvolved combination."); 182 216 psFree(stack); 183 217 return false; 184 218 } 185 psLogMsg("ppStack", PS_LOG_INFO, "Stage 7: Unconvolved Stack: %f sec", psTimerClear("PPSTACK_STEPS"));219 psLogMsg("ppStack", PS_LOG_INFO, "Stage 8: Unconvolved Stack: %f sec", psTimerClear("PPSTACK_STEPS")); 186 220 ppStackMemDump("unconv"); 221 222 if (!ppStackFilesIterateUp(config)) { 223 psError(psErrorCodeLast(), false, "Unable to close files."); 224 psFree(stack); 225 return false; 226 } 227 ppStackFileActivation(config, PPSTACK_FILES_UNCONV, false); 228 options->unconvRO->data_exists = false; 229 options->unconvRO->parent->data_exists = false; 230 options->unconvRO->parent->parent->data_exists = false; 231 psFree(options->unconvRO); 232 options->unconvRO = NULL; 187 233 188 234 psFree(stack); … … 190 236 psFree(options->cells); options->cells = NULL; 191 237 #endif 192 193 // Photometry194 psTrace("ppStack", 1, "Photometering stacked image....\n");195 if (!ppStackPhotometry(options, config)) {196 psError(psErrorCodeLast(), false, "Unable to perform photometry.");197 return false;198 }199 psLogMsg("ppStack", PS_LOG_INFO, "Stage 8: Photometry Analysis: %f sec", psTimerClear("PPSTACK_STEPS"));200 ppStackMemDump("photometry");201 238 202 239 // Finish up
Note:
See TracChangeset
for help on using the changeset viewer.
