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

    r9892 r10419  
    9393# Generate the file list, and get the statistics
    9494my $outputRoot = $exp_tag . '.detproc.' . $det_id; # Root output name
    95 $outputRoot = File::Spec->rel2abs( File::Spec->catpath( $vol, $dir, $outputRoot ), $ipprc->workdir() );
     95$outputRoot = File::Spec->catpath( $vol, $dir, $outputRoot );
     96$outputRoot = $ipprc->convert_filename ($outputRoot);
    9697my $list1Name = $outputRoot . '.b1.list'; # Name for the input file list for binning 1
    9798my $list2Name = $outputRoot . '.b2.list'; # Name for the input file list for binning 2
     
    101102open my $list2File, '>' . $list2Name;
    102103foreach my $file (@$files) {
    103     print $list1File (File::Spec->rel2abs( $file->{b1_uri}, $ipprc->workdir() ) . "\n");
    104     print $list2File (File::Spec->rel2abs( $file->{b2_uri}, $ipprc->workdir() ) . "\n");
     104    print $list1File ($ipprc->convert_filename ( $file->{b1_uri} ) . "\n");
     105    print $list2File ($ipprc->convert_filename ( $file->{b2_uri} ) . "\n");
    105106    push @means, $file->{bg};
    106107    push @stdevs, $file->{bg_stdev};
     
    131132
    132133# Add the result into the database
    133 $outputRoot = File::Spec->abs2rel( $outputRoot, $ipprc->workdir() );
    134 $jpeg1  = File::Spec->abs2rel( $jpeg1, $ipprc->workdir() );
    135 $jpeg2  = File::Spec->abs2rel( $jpeg2, $ipprc->workdir() );
     134$outputRoot = $ipprc->convert_filename ( $outputRoot );
     135$jpeg1  = $ipprc->convert_filename ( $jpeg1 );
     136$jpeg2  = $ipprc->convert_filename ( $jpeg2 );
    136137unless ($no_update) {
    137138    my $command = "$dettool -addprocessedexp -det_id $det_id -exp_tag $exp_tag " .
Note: See TracChangeset for help on using the changeset viewer.