Changeset 9097 for trunk/ippScripts/scripts/detrend_resid.pl
- Timestamp:
- Oct 2, 2006, 12:16:03 PM (20 years ago)
- File:
-
- 1 edited
-
trunk/ippScripts/scripts/detrend_resid.pl (modified) (5 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/ippScripts/scripts/detrend_resid.pl
r9095 r9097 15 15 use Pod::Usage qw( pod2usage ); 16 16 17 my ($det_id, $iter, $exp_ id, $class_id, $det_type, $detrend,17 my ($det_id, $iter, $exp_tag, $class_id, $det_type, $detrend, 18 18 $input_uri, $no_update); 19 19 GetOptions( 20 20 'det_id|d=s' => \$det_id, 21 21 'iteration=s' => \$iter, 22 'exp_ id|e=s' => \$exp_id,22 'exp_tag|e=s' => \$exp_tag, 23 23 'class_id|i=s' => \$class_id, 24 24 'det_type|t=s' => \$det_type, … … 30 30 pod2usage( -msg => "Unknown option: @ARGV", -exitval => 2 ) if @ARGV; 31 31 pod2usage( 32 -msg => "Required options: --det_id --iteration --exp_ id--class_id --det_type --detrend --input_uri",32 -msg => "Required options: --det_id --iteration --exp_tag --class_id --det_type --detrend --input_uri", 33 33 -exitval => 3, 34 34 ) unless defined $det_id 35 35 and defined $iter 36 and defined $exp_ id36 and defined $exp_tag 37 37 and defined $class_id 38 38 and defined $det_type … … 71 71 72 72 ### Output file names --- must match camera configuration! 73 my $outputRoot = $exp_ id. '.detresid.' . $det_id . '.' . $iter; # Root name73 my $outputRoot = $exp_tag . '.detresid.' . $det_id . '.' . $iter; # Root name 74 74 my $outputName = $outputRoot . '.' . $class_id . '.fits'; # Name for 75 75 my $outputStats = $outputRoot . '.' . $class_id . '.stats'; … … 106 106 # Add the processed file to the database 107 107 unless ($no_update) { 108 my $command = "$dettool -addresidimfile -det_id $det_id -iteration $iter -exp_ id $exp_id" .108 my $command = "$dettool -addresidimfile -det_id $det_id -iteration $iter -exp_tag $exp_tag " . 109 109 "-class_id $class_id -recip $recipe -uri $outputName -b1_uri $bin1Name " . 110 110 "-b2_uri $bin2Name"; # Command to run dettool … … 120 120 my ( $success, $error_code, $full_buf, $stdout_buf, $stderr_buf ) = 121 121 run(command => $command, verbose => 1); 122 die "Unable to perform dettool -addprocessed for $det_id/$exp_ id/$class_id: $error_code\n"122 die "Unable to perform dettool -addprocessed for $det_id/$exp_tag/$class_id: $error_code\n" 123 123 if not $success; 124 124 }
Note:
See TracChangeset
for help on using the changeset viewer.
