IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Jan 29, 2007, 1:11:35 PM (19 years ago)
Author:
Paul Price
Message:

b1_uri now contains the output root name; b2 is unused. The idea here is that we have the file names defined in the camera configuration, and this means we can now add other files without the overhead of hacking the database schema.

File:
1 edited

Legend:

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

    r11360 r11394  
    109109    $workdir = $ipprc->convert_filename_absolute( $workdir );
    110110} else {
    111     my $example = ${$files}[0]->{b1_uri}; # Example filename
     111    my $example = ${$files}[0]->{b1_uri}; # Example original root name
    112112    my ($vol, $dir, $file) = File::Spec->splitpath( $example );
    113113    $workdir = $dir;
     
    124124open my $list2File, '>' . $list2Name;
    125125foreach my $file (@$files) {
    126     print $list1File ($ipprc->convert_filename_absolute( $file->{b1_uri} ) . "\n");
    127     print $list2File ($ipprc->convert_filename_absolute( $file->{b2_uri} ) . "\n");
     126    my $origRoot = $ipprc->convert_filename_absolute( $file->{b1_uri} ); # Original root name
     127    print $list1File ($ipprc->filename( "PPIMAGE.BIN1", $origRoot, $file->{class_id} ) . "\n");
     128    print $list2File ($ipprc->filename( "PPIMAGE.BIN2", $origRoot, $file->{class_id} ) . "\n");
    128129    push @means, $file->{bg};
    129130    push @stdevs, $file->{bg_stdev};
     
    167168unless ($no_update) {
    168169    my $command = "$dettool -addprocessedexp -det_id $det_id -exp_tag $exp_tag " .
    169         "-recip " . RECIPE1() . "," . RECIPE2() . " -b1_uri $jpeg1 -b2_uri $jpeg2 " .
     170        "-recip " . RECIPE1() . "," . RECIPE2() . " -b1_uri $outputRoot " .
    170171        "-bg $bg -bg_stdev $bg_stdev -bg_mean_stdev $bg_mean_stdev"; # Command to run
    171172    $command .= " -dbname $dbname" if defined $dbname;
Note: See TracChangeset for help on using the changeset viewer.