IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Dec 7, 2006, 12:56:06 PM (19 years ago)
Author:
Paul Price
Message:

Convert back to relative paths when putting filenames into the database.

File:
1 edited

Legend:

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

    r10419 r10534  
    5959
    6060my ($vol, $dir, $file) = File::Spec->splitpath( $input );
    61 $input = $ipprc->convert_filename ( $input );
     61$input = $ipprc->convert_filename_absolute( $input );
    6262
    6363# Output name
    6464my $outputRoot = $camera . '.' . $detType . '.norm.' . $detId . '.' . $iter; # Root output name
    6565$outputRoot = File::Spec->catpath( $vol, $dir, $outputRoot );
    66 $outputRoot = $ipprc->convert_filename ($outputRoot);
     66$outputRoot = $ipprc->convert_filename_absolute($outputRoot);
    6767
    6868my $output = $ipprc->filename("PPIMAGE.OUTPUT", $outputRoot, $classId);
     
    100100
    101101# Update the database
    102 $output = $ipprc->convert_filename ( $output );
    103 $b1name = $ipprc->convert_filename ( $b1name );
    104 $b2name = $ipprc->convert_filename ( $b2name );
     102$output = $ipprc->convert_filename_relative( $output );
     103$b1name = $ipprc->convert_filename_relative( $b1name );
     104$b2name = $ipprc->convert_filename_relative( $b2name );
    105105unless ($no_update) {
    106106    my $command = "$dettool -addnormalizedimfile -det_id $detId -iteration $iter -class_id $classId ".
Note: See TracChangeset for help on using the changeset viewer.