IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Feb 24, 2010, 2:41:51 PM (16 years ago)
Author:
Paul Price
Message:

Check for configuration dump file.

File:
1 edited

Legend:

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

    r26939 r27062  
    107107    # Both are zero, so stack stack diff;
    108108    unless ($use_convolved) {
    109         $use_convolved = 0;
     109        $use_convolved = 0;
    110110    }
    111111}
     
    120120        $templatePath = $file->{path_base};
    121121        if ($file->{warp_id} == 0) {
    122             if ($use_convolved) {
    123                 $template = "PPSTACK.OUTPUT";
    124                 $templateMask = "PPSTACK.OUTPUT.MASK";
    125                 $templateVariance = "PPSTACK.OUTPUT.VARIANCE";
    126             }
    127             else {
    128                 $template     = "PPSTACK.UNCONV";
    129                 $templateMask = "PPSTACK.UNCONV.MASK";
    130                 $templateVariance = "PPSTACK.UNCONV.VARIANCE";
    131             }
     122            if ($use_convolved) {
     123                $template = "PPSTACK.OUTPUT";
     124                $templateMask = "PPSTACK.OUTPUT.MASK";
     125                $templateVariance = "PPSTACK.OUTPUT.VARIANCE";
     126            }
     127            else {
     128                $template     = "PPSTACK.UNCONV";
     129                $templateMask = "PPSTACK.UNCONV.MASK";
     130                $templateVariance = "PPSTACK.UNCONV.VARIANCE";
     131            }
    132132            $templateSources = "PSPHOT.OUT.CMF.MEF";  ## this must be consistent with the value in stack_skycell.pl:161
    133133            # template is a stack so it doesn't need to be magicked
     
    135135            ## use an explicit stack name for psphot output objects
    136136        } else {
    137             $template     = "PSWARP.OUTPUT";
     137            $template     = "PSWARP.OUTPUT";
    138138            $templateMask = "PSWARP.OUTPUT.MASK";
    139139            $templateVariance = "PSWARP.OUTPUT.VARIANCE";
     
    146146        $inputMagic = $file->{magicked};    # if input is a stack the output can't be "magicked"
    147147        if ($file->{warp_id} == 0) {
    148             if ($use_convolved) {
    149                 $input = "PPSTACK.OUTPUT";
    150                 $inputMask = "PPSTACK.OUTPUT.MASK";
    151                 $inputVariance = "PPSTACK.OUTPUT.VARIANCE";
    152             }
    153             else {
    154                 $input     = "PPSTACK.UNCONV";
    155                 $inputMask = "PPSTACK.UNCONV.MASK";
    156                 $inputVariance = "PPSTACK.UNCONV.VARIANCE";
    157             }
     148            if ($use_convolved) {
     149                $input = "PPSTACK.OUTPUT";
     150                $inputMask = "PPSTACK.OUTPUT.MASK";
     151                $inputVariance = "PPSTACK.OUTPUT.VARIANCE";
     152            }
     153            else {
     154                $input     = "PPSTACK.UNCONV";
     155                $inputMask = "PPSTACK.UNCONV.MASK";
     156                $inputVariance = "PPSTACK.UNCONV.VARIANCE";
     157            }
    158158            $inputSources = "PSPHOT.OUT.CMF.MEF";  ## this must be consistent with the value in stack_skycell.pl:161
    159159        } else {
    160             $input     = "PSWARP.OUTPUT";
     160            $input     = "PSWARP.OUTPUT";
    161161            $inputMask = "PSWARP.OUTPUT.MASK";
    162162            $inputVariance = "PSWARP.OUTPUT.VARIANCE";
     
    312312
    313313        my $outputStatsReal = $ipprc->file_resolve($outputStats);
    314         &my_die("Couldn't find expected output file: $outputStats", $diff_id, $skycell_id, $PS_EXIT_SYS_ERROR) unless -f $outputStatsReal;
     314        &my_die("Couldn't find expected output file: $outputStats", $diff_id, $skycell_id, $PS_EXIT_SYS_ERROR) unless $ipprc->file_exists($outputStatsReal);
    315315
    316316        # measure chip stats
     
    341341                &my_die("Couldn't find expected output file: $inverseVariance", $diff_id, $skycell_id, $PS_EXIT_SYS_ERROR) unless $ipprc->file_exists($inverseVariance);
    342342                &my_die("Couldn't find expected output file: $inverseSources", $diff_id, $skycell_id, $PS_EXIT_SYS_ERROR) unless $ipprc->file_exists($inverseSources);
     343                if ($run_state eq 'new') {
     344                    &my_die("Couldn't find expected output file: $configuration", $diff_id, $PS_EXIT_SYS_ERROR) unless $ipprc->file_exists($configuration);
     345                }
    343346            }
    344347        }
Note: See TracChangeset for help on using the changeset viewer.