Changeset 11298 for trunk/ippScripts/scripts/phase2.pl
- Timestamp:
- Jan 25, 2007, 3:15:46 PM (19 years ago)
- File:
-
- 1 edited
-
trunk/ippScripts/scripts/phase2.pl (modified) (4 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/ippScripts/scripts/phase2.pl
r11297 r11298 22 22 $input, # Input FITS file 23 23 $camera, # Camera 24 $outpath, # Outpath25 24 $dbname, # Database name 25 $workdir, # Working directory, for output files 26 26 $no_update # Don't update the database? 27 27 ); … … 31 31 'uri|u=s' => \$input, 32 32 'camera|c=s' => \$camera, 33 'outpath|o=s' => \$outpath,34 33 'dbname|d=s' => \$dbname, # Database name 34 'workdir|w=s' => \$workdir, 35 35 'no-update' => \$no_update 36 36 ) or pod2usage( 2 ); … … 43 43 and defined $classId 44 44 and defined $input 45 and defined $outpath46 45 and defined $camera; 47 46 … … 54 53 die "Can't find required tools.\n" if $missing_tools; 55 54 56 # XXX old verion Output file name 57 # XXX old version (drop) : my ($vol, $dir, $file) = File::Spec->splitpath( $input ); 55 unless (defined $workdir) { 56 my ($vol, $dir, $file) = File::Spec->splitpath( $input ); 57 $workdir = $dir; 58 } 58 59 59 60 ### Output file name --- must match camera configuration! 60 61 my $outputRoot = $expTag . '.p2'; 61 $outputRoot = File::Spec->cat path( $outpath, $outputRoot );62 $outputRoot = File::Spec->catfile( $workdir, $outputRoot ); 62 63 $outputRoot = $ipprc->convert_filename_absolute($outputRoot); 63 64 $input = $ipprc->convert_filename_absolute ( $input );
Note:
See TracChangeset
for help on using the changeset viewer.
