- Timestamp:
- May 3, 2010, 8:41:49 AM (16 years ago)
- Location:
- branches/tap_branches
- Files:
-
- 2 edited
-
. (modified) (1 prop)
-
tools/examine_burntool_pcontrol.pl (modified) (8 diffs)
Legend:
- Unmodified
- Added
- Removed
-
branches/tap_branches
- Property svn:mergeinfo changed
-
branches/tap_branches/tools/examine_burntool_pcontrol.pl
r25562 r27838 5 5 use Getopt::Std; 6 6 7 getopts(' hfcPv:',\%opt);7 getopts('AhfcPv:',\%opt); 8 8 if (exists($opt{h})) { 9 9 print STDERR "Usage: examine_burntool_pcontrol.pl [-f] <pcontrol.pro>\n"; … … 12 12 print STDERR " -v <val> Use this value as the target burntool_state in convert statements.\n"; 13 13 print STDERR " -P Print out the ipp_apply_burntool.pl commands, even if fully updated.\n"; 14 print STDERR " -A Print out the ipp_apply_burntool.pl commands, for every exposure not fully updated.\n"; 14 15 print STDERR "\n"; 15 16 print STDERR " Reads in the pcontrol.pro file you're using to run burntool, and uses the\n"; … … 17 18 print STDERR " status of the processing. On the OTA grid:\n"; 18 19 print STDERR " _ Blank chip\n"; 19 print STDERR " N Null/zero value for burntool_state. No burntool attempted.\n"; 20 print STDERR " O -1 value for burntool_state. Burntool is running.\n"; 21 print STDERR " E -2 value for burntool_state. Error!\n"; 20 print STDERR " O Null/zero value for burntool_state. No burntool attempted (yet).\n"; 21 print STDERR " P -1 value for burntool_state. Burntool is running.\n"; 22 print STDERR " E -2 value for burntool_state. Error! (modified raw pixels)\n"; 23 print STDERR " X -3 value for burntool_state. Burntool segfaulted on this chip.\n"; 22 24 print STDERR " B Current version value for burntool_state. Burntool succeeded.\n"; 23 25 print STDERR " b Old version value for burntool_state. Burntool needs to be rerun.\n"; … … 51 53 $burncount++; 52 54 } 53 elsif ($burntool_state == -1) { 55 elsif ($burntool_state == -1) { # processing 54 56 $char = '[01;33mP[m'; 55 57 } 56 elsif ($burntool_state == 0) { 58 elsif ($burntool_state == 0) { # has not been processed yet 57 59 $char = '[31mO[m'; 58 60 } 59 elsif ($burntool_state == -2) { 61 elsif ($burntool_state == -2) { # modified pixel data 60 62 $char = '[35;01;44;05mE[m'; 61 63 } 62 elsif ($burntool_state == -3) { 64 elsif ($burntool_state == -3) { # previous burntool segfaulted. 63 65 $char = '[34mX[m'; 64 66 } 65 else { 67 else { # old version 66 68 $char = '[32mb[m'; 67 69 } … … 77 79 # Engauge autoflush, in case the database server is acting up. 78 80 $| = 1; 81 82 # Set up the class->host hash 83 %host = ('XY01' => 'ipp014', 'XY02' => 'ipp014', 'XY03' => 'ipp038', 'XY04' => 'ipp038', 84 'XY05' => 'ipp023', 'XY06' => 'ipp023', 85 'XY10' => 'ipp039', 'XY11' => 'ipp039', 'XY12' => 'ipp024', 'XY13' => 'ipp024', 86 'XY14' => 'ipp040', 'XY15' => 'ipp040', 'XY16' => 'ipp026', 'XY17' => 'ipp026', 87 'XY20' => 'ipp041', 'XY21' => 'ipp041', 'XY22' => 'ipp042', 'XY23' => 'ipp042', 88 'XY24' => 'ipp043', 'XY25' => 'ipp043', 'XY26' => 'ipp028', 'XY27' => 'ipp028', 89 'XY30' => 'ipp044', 'XY31' => 'ipp044', 'XY32' => 'ipp029', 'XY33' => 'ipp029', 90 'XY34' => 'ipp045', 'XY35' => 'ipp045', 'XY36' => 'ipp030', 'XY37' => 'ipp030', 91 'XY40' => 'ipp046', 'XY41' => 'ipp046', 'XY42' => 'ipp031', 'XY43' => 'ipp031', 92 'XY44' => 'ipp047', 'XY45' => 'ipp047', 'XY46' => 'ipp032', 'XY47' => 'ipp032', 93 'XY50' => 'ipp048', 'XY51' => 'ipp048', 'XY52' => 'ipp033', 'XY53' => 'ipp033', 94 'XY54' => 'ipp049', 'XY55' => 'ipp049', 'XY56' => 'ipp034', 'XY57' => 'ipp034', 95 'XY60' => 'ipp050', 'XY61' => 'ipp050', 'XY62' => 'ipp035', 'XY63' => 'ipp035', 96 'XY64' => 'ipp051', 'XY65' => 'ipp051', 'XY66' => 'ipp036', 'XY67' => 'ipp036', 97 'XY71' => 'ipp052', 'XY72' => 'ipp052', 'XY73' => 'ipp015', 'XY74' => 'ipp015', 98 'XY75' => 'ipp053', 'XY76' => 'ipp053'); 79 99 80 100 # Load the pcontrol.pro file, and create arrays of the dates included … … 129 149 $data_ref = $db->selectall_arrayref( $sth ); 130 150 131 132 151 # Reset 133 152 $cur_exp_id = -99; … … 185 204 printf("%6d %11s %11s %19s %2d %64s %s\n", 186 205 $cur_exp_id,$cur_exp_name,$cur_obs_mode,$cur_dateobs,$burncount, $V,$cur_comment); 206 207 if (($burncount != 60)&&(exists($opt{A}))) { 208 for ($j = 0; $j < 64; $j++) { 209 # printf("%d %s %d\n",$j, $vector[$j], ($vector[$j] !~ /B/)); 210 if (($vector[$j] !~ /B/)&&(exists($opt{A}))) { 211 if ($vector[$j] ne '_') { 212 $id = sprintf("XY%d%d",int($j / 8),$j % 8); 213 print "#### ssh ipp\@$host{$id} && ipp_apply_burntool.pl --class_id $id --dateobs_begin $dmin --dateobs_end $dmax --dbname gpc1 --logfile burntool_logs/${id}.${dmin}.log\n"; 214 } 215 } 216 } 217 } 218 187 219 $burncount = 0; 188 220 for ($j = 0; $j < 64; $j++) { … … 213 245 if ($vector[$j] ne '_') { 214 246 $id = sprintf("XY%d%d",int($j / 8),$j % 8); 215 print "#### ipp_apply_burntool.pl --class_id $id --dateobs_begin $dmin --dateobs_end $dmax --dbname gpc1 --logfile${id}.${dmin}.log\n";247 print "#### ssh ipp\@$host{$id} && ipp_apply_burntool.pl --class_id $id --dateobs_begin $dmin --dateobs_end $dmax --dbname gpc1 --logfile burntool_logs/${id}.${dmin}.log\n"; 216 248 } 217 249 }
Note:
See TracChangeset
for help on using the changeset viewer.
