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

    r11297 r11298  
    2424    $detType,                   # Detrend type
    2525    $dbname,                    # Database name
     26    $workdir,                   # Working directory, for output files
    2627    $no_update                  # Don't update the database
    2728    );
     
    3536    'det_type|t=s'      => \$detType,
    3637    'dbname|d=s'        => \$dbname,
     38    'workdir|w=s'       => \$workdir, # Working directory, for output files
    3739    'no-update'         => \$no_update
    3840    ) or pod2usage( 2 );
     
    6062die "Can't find required tools.\n" if $missing_tools;
    6163
    62 my ($vol, $dir, $file) = File::Spec->splitpath( $input );
     64unless (defined $workdir) {
     65    my ($vol, $dir, $file) = File::Spec->splitpath( $input );
     66    $workdir = $dir;
     67}
    6368$input = $ipprc->convert_filename_absolute( $input );
    6469
    6570# Output name
    6671my $outputRoot = $camera . '.' . $detType . '.norm.' . $detId . '.' . $iter; # Root output name
    67 $outputRoot = File::Spec->catpath( $vol, $dir, $outputRoot );
     72$outputRoot = File::Spec->catfile( $workdir, $outputRoot );
    6873$outputRoot = $ipprc->convert_filename_absolute($outputRoot);
    6974
Note: See TracChangeset for help on using the changeset viewer.