Changeset 42749
- Timestamp:
- Dec 6, 2024, 1:25:39 PM (20 months ago)
- Location:
- branches/eam_branches/ipp-20230313/tools
- Files:
-
- 1 deleted
- 6 edited
- 2 copied
-
. (modified) (1 prop)
-
eam/file.magic (copied) (copied from trunk/tools/eam/file.magic )
-
eam/rawfix.20230221/src.v0 (deleted)
-
eam/rawfix.20230221/src/get_hosts_fixchip.sh (modified) (1 diff)
-
eam/rawfix.20230221/src/getvidstats.sh (copied) (copied from trunk/tools/eam/rawfix.20230221/src/getvidstats.sh )
-
eam/rawfix.20230221/src/ipp_apply_burntool_psvideo.pl (modified) (6 diffs)
-
eam/rawfix.20230221/src/rawfix.advance.pt (modified) (1 diff)
-
eam/rawfix.20230221/src/rawfix.burntool.pt (modified) (1 diff)
-
eam/rawfix.20230221/src/update.bnodes.sh (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
branches/eam_branches/ipp-20230313/tools
- Property svn:mergeinfo changed
/trunk/tools merged: 42645-42648,42720,42742-42743
- Property svn:mergeinfo changed
-
branches/eam_branches/ipp-20230313/tools/eam/rawfix.20230221/src/get_hosts_fixchip.sh
r42531 r42749 27 27 28 28 foreach f ($basedir/$dateobs/XY??.hosts.txt) 29 set myhost = `cat $f | grep -v ippb | sort -k 2n | tail -n 1 | prcol 1` 29 # set myhost = `cat $f | grep -v ippb | sort -k 2n | tail -n 1 | prcol 1` 30 set myhost = `awk 'BEGIN{srand()}{print $0, rand()}' $f | grep -v ippb | sort -k 2n | tail -n 5 | sort -k 3n | tail -n 1 | prcol 1` 30 31 set chipID = `echo $f | awk -F/ '{print $NF}' | awk -F. '{print $1}'` 31 32 if ("$myhost" == "") then -
branches/eam_branches/ipp-20230313/tools/eam/rawfix.20230221/src/ipp_apply_burntool_psvideo.pl
r42703 r42749 15 15 use Getopt::Long qw( GetOptions :config auto_help auto_version gnu_getopt ); 16 16 use Pod::Usage qw( pod2usage ); 17 18 use Sys::Hostname; 19 my $host = hostname(); 20 my $date = `date`; 21 print "\n\n"; 22 print "Starting script $0 on $host at $date\n\n"; 17 23 18 24 my ( $class_id, $dateobs_begin, $dateobs_end, $convert, $dbname, $logfile, $verbose, $save_temps, $rerun, $psvidOutput); … … 32 38 pod2usage( -msg => "Unknown option: @ARGV", -exitval => 2 ) if @ARGV; 33 39 pod2usage( 34 -msg => "Required options: --class_id --dateobs_begin --dateobs_end --dbname ",40 -msg => "Required options: --class_id --dateobs_begin --dateobs_end --dbname --psvidOutput", 35 41 -exitval => 3, 36 42 ) unless … … 38 44 defined $dateobs_begin and 39 45 defined $dateobs_end and 46 defined $psvidOutput and 40 47 defined $dbname; 41 48 … … 65 72 $ipprc->redirect_output($logfile) if $logfile; 66 73 67 # Determine the value of a "good" burntool run. 68 # XXX this program should always generate the latest version 69 # but the processing system must be told to use an earlier version 70 # until the newer version is validated. Perhaps split these. 71 my $config_cmd = "$ppConfigDump -camera $camera -get-key BURNTOOL.STATE.GOOD"; 72 my ( $success, $error_code, $full_buf, $stdout_buf, $stderr_buf ) = 73 run ( command => $config_cmd, verbose => $verbose); 74 unless ($success) { 75 $error_code = (($error_code >> 8) or $PS_EXIT_PROG_ERROR); 76 &my_die("Unable to perform ppConfigDump: $error_code", 0, 0, $class_id, $PS_EXIT_SYS_ERROR); 77 } 78 79 my $recipeData = $mdcParser->parse(join "", @$stdout_buf) or 80 &my_die("Unable to parse metadata config doc", 0, 0, $class_id, $PS_EXIT_SYS_ERROR); 81 82 my $burntoolStateGood = 999; 83 foreach my $cfg (@$recipeData) { 84 if ($cfg->{name} eq 'BURNTOOL.STATE.GOOD') { 85 $burntoolStateGood = $cfg->{value}; 86 } 87 } 88 if ($burntoolStateGood == 999) { 89 &my_die("Failed to determine BURNTOOL.STATE.GOOD", $burntoolStateGood, $class_id, 0, $PS_EXIT_SYS_ERROR); 74 my $burntoolStateGood = 15; 75 if (0) { 76 # Determine the value of a "good" burntool run. 77 # XXX this program should always generate the latest version 78 # but the processing system must be told to use an earlier version 79 # until the newer version is validated. Perhaps split these. 80 81 my $config_cmd = "$ppConfigDump -camera $camera -get-key BURNTOOL.STATE.GOOD"; 82 my ( $success, $error_code, $full_buf, $stdout_buf, $stderr_buf ) = 83 run ( command => $config_cmd, verbose => $verbose); 84 unless ($success) { 85 $error_code = (($error_code >> 8) or $PS_EXIT_PROG_ERROR); 86 &my_die("Unable to perform ppConfigDump: $error_code", 0, 0, $class_id, $PS_EXIT_SYS_ERROR); 87 } 88 89 my $recipeData = $mdcParser->parse(join "", @$stdout_buf) or 90 &my_die("Unable to parse metadata config doc", 0, 0, $class_id, $PS_EXIT_SYS_ERROR); 91 92 my $burntoolStateGood = 999; 93 foreach my $cfg (@$recipeData) { 94 if ($cfg->{name} eq 'BURNTOOL.STATE.GOOD') { 95 $burntoolStateGood = $cfg->{value}; 96 } 97 } 98 if ($burntoolStateGood == 999) { 99 &my_die("Failed to determine BURNTOOL.STATE.GOOD", $burntoolStateGood, $class_id, 0, $PS_EXIT_SYS_ERROR); 100 } 90 101 } 91 102 my $outState = -1 * abs($burntoolStateGood); 92 103 93 104 print "Target burntool version: $burntoolStateGood\n"; 105 if ($burntoolStateGood != 15) { &my_die ("burntool state is not set to 15\n"); } 94 106 95 107 # Define list of images to examine. … … 101 113 $command .= " -dbname $dbname" if defined $dbname; 102 114 103 ( $success, $error_code, $full_buf, $stdout_buf, $stderr_buf ) =115 my ( $success, $error_code, $full_buf, $stdout_buf, $stderr_buf ) = 104 116 run ( command => $command, verbose => $verbose); 105 117 unless ($success) { … … 151 163 my $outTable = $file->{uri}; 152 164 165 my $data_state = $file->{data_state}; 166 if ($data_state eq "lossy") { 167 print "## skipping $rawImfile : data_state $data_state\n"; 168 next; 169 } 170 153 171 if($burntoolStateGood == 15) { 154 172 $outTable =~ s/fits$/burn.v15.tbl/; -
branches/eam_branches/ipp-20230313/tools/eam/rawfix.20230221/src/rawfix.advance.pt
r42531 r42749 1 1 2 $MAX_ACTIVE_NIGHTS = 102 $MAX_ACTIVE_NIGHTS = 30 3 3 4 4 ## regularly run the command advance.rawfits.sh -
branches/eam_branches/ipp-20230313/tools/eam/rawfix.20230221/src/rawfix.burntool.pt
r42531 r42749 160 160 stderr $mypath/$YEAR/$DATEOBS/log.burntool.run.$CHIP_ID.v$ITER 161 161 162 host -required $BURNHOST 162 163 host $BURNHOST 164 # host -required $BURNHOST 165 # too many jobs wanted the same machines so the processing was clogged. 166 # allow them to go elsewhere if needed. 167 163 168 ## check if this host needs to be launched 164 169 if (not($?host:$BURNHOST)) -
branches/eam_branches/ipp-20230313/tools/eam/rawfix.20230221/src/update.bnodes.sh
r42404 r42749 1 1 #!/bin/csh 2 3 echo "this program is deprecated since we use a directory on b-node for the analysis" 4 exit 2 2 5 3 6 if ($#argv != 2) then
Note:
See TracChangeset
for help on using the changeset viewer.
