IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Mar 12, 2007, 5:01:10 PM (19 years ago)
Author:
Paul Price
Message:

Updating directory names, output file names.

File:
1 edited

Legend:

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

    r11837 r12421  
    9898}
    9999
     100# Set output directory
    100101if (defined $workdir) {
    101102    $workdir = $ipprc->convert_filename_absolute( $workdir );
     103    my $subdir = "$camera.$det_type.$det_id";
     104    $workdir = File::Spec->catdir( $workdir, $subdir );
    102105} else {
    103     my $example = ${$files}[0]->{uri}; # Example file
     106    my $example = $ipprc->convert_filename_absolute( ${$files}[0]->{uri} ); # Example file
    104107    my ($vol, $dir, $file) = File::Spec->splitpath( $example );
    105108    $workdir = $dir;
    106109}
     110system "mkdir -p $workdir" unless -d $workdir;
    107111
    108112# Stack the files
Note: See TracChangeset for help on using the changeset viewer.