IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Nov 21, 2021, 11:02:01 AM (5 years ago)
Author:
eugene
Message:

if convolution is not selected, the outputs go to foo.unconv.fits

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/eam_branches/ipp-20211108/ppStack/src/ppStackLoopByPercent.c

    r41920 r41923  
    2525    // Prepare for combination (define outputs, generate output cells)
    2626    // 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)) {
    2833        psError(psErrorCodeLast(), false, "Unable to prepare for combination.");
    2934        psFree(stack);
     
    8994   // Clean up
    9095    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)) {
    9297        psError(psErrorCodeLast(), false, "Unable to clean up.");
    9398        psFree(stack);
     
    99104
    100105    // 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?)
    102107    if (options->convolve) {
    103108        // Start threading
     
    109114
    110115        // 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)) {
    113117            psError(psErrorCodeLast(), false, "Unable to prepare for combination.");
    114118            psFree(stack);
Note: See TracChangeset for help on using the changeset viewer.