IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Jan 15, 2007, 3:17:04 PM (19 years ago)
Author:
eugene
Message:

adding outpath option to scripts

File:
1 edited

Legend:

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

    r11096 r11110  
    1919use Pod::Usage qw( pod2usage );
    2020
    21 my ($exp_tag, $camera, $no_update);
     21my ($exp_tag, $camera, $outpath, $no_update);
    2222GetOptions(
    2323    'exp_tag|e=s'       => \$exp_tag,
    2424    'camera|c=s'        => \$camera,
     25    'outpath|o=s'   => \$outpath,
    2526    'no-update'         => \$no_update
    2627) or pod2usage( 2 );
     
    2829pod2usage( -msg => "Unknown option: @ARGV", -exitval => 2 ) if @ARGV;
    2930pod2usage(
    30     -msg => "Required options: --exp_tag --camera",
     31    -msg => "Required options: --exp_tag --camera --outpath",
    3132    -exitval => 3,
    3233) unless defined $exp_tag
     
    9596}
    9697
    97 my $example = ${$files}[0]->{b1_uri}; # Example filename
    98 my ($vol, $dir, $file) = File::Spec->splitpath( $example );
     98# XXX old verison, drop
     99#my $example = ${$files}[0]->{b1_uri}; # Example filename
     100#my ($vol, $dir, $file) = File::Spec->splitpath( $example );
    99101
    100102# Generate the file list, and get the statistics
    101103my $outputRoot = $exp_tag . '.p3'; # Root output name
    102 $outputRoot = File::Spec->catpath( $vol, $dir, $outputRoot );
     104$outputRoot = File::Spec->catpath( $outpath, $outputRoot );
    103105$outputRoot = $ipprc->convert_filename_absolute($outputRoot);
    104106my $list1Name = $outputRoot . '.b1.list'; # Name for the input file list for binning 1
Note: See TracChangeset for help on using the changeset viewer.