Changeset 37313
- Timestamp:
- Aug 26, 2014, 4:17:26 PM (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/ippScripts/scripts/ipp_apply_burntool_fix.pl
r37312 r37313 39 39 die "usage: $0 --exp_name (exp_name) --class_id (class_id)\n" unless $class_id and $exp_name; 40 40 41 41 # Set up the commands we'll use: 42 42 $regtool .= " -dbname $dbname -exp_name $exp_name -class_id $class_id"; 43 43 $burntool .= " --dbname $dbname --camera $camera"; 44 44 45 # Check database entry for this to get the exp_id and image uri 45 46 my $regData; 46 47 { … … 64 65 die "failed to find uri in regtool output" unless $uri; 65 66 67 # Construct burntool table name 66 68 my $table; 67 69 ($table = $uri) =~ s/\.fits/\.burn\.tbl/; 68 70 print "$table\n"; 69 71 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. 70 73 my $table_exists; 71 74 { … … 95 98 } 96 99 100 # Calculate the previous uri for the table by decrementing the nightly image sequence 97 101 my $left = substr $exp_name, 0, 6; 98 102 my $num = substr $exp_name, 6, 4; … … 107 111 $prev_uri =~ s/$exp_name/$prev_name/g; 108 112 die "failed" unless $prev_uri; 109 # print "$prev_name $prev_uri\n"; 113 114 # Run the burntool command to generate the table. 110 115 { 111 116 my $command = "$burntool --exp_id $exp_id --class_id $class_id --this_uri $uri --previous_uri $prev_uri"; … … 120 125 } 121 126 } 127 128 # This isn't needed, but doesn't hurt anything. 129 # Copy the table we just made to a local directory 122 130 if (defined $save) { 123 131 my $nebfile = `neb-locate -p $table`; chomp $nebfile;
Note:
See TracChangeset
for help on using the changeset viewer.
