IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

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

adding outpath option to scripts

File:
1 edited

Legend:

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

    r10757 r11110  
    2222    $input,                     # Input FITS file
    2323    $camera,                    # Camera
     24    $outpath,                   # Outpath
    2425    $no_update                  # Don't update the database?
    2526    );
     
    2930    'uri|u=s'       => \$input,
    3031    'camera|c=s'    => \$camera,
     32    'outpath|o=s'   => \$outpath,
    3133    'no-update'     => \$no_update
    3234) or pod2usage( 2 );
     
    3436pod2usage( -msg => "Unknown option: @ARGV", -exitval => 2 ) if @ARGV;
    3537pod2usage(
    36     -msg => "Required options: --exp_tag --class_id --uri --camera",
     38    -msg => "Required options: --exp_tag --class_id --uri --camera --outpath",
    3739    -exitval => 3,
    3840) unless defined $expTag
    3941    and defined $classId
    4042    and defined $input
     43    and defined $outpath
    4144    and defined $camera;
    4245
     
    4952die "Can't find required tools.\n" if $missing_tools;
    5053
     54# XXX old verion Output file name
     55# XXX old version (drop) : my ($vol, $dir, $file) = File::Spec->splitpath( $input );
     56
    5157### Output file name --- must match camera configuration!
    52 my ($vol, $dir, $file) = File::Spec->splitpath( $input );
    5358my $outputRoot =  $expTag . '.p2';
    54 $outputRoot = File::Spec->catpath( $vol, $dir, $outputRoot );
     59$outputRoot = File::Spec->catpath( $outpath, $outputRoot );
    5560$outputRoot = $ipprc->convert_filename_absolute($outputRoot);
    5661$input = $ipprc->convert_filename_absolute ( $input );
Note: See TracChangeset for help on using the changeset viewer.