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/phase3.pl

    r11297 r11298  
    1919use Pod::Usage qw( pod2usage );
    2020
    21 my ($exp_tag, $camera, $outpath, $dbname, $no_update);
     21my ($exp_tag, $camera, $outpath, $dbname, $workdir, $no_update);
    2222GetOptions(
    2323    'exp_tag|e=s'       => \$exp_tag,
    2424    'camera|c=s'        => \$camera,
    25     'outpath|o=s'       => \$outpath,
    2625    'dbname|d=s'        => \$dbname, # Database name
     26    'workdir|w=s'       => \$workdir,
    2727    'no-update'         => \$no_update
    2828) or pod2usage( 2 );
     
    9898}
    9999
    100 # XXX old verison, drop
    101 #my $example = ${$files}[0]->{b1_uri}; # Example filename
    102 #my ($vol, $dir, $file) = File::Spec->splitpath( $example );
     100unless (defined $workdir) {
     101    my $example = ${$files}[0]->{b1_uri}; # Example filename
     102    my ($vol, $dir, $file) = File::Spec->splitpath( $example );
     103    $workdir = $dir;
     104}
    103105
    104106# Generate the file list, and get the statistics
    105107my $outputRoot = $exp_tag . '.p3'; # Root output name
    106 $outputRoot = File::Spec->catpath( $outpath, $outputRoot );
     108$outputRoot = File::Spec->catfile( $workdir, $outputRoot );
    107109$outputRoot = $ipprc->convert_filename_absolute($outputRoot);
    108110my $list1Name = $outputRoot . '.b1.list'; # Name for the input file list for binning 1
Note: See TracChangeset for help on using the changeset viewer.