IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Aug 26, 2014, 4:17:26 PM (12 years ago)
Author:
watersc1
Message:

Updated with comments.

File:
1 edited

Legend:

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

    r37312 r37313  
    3939die "usage: $0 --exp_name (exp_name) --class_id (class_id)\n" unless $class_id and $exp_name;
    4040
    41 
     41# Set up the commands we'll use:
    4242$regtool  .= " -dbname $dbname -exp_name $exp_name -class_id $class_id";
    4343$burntool .= " --dbname $dbname --camera $camera";
    4444
     45# Check database entry for this to get the exp_id and image uri
    4546my $regData;
    4647{
     
    6465die "failed to find uri in regtool output" unless $uri;
    6566
     67# Construct burntool table name
    6668my $table;
    6769($table = $uri) =~ s/\.fits/\.burn\.tbl/;
    6870print "$table\n";
    6971
     72# Look for the old table, and if it exists, move it out of the way and delete it so we can work from scratch.
    7073my $table_exists;
    7174{
     
    9598}
    9699
     100# Calculate the previous uri for the table by decrementing the nightly image sequence
    97101my $left = substr $exp_name, 0, 6;
    98102my $num = substr $exp_name, 6, 4;
     
    107111$prev_uri =~ s/$exp_name/$prev_name/g;
    108112die "failed" unless $prev_uri;
    109 # print "$prev_name $prev_uri\n";
     113
     114# Run the burntool command to generate the table.
    110115{
    111116    my $command = "$burntool --exp_id $exp_id --class_id $class_id --this_uri $uri --previous_uri $prev_uri";
     
    120125    }
    121126}
     127
     128# This isn't needed, but doesn't hurt anything.
     129# Copy the table we just made to a local directory
    122130if (defined $save) {
    123131    my $nebfile = `neb-locate -p $table`; chomp $nebfile;
Note: See TracChangeset for help on using the changeset viewer.