IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Changeset 9259


Ignore:
Timestamp:
Oct 4, 2006, 1:53:06 PM (20 years ago)
Author:
Paul Price
Message:

Adding path support

Location:
trunk/ippScripts/scripts
Files:
2 edited

Legend:

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

    r9103 r9259  
    164164            "-bg " . $meanStats->mean() . " -bg_stdev " . $stdevStats->mean() .
    165165            " -bg_mean_stdev " . $meanStdevStats->mean();
    166         $command .= " -reject" if not $master;
     166        $command .= " -accept" if $master;
    167167       
    168168        my ( $success, $error_code, $full_buf, $stdout_buf, $stderr_buf ) =
  • trunk/ippScripts/scripts/detrend_resid.pl

    r9097 r9259  
    1111use PS::IPP::Metadata::Stats;
    1212use Data::Dumper;
     13
     14use PS::IPP::Config;
     15my $ipprc = PS::IPP::Config->new(); # IPP configuration
     16use File::Spec;
    1317
    1418use Getopt::Long qw( GetOptions :config auto_help auto_version gnu_getopt );
     
    7175
    7276### Output file names --- must match camera configuration!
     77my ($vol, $dir, $file) = File::Spec->splitpath( $input_uri );
    7378my $outputRoot = $exp_tag . '.detresid.' . $det_id . '.' . $iter; # Root name
     79$outputRoot = File::Spec->rel2abs( File::Spec->catpath( $vol, $dir, $outputRoot ), $ipprc->workdir() );
     80$input_uri = File::Spec->rel2abs( $input_uri, $ipprc->workdir() );
     81$detrend = File::Spec->rel2abs( $detrend, $ipprc->workdir() );
    7482my $outputName = $outputRoot . '.' . $class_id . '.fits'; # Name for
    7583my $outputStats = $outputRoot . '.' . $class_id . '.stats';
     
    105113
    106114# Add the processed file to the database
     115$outputName = File::Spec->abs2rel ($outputName, $ipprc->workdir() );
     116$bin1Name = File::Spec->abs2rel( $bin1Name, $ipprc->workdir() );
     117$bin2Name = File::Spec->abs2rel( $bin2Name, $ipprc->workdir() );
    107118unless ($no_update) {
    108119    my $command = "$dettool -addresidimfile -det_id $det_id -iteration $iter -exp_tag $exp_tag " .
     
    122133    die "Unable to perform dettool -addprocessed for $det_id/$exp_tag/$class_id: $error_code\n"
    123134        if not $success;
     135
     136    unlink $outputStats;   
    124137}
    125138
    126 unlink $outputStats if DELETE_STATS;
    127 
    128139__END__
Note: See TracChangeset for help on using the changeset viewer.