IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Dec 3, 2006, 8:42:44 AM (20 years ago)
Author:
eugene
Message:

added ipprc.convert_filename method, replaced workdir conversions with convert_filename

File:
1 edited

Legend:

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

    r10333 r10419  
    7171# Generate the file list, and get the statistics
    7272my $outputRoot = $exp_tag . '.detresid.' . $det_id . '.' . $iter; # Root output name
    73 $outputRoot = File::Spec->rel2abs( File::Spec->catpath( $vol, $dir, $outputRoot ), $ipprc->workdir() );
     73$outputRoot = File::Spec->catpath( $vol, $dir, $outputRoot );
     74$outputRoot = $ipprc->convert_filename ($outputRoot);
    7475my $list1Name = $outputRoot . '.b1.list'; # Name for the input file list for binning 1
    7576my $list2Name = $outputRoot . '.b2.list'; # Name for the input file list for binning 2
     
    7980open my $list2File, '>' . $list2Name;
    8081foreach my $file (@$files) {
    81     print $list1File (File::Spec->rel2abs( $file->{b1_uri}, $ipprc->workdir() ) . "\n");
    82     print $list2File (File::Spec->rel2abs( $file->{b2_uri}, $ipprc->workdir() ) . "\n");
     82    print $list1File ($ipprc->convert_filename ( $file->{b1_uri} ) . "\n");
     83    print $list2File ($ipprc->convert_filename ( $file->{b2_uri} ) . "\n");
    8384    push @means, $file->{bg};
    8485    ## calculate the root-mean-square of the bd_stdevs
     
    194195
    195196# Add the result into the database
    196 $jpeg1Name = File::Spec->abs2rel( $jpeg1Name, $ipprc->workdir() );
    197 $jpeg2Name = File::Spec->abs2rel( $jpeg2Name, $ipprc->workdir() );
     197$jpeg1Name = $ipprc->convert_filename ( $jpeg1Name );
     198$jpeg2Name = $ipprc->convert_filename ( $jpeg2Name );
    198199unless ($no_update) {
    199200    my $command = "$dettool -addresidexp -det_id $det_id -iteration $iter -exp_tag $exp_tag " .
Note: See TracChangeset for help on using the changeset viewer.