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/phase3.pl

    r11355 r11394  
    118118    $workdir = $ipprc->convert_filename_absolute( $workdir );
    119119} else {
    120     my $example = ${$files}[0]->{b1_uri}; # Example filename
     120    my $example = ${$files}[0]->{b1_uri}; # Example original root name
    121121    my ($vol, $dir, $file) = File::Spec->splitpath( $example );
    122122    $workdir = $dir;
     
    137137    # use the b1_uri as OUTPUT root and convert the filenames
    138138    # with ipprc->filename:
    139     my $classID = $file->{class_id};
    140     my $fileRoot = $file->{b1_uri};
    141     print $list1File $ipprc->filename("PPIMAGE.BIN1", $file->{b1_uri}, $classID);
    142     print $list2File $ipprc->filename("PPIMAGE.BIN2", $file->{b1_uri}, $classID);
    143     print $list1File $ipprc->filename("PSPHOT.OUTPUT", $file->{b1_uri}, $classID);
    144     print $list1File $ipprc->filename("PSASTRO.OUTPUT", $file->{b1_uri}, $classID);
     139    my $class_id = $file->{class_id};
     140    my $origRoot = $ipprc->convert_filename_absolute( $file->{b1_uri} ); # Original root name
     141    print $list1File $ipprc->filename("PPIMAGE.BIN1", $origRoot, $class_id);
     142    print $list2File $ipprc->filename("PPIMAGE.BIN2", $origRoot, $class_id);
     143    print $list1File $ipprc->filename("PSPHOT.OUTPUT", $origRoot, $class_id);
     144    print $list1File $ipprc->filename("PSASTRO.OUTPUT", $origRoot, $class_id);
    145145    # XXX PSASTRO.OUTPUT is explicitly a CHIP output file
    146146    # XXX below the PSASTRO.OUTPUT must be an FPA output file
     
    196196unless ($no_update) {
    197197    my $command = "$p3tool -addprocessedexp -exp_tag $exp_tag -uri UNKNOWN " .
    198         "-recip " . RECIPE1() . "," . RECIPE2() . " -b1_uri $jpeg1 -b2_uri $jpeg2 " .
     198        "-recip " . RECIPE1() . "," . RECIPE2() . " -b1_uri $outputRoot " .
    199199        "-bg $bg -bg_stdev $bg_stdev -bg_mean_stdev $bg_mean_stdev " .
    200200        "-sigma_ra 0.0 -sigma_dec 0.0 -nastro 0 -zp_mean 0.0 -zp_stdev 0.0"; # Command to run
Note: See TracChangeset for help on using the changeset viewer.