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

    r10419 r10534  
    7777my $outputRoot = $camera . '.' . $det_type . '.' . $det_id . '.' . $iter . '.' . $class_id; # Root name
    7878$outputRoot = File::Spec->catpath( $vol, $dir, $outputRoot );
    79 $outputRoot = $ipprc->convert_filename ($outputRoot);
     79$outputRoot = $ipprc->convert_filename_absolute($outputRoot);
    8080my $outputStack = $outputRoot . '.fits'; # Output name
    8181my $outputStats = $outputRoot . '.stats'; # Statistics name
     
    8484    foreach my $file (@$files) {
    8585        my $uri = $file->{uri}; # URI for input file
    86         $uri = $ipprc->convert_filename ($uri);
     86        $uri = $ipprc->convert_filename_absolute($uri);
    8787        $command .= ' ' . $uri;
    8888    }
     
    114114
    115115# Add the resultant into the database
    116 $outputStack = $ipprc->convert_filename ($outputStack);
     116$outputStack = $ipprc->convert_filename_relative($outputStack);
    117117unless ($no_update) {
    118118    my $command = "$dettool -addstacked -det_id $det_id -iteration $iter -class_id $class_id" .
Note: See TracChangeset for help on using the changeset viewer.