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

    r11360 r11394  
    8989    $workdir = $ipprc->convert_filename_absolute( $workdir );
    9090} else {
    91     my $example = ${$files}[0]->{b1_uri}; # Example file
     91    my $example = ${$files}[0]->{b1_uri}; # Example original root name
    9292    my ($vol, $dir, $file) = File::Spec->splitpath( $example );
    9393    $workdir = $dir;
     
    107107open my $list2File, '>' . $list2Name;
    108108foreach my $file (@$files) {
    109     print $list1File ($ipprc->convert_filename_absolute( $file->{b1_uri} ) . "\n");
    110     print $list2File ($ipprc->convert_filename_absolute( $file->{b2_uri} ) . "\n");
     109    my $origRoot = $ipprc->convert_filename_absolute( $file->{b1_uri} ); # Original root name
     110    print $list1File ($ipprc->filename( "PPIMAGE.BIN1", $origRoot, $file->{class_id} ) . "\n");
     111    print $list2File ($ipprc->filename( "PPIMAGE.BIN2", $origRoot, $file->{class_id} ) . "\n");
    111112    push @means, $file->{bg};
    112113    push @meanStdevs, $file->{bg_mean_stdev};
     
    270271unless ($no_update) {
    271272    my $command = "$dettool -addresidexp -det_id $det_id -iteration $iter -exp_tag $exp_tag " .
    272         "-recip " . RECIPE1() . "," . RECIPE2() . " -b1_uri $jpeg1Name -b2_uri $jpeg2Name " .
     273        "-recip " . RECIPE1() . "," . RECIPE2() . " -b1_uri $outputRoot " .
    273274        "-bg $mean -bg_stdev $stdev -bg_mean_stdev $meanStdev"; # Command to run
    274275    $command .= ' -reject' if $reject;
Note: See TracChangeset for help on using the changeset viewer.