Changeset 11110 for trunk/ippScripts/scripts/phase2.pl
- Timestamp:
- Jan 15, 2007, 3:17:04 PM (20 years ago)
- File:
-
- 1 edited
-
trunk/ippScripts/scripts/phase2.pl (modified) (4 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/ippScripts/scripts/phase2.pl
r10757 r11110 22 22 $input, # Input FITS file 23 23 $camera, # Camera 24 $outpath, # Outpath 24 25 $no_update # Don't update the database? 25 26 ); … … 29 30 'uri|u=s' => \$input, 30 31 'camera|c=s' => \$camera, 32 'outpath|o=s' => \$outpath, 31 33 'no-update' => \$no_update 32 34 ) or pod2usage( 2 ); … … 34 36 pod2usage( -msg => "Unknown option: @ARGV", -exitval => 2 ) if @ARGV; 35 37 pod2usage( 36 -msg => "Required options: --exp_tag --class_id --uri --camera ",38 -msg => "Required options: --exp_tag --class_id --uri --camera --outpath", 37 39 -exitval => 3, 38 40 ) unless defined $expTag 39 41 and defined $classId 40 42 and defined $input 43 and defined $outpath 41 44 and defined $camera; 42 45 … … 49 52 die "Can't find required tools.\n" if $missing_tools; 50 53 54 # XXX old verion Output file name 55 # XXX old version (drop) : my ($vol, $dir, $file) = File::Spec->splitpath( $input ); 56 51 57 ### Output file name --- must match camera configuration! 52 my ($vol, $dir, $file) = File::Spec->splitpath( $input );53 58 my $outputRoot = $expTag . '.p2'; 54 $outputRoot = File::Spec->catpath( $ vol, $dir, $outputRoot );59 $outputRoot = File::Spec->catpath( $outpath, $outputRoot ); 55 60 $outputRoot = $ipprc->convert_filename_absolute($outputRoot); 56 61 $input = $ipprc->convert_filename_absolute ( $input );
Note:
See TracChangeset
for help on using the changeset viewer.
