IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Dec 3, 2006, 8:42:44 AM (19 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_norm_exp.pl

    r9892 r10419  
    9595# Generate the file list, and get the statistics
    9696my $outputRoot = $camera . '.' . $det_type . '.norm.' . $det_id . '.' . $iter; # Root output name
    97 $outputRoot = File::Spec->rel2abs( File::Spec->catpath( $vol, $dir, $outputRoot ), $ipprc->workdir() );
     97$outputRoot = File::Spec->catpath( $vol, $dir, $outputRoot );
     98$outputRoot = $ipprc->convert_filename ($outputRoot);
    9899my $list1Name = $outputRoot . '.b1.list'; # Name for the input file list for binning 1
    99100my $list2Name = $outputRoot . '.b2.list'; # Name for the input file list for binning 2
     
    103104open my $list2File, '>' . $list2Name;
    104105foreach my $file (@$files) {
    105     print $list1File (File::Spec->rel2abs( $file->{b1_uri}, $ipprc->workdir() ) . "\n");
    106     print $list2File (File::Spec->rel2abs( $file->{b2_uri}, $ipprc->workdir() ) . "\n");
     106    print $list1File ($ipprc->convert_filename ( $file->{b1_uri} ) . "\n");
     107    print $list2File ($ipprc->convert_filename ( $file->{b2_uri} ) . "\n");
    107108    push @means, $file->{bg};
    108109    push @stdevs, $file->{bg_stdev};
     
    132133
    133134# Add the result into the database
    134 $jpeg1Name = File::Spec->abs2rel( $jpeg1Name, $ipprc->workdir() );
    135 $jpeg2Name = File::Spec->abs2rel( $jpeg2Name, $ipprc->workdir() );
     135$jpeg1Name = $ipprc->convert_filename ( $jpeg1Name );
     136$jpeg2Name = $ipprc->convert_filename ( $jpeg2Name );
    136137unless ($no_update) {
    137138    my $command = "$dettool -addnormalizedexp -det_id $det_id -iteration $iter " .
Note: See TracChangeset for help on using the changeset viewer.