Changeset 39095 for trunk/tools/bills/comparep2detections
- Timestamp:
- Nov 10, 2015, 8:54:57 AM (11 years ago)
- File:
-
- 1 edited
-
trunk/tools/bills/comparep2detections (modified) (7 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/tools/bills/comparep2detections
r39002 r39095 7 7 use Pod::Usage qw( pod2usage ); 8 8 use File::Basename; 9 use PS::IPP::Config 1.01 qw( :standard ); 9 10 10 11 … … 13 14 my $out; 14 15 15 my $testdata;16 my ($check, $testdata, $sasdata, $release); 16 17 17 18 my ($verbose, $save_temps); … … 19 20 GetOptions( 20 21 "testdata=s" => \$testdata, 22 # "sasdata=s" => \$sasdata, 23 "release=s" => \$release, 21 24 "join=s" => \$joinType, 25 "check" => \$check, 22 26 "verbose|v" => \$verbose, 23 27 "save-temps" => \$save_temps, … … 28 32 $in = shift; 29 33 $out = shift; 34 35 die "need one of --testdata or --release\n" 36 unless defined $testdata or defined $release; 37 38 30 39 31 40 my $jardir = $ENV{JARDIR}; … … 49 58 # XXX TODO: check for success 50 59 chomp $imageID; 51 my $exp_id = $imageID / 100;60 my $exp_id = int($imageID / 100); 52 61 print "exp_id is $exp_id\n" if $verbose; 53 62 … … 56 65 # my $testdata = "/data/ippc19.0/home/bills/ipp/ippToPsps/test/testdata"; 57 66 $smf = sprintf "%s/test.%02d.smf", $testdata, $exp_id; 67 #} elsif ($sasdata) { 68 # this attempted hack did not work 69 # die "only exp_id 1 works right now for sasdata\n" unless $exp_id eq 1; 70 # 71 # $smf = sprintf "%s/o5748g0363o.358745.cm.1218981.smf", $sasdata; 58 72 } else { 59 73 # XXX: look up the smf for the exposure here 60 die "only test mode works right now\n"; 74 # die "only test mode works right now\n"; 75 my $cmd = "releasetool -listrelexp -release_name $release -exp_id $exp_id | grep path_base | awk '{print \$3}'"; 76 print "$cmd\n" if $verbose; 77 my $path_base = `$cmd`; 78 chomp $path_base; 79 die "failed to find path_base for $exp_id\n" unless $path_base; 80 $smf = "$path_base.smf"; 81 print "$smf for $exp_id is $smf\n"; 61 82 } 62 83 63 84 my $ippcat = "cat." . basename($smf); 85 86 if ($smf =~ /^neb:/) { 87 my $ipprc = PS::IPP::Config->new(); 88 my $resolved = $ipprc->file_resolve($smf); 89 die "failed to resolve $smf\n" unless $resolved; 90 $smf = $resolved; 91 } 64 92 65 93 $command = "concatsmf $smf $ippcat"; … … 76 104 } 77 105 78 runcommand("adddeltacolumns $matched $out"); 106 $command = "adddeltacolumns $matched $out"; 107 $command .= " --check" if $check; 108 109 runcommand($command); 79 110 80 111 exit 0;
Note:
See TracChangeset
for help on using the changeset viewer.
