- Timestamp:
- Oct 12, 2015, 1:29:43 PM (11 years ago)
- File:
-
- 1 edited
-
trunk/tools/bills/detectToMeasure (modified) (6 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/tools/bills/detectToMeasure
r38746 r38843 15 15 use Pod::Usage qw( pod2usage ); 16 16 17 my ($ra, $dec, $cat_id, $exp_id, $class_id, $ det_id);17 my ($ra, $dec, $cat_id, $exp_id, $class_id, $stack_id, $det_id); 18 18 19 19 my ($outputFile, $ofmt, $save_temps, $verbose); … … 26 26 "exp_id=s" => \$exp_id, 27 27 "class_id=s" => \$class_id, 28 "stack_id=s" => \$stack_id, 28 29 "det_id=s" => \$det_id, 29 30 "list-others" => \$listOthers, … … 36 37 ) or pod2usage( 2 ); 37 38 38 unless (defined $ra and defined $dec and defined $exp_id and defined $class_id) {39 print STDERR "usage: $0 --ra <ra> --dec <dec> [--cat_id <cat_id>] --exp_id <exp_id> --class_id <class_id> [--det_id <det_id> --output <output file name>\n";39 unless (defined $ra and defined $dec and (defined $stack_id or (defined $exp_id and defined $class_id)) ) { 40 print STDERR "usage: $0 --ra <ra> --dec <dec> [--cat_id <cat_id>] (--exp_id <exp_id> --class_id <class_id> | --stack_id <stack_id>) [--det_id <det_id>] [--output <output file name>]\n"; 40 41 print STDERR " Other options: --list-others --this-image --ofmt\n"; 41 42 exit 1; … … 50 51 51 52 # XXX: make label and catdir options 53 # XXX: should be using release_name which will have pointers to the right datat and the catdir 52 54 my $label = "SAS.20141118"; 53 55 my $catdir = '/data/ipp079.0/gpc1/catdirs/SAS/SAS39.V1'; … … 108 110 my $extern_id; 109 111 my $image_id; 110 {112 if ($exp_id) { 111 113 my $command = "$chiptool -processedimfile -exp_id $exp_id -class_id $class_id -label $label | grep chip_imfile_id | awk '{print \$3}'"; 112 114 my ( $success, $error_code, $full_buf, $stdout_buf, $stderr_buf ) = … … 123 125 chomp $output; 124 126 $extern_id = $output; 127 } else { 128 die "Need exp_id or stack_id!!\n" unless $stack_id; 129 $extern_id = $stack_id; 125 130 } 126 131
Note:
See TracChangeset
for help on using the changeset viewer.
