- Timestamp:
- Sep 18, 2008, 6:39:14 PM (18 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/eam_branch_20080918/ippScripts/scripts/detrend_resid_imfile.pl
r19374 r19609 24 24 use Pod::Usage qw( pod2usage ); 25 25 26 my ( $det_id, $iter, $ exp_id, $exp_tag, $class_id, $det_type, $detrend, $input_uri, $camera, $mode, $outroot,26 my ( $det_id, $iter, $ref_det_id, $ref_iter, $exp_id, $exp_tag, $class_id, $det_type, $detrend, $input_uri, $camera, $mode, $outroot, 27 27 $dbname, $reduction, $threads, $verbose, $no_update, $no_op, $redirect ); 28 28 GetOptions( 29 29 'det_id|d=s' => \$det_id, 30 30 'iteration=s' => \$iter, 31 'ref_det_id=s' => \$ref_det_id, 32 'ref_iter=s' => \$ref_iter, 31 33 'exp_id|e=s' => \$exp_id, 32 34 'exp_tag|=s' => \$exp_tag, … … 48 50 49 51 pod2usage( -msg => "Unknown option: @ARGV", -exitval => 2 ) if @ARGV; 50 pod2usage( -msg => "Required options: --det_id --iteration -- exp_id --exp_tag --class_id --det_type --camera --input_uri --mode --detrend --outroot (not for 'verify' mode)",52 pod2usage( -msg => "Required options: --det_id --iteration --ref_det_id --ref_iter --exp_id --exp_tag --class_id --det_type --camera --input_uri --mode --detrend --outroot (not for 'verify' mode)", 51 53 -exitval => 3) unless 52 defined $det_id and 53 defined $iter and 54 defined $exp_id and 55 defined $exp_tag and 56 defined $class_id and 57 defined $det_type and 58 defined $input_uri and 59 defined $camera and 60 defined $mode and 61 defined $outroot and 54 defined $det_id and 55 defined $iter and 56 defined $ref_det_id and 57 defined $ref_iter and 58 defined $exp_id and 59 defined $exp_tag and 60 defined $class_id and 61 defined $det_type and 62 defined $input_uri and 63 defined $camera and 64 defined $mode and 65 defined $outroot and 62 66 (defined $detrend or lc($mode) eq 'verify'); 63 67 … … 78 82 &my_die("Unrecognised mode: $mode", $det_id, $iter, $exp_id, $class_id, $PS_EXIT_PROG_ERROR); 79 83 } 84 85 print "raw recipe: $recipe\n"; 80 86 $recipe = $ipprc->reduction($reduction, $recipe); 87 print "real recipe: $recipe\n"; 81 88 82 89 # values to extract from output metadata and the stats to calculate … … 216 223 $command .= " -det_id $det_id"; 217 224 $command .= " -iteration $iter"; 225 $command .= " -ref_det_id $ref_det_id"; 226 $command .= " -ref_iter $ref_iter"; 218 227 $command .= " -exp_id $exp_id"; 219 228 $command .= " -class_id $class_id"; … … 252 261 $command .= " -det_id $det_id"; 253 262 $command .= " -iteration $iter"; 263 $command .= " -ref_det_id $ref_det_id"; 264 $command .= " -ref_iter $ref_iter"; 254 265 $command .= " -exp_id $exp_id"; 255 266 $command .= " -class_id $class_id";
Note:
See TracChangeset
for help on using the changeset viewer.
