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_process_exp.pl

    r12079 r12421  
    113113}
    114114
     115# Set output directory
    115116if (defined $workdir) {
    116117    $workdir = $ipprc->convert_filename_absolute( $workdir );
     118    my $subdir = "$camera.$det_type.$det_id";
     119    $workdir = File::Spec->catdir( $workdir, $subdir, $exp_tag );
    117120} else {
    118     my $example = ${$files}[0]->{path_base}; # Example original root name
     121    my $example = $ipprc->convert_filename_absolute( ${$files}[0]->{path_base} ); # Example original name
    119122    my ($vol, $dir, $file) = File::Spec->splitpath( $example );
    120123    $workdir = $dir;
    121124}
     125system "mkdir -p $workdir" unless -d $workdir;
     126
    122127my $outputFile = $exp_tag . '.detproc.' . $det_id; # Root name
    123 my $outputRoot = File::Spec->catfile( $workdir, $exp_tag, $outputFile );
     128my $outputRoot = File::Spec->catfile( $workdir, $outputFile );
    124129
    125130# output files:
Note: See TracChangeset for help on using the changeset viewer.