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

    r12079 r12421  
    9393}
    9494
     95# Set output directory
    9596if (defined $workdir) {
    9697    $workdir = $ipprc->convert_filename_absolute( $workdir );
     98    my $subdir = "$camera.$det_type.$det_id";
     99    $workdir = File::Spec->catdir( $workdir, $subdir, $exp_tag );
    97100} else {
    98     my $example = ${$files}[0]->{path_base}; # Example original root name
     101    my $example = $ipprc->convert_filename_absolute( ${$files}[0]->{path_base} ); # Example original name
    99102    my ($vol, $dir, $file) = File::Spec->splitpath( $example );
    100103    $workdir = $dir;
    101104}
     105system "mkdir -p $workdir" unless -d $workdir;
    102106
    103107# Generate the file list, and get the statistics
    104108my $outputFile = "$exp_tag.detresid.$det_id.$iter"; # Root name
    105 my $outputRoot = File::Spec->catfile( $workdir, $exp_tag, $outputFile );
     109my $outputRoot = File::Spec->catfile( $workdir, $outputFile );
    106110
    107111my $list1Name = $outputRoot . '.b1.list'; # Name for the input file list for binning 1
Note: See TracChangeset for help on using the changeset viewer.