IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Feb 13, 2011, 11:02:55 AM (15 years ago)
Author:
eugene
Message:

saveInConv and saveRefConv were backwards

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/ippScripts/scripts/diff_skycell.pl

    r28593 r30599  
    117117}
    118118
     119# ppSub does (input) - (template) after PSF-match convolution. 
     120# one of the files needs to be assigned to 'input' and the other to 'template'.
     121# if either of these is a WARP, then we can perform magic on it.  If we are going to
     122# run magic, then we need to save the convolved version of the OTHER image
     123# (see magic_process.pl:155)
     124
    119125foreach my $file (@$files) {
    120126    if (defined $file->{template} and $file->{template}) {
    121 #        $template = $file->{uri};
    122127        $templatePath = $file->{path_base};
    123128        if ($file->{warp_id} == 0) {
     
    142147            $templateSources = "PSWARP.OUTPUT.SOURCES";
    143148            $templateMagic = $file->{magicked};
    144             $saveRefConv = 1;
    145         }
    146     } else {
    147 #        $input = $file->{uri};
     149            $saveInConv = 1;
     150        }
     151    } else {
    148152        $inputPath = $file->{path_base};
    149153        $inputMagic = $file->{magicked};    # if input is a stack the output can't be "magicked"
     
    165169            $inputVariance = "PSWARP.OUTPUT.VARIANCE";
    166170            $inputSources = "PSWARP.OUTPUT.SOURCES";
    167             $saveInConv = 1;
     171            $saveRefConv = 1;
    168172        }
    169173    }
Note: See TracChangeset for help on using the changeset viewer.