- Timestamp:
- Nov 21, 2021, 11:02:01 AM (5 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/eam_branches/ipp-20211108/ppStack/src/ppStackLoopByPercent.c
r41920 r41923 25 25 // Prepare for combination (define outputs, generate output cells) 26 26 // NOTE: expmaps will be skipped if "PPSTACK.OUTPUT.EXP" -> NULL 27 if (!ppStackCombinePrepare("PPSTACK.OUTPUT", "PPSTACK.OUTPUT.EXP", options->doBackground ? "PPSTACK.OUTPUT.BKGMODEL" : NULL, PPSTACK_FILES_STACK, stack, options, config)) { 27 ppStackFileList stackFiles = options->convolve ? PPSTACK_FILES_STACK : PPSTACK_FILES_UNCONV; 28 char *outName = options->convolve ? "PPSTACK.OUTPUT" : "PPSTACK.UNCONV"; 29 char *expName = options->convolve ? "PPSTACK.OUTPUT.EXP" : "PPSTACK.UNCONV.EXP"; 30 char *bckName = options->doBackground ? "PPSTACK.OUTPUT.BKGMODEL" : NULL; 31 32 if (!ppStackCombinePrepare(outName, expName, bckName, stackFiles, stack, options, config)) { 28 33 psError(psErrorCodeLast(), false, "Unable to prepare for combination."); 29 34 psFree(stack); … … 89 94 // Clean up 90 95 psTrace("ppStack", 2, "Cleaning up after combination....\n"); 91 if (!ppStackCleanupFiles(stack, options, config, PPSTACK_FILES_STACK, PPSTACK_FILES_PHOT, true)) {96 if (!ppStackCleanupFiles(stack, options, config, stackFiles, PPSTACK_FILES_PHOT, true)) { 92 97 psError(psErrorCodeLast(), false, "Unable to clean up."); 93 98 psFree(stack); … … 99 104 100 105 // Unconvolved stack --- it's cheap to calculate, compared to everything else! 101 // XXX unconvolved stack is currently using the convolved mask! oops! 106 // XXX unconvolved stack is currently using the convolved mask! oops! (EAM: is this true?) 102 107 if (options->convolve) { 103 108 // Start threading … … 109 114 110 115 // Prepare for combination 111 if (!ppStackCombinePrepare("PPSTACK.UNCONV", "PPSTACK.UNCONV.EXP", NULL, PPSTACK_FILES_UNCONV, 112 stack, options, config)) { 116 if (!ppStackCombinePrepare("PPSTACK.UNCONV", "PPSTACK.UNCONV.EXP", NULL, PPSTACK_FILES_UNCONV, stack, options, config)) { 113 117 psError(psErrorCodeLast(), false, "Unable to prepare for combination."); 114 118 psFree(stack);
Note:
See TracChangeset
for help on using the changeset viewer.
