IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Mar 31, 2008, 1:22:44 PM (18 years ago)
Author:
bills
Message:

need to initialize $dettool a little earlier so it is available to mydie.

File:
1 edited

Legend:

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

    r17241 r17250  
    8181my $stats = PS::IPP::Metadata::Stats->new($STATS); # Stats parser
    8282
     83# Look for programs we need
     84my $missing_tools;
     85my $dettool = can_run('dettool') or (warn "Can't find dettool" and $missing_tools = 1);
     86my $ppMerge = can_run('ppMerge') or (warn "Can't find ppMerge" and $missing_tools = 1);
     87if ($missing_tools) {
     88    warn("Can't find required tools.");
     89    exit($PS_EXIT_CONFIG_ERROR);
     90}
     91
    8392# The output file rule name depends on the detrend type
    8493my $FILERULES = { 'FLATMASK' => 'PPMERGE.OUTPUT.MASK',
     
    96105&my_die("Unrecognised detrend type: $det_type", $det_id, $iter, $class_id, $PS_EXIT_SYS_ERROR) unless defined $output_filerule;
    97106
    98 # Look for programs we need
    99 my $missing_tools;
    100 my $dettool = can_run('dettool') or (warn "Can't find dettool" and $missing_tools = 1);
    101 my $ppMerge = can_run('ppMerge') or (warn "Can't find ppMerge" and $missing_tools = 1);
    102 if ($missing_tools) {
    103     warn("Can't find required tools.");
    104     exit($PS_EXIT_CONFIG_ERROR);
    105 }
    106107
    107108# Get list of files to stack
Note: See TracChangeset for help on using the changeset viewer.