IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Jan 25, 2007, 3:15:46 PM (19 years ago)
Author:
Paul Price
Message:

Adding -workdir to all scripts.

File:
1 edited

Legend:

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

    r11297 r11298  
    2020
    2121my ($det_id, $iter, $exp_tag, $class_id, $det_type, $detrend,
    22         $input_uri, $camera, $mode, $dbname, $no_update);
     22        $input_uri, $camera, $mode, $dbname, $workdir, $no_update);
    2323GetOptions(
    2424    'det_id|d=s'        => \$det_id,
     
    3232    'mode|m=s'          => \$mode,
    3333    'dbname|d=s'        => \$dbname, # Database name
     34    'workdir|w=s'       => \$workdir,   # Working directory, for output files
    3435    'no-update'         => \$no_update,
    3536) or pod2usage( 2 );
     
    99100
    100101### Output file names --- must match camera configuration!
    101 my ($vol, $dir, $file) = File::Spec->splitpath( $input_uri );
     102unless (defined $workdir) {
     103    my ($vol, $dir, $file) = File::Spec->splitpath( $input_uri );
     104    $workdir = $dir;
     105}
    102106my $outputRoot = $exp_tag . '.detresid.' . $det_id . '.' . $iter; # Root name
    103 $outputRoot = File::Spec->catpath( $vol, $dir, $outputRoot );
     107$outputRoot = File::Spec->catfile( $workdir, $outputRoot );
    104108$outputRoot = $ipprc->convert_filename_absolute( $outputRoot );
    105109$input_uri = $ipprc->convert_filename_absolute( $input_uri );
Note: See TracChangeset for help on using the changeset viewer.