IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Changeset 17250


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.

Location:
trunk/ippScripts/scripts
Files:
2 edited

Legend:

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

    r16563 r17250  
    4848           'no-op'             => \$no_op,
    4949           ) or pod2usage( 2 );
    50 
     50$verbose = 1;
    5151pod2usage( -msg => "Unknown option: @ARGV", -exitval => 2 ) if @ARGV;
    5252pod2usage( -msg => "Required options: --det_id --iteration --camera --det_type --outroot",
     
    186186        my $command = "$dettool -addprocessedimfile";
    187187        $command .= " -det_id $det_id";
    188         $command .= " -iter $iter";
     188# this option seems to have been removed
     189#       $command .= " -iter $iter";
    189190        $command .= " -code $exit_code";
    190191        $command .= " -dbname $dbname" if defined $dbname;
  • 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.