Changeset 9892 for trunk/ippScripts/scripts/detrend_resid.pl
- Timestamp:
- Nov 7, 2006, 10:38:05 AM (20 years ago)
- File:
-
- 1 edited
-
trunk/ippScripts/scripts/detrend_resid.pl (modified) (4 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/ippScripts/scripts/detrend_resid.pl
r9869 r9892 20 20 21 21 my ($det_id, $iter, $exp_tag, $class_id, $det_type, $detrend, 22 $input_uri, $ no_update);22 $input_uri, $camera, $no_update); 23 23 GetOptions( 24 24 'det_id|d=s' => \$det_id, 25 25 'iteration=s' => \$iter, 26 'exp_tag|e=s' => \$exp_tag,26 'exp_tag|e=s' => \$exp_tag, 27 27 'class_id|i=s' => \$class_id, 28 28 'det_type|t=s' => \$det_type, 29 29 'detrend=s' => \$detrend, 30 30 'input_uri|u=s' => \$input_uri, 31 'camera|c=s' => \$camera, 31 32 'no-update' => \$no_update 32 33 ) or pod2usage( 2 ); … … 34 35 pod2usage( -msg => "Unknown option: @ARGV", -exitval => 2 ) if @ARGV; 35 36 pod2usage( 36 -msg => "Required options: --det_id --iteration --exp_tag --class_id --det_type --detrend -- input_uri",37 -msg => "Required options: --det_id --iteration --exp_tag --class_id --det_type --detrend --camera --input_uri", 37 38 -exitval => 3, 38 39 ) unless defined $det_id … … 42 43 and defined $det_type 43 44 and defined $detrend 44 and defined $input_uri; 45 and defined $input_uri 46 and defined $camera; 47 48 $ipprc->define_camera($camera); 45 49 46 50 # Recipes to use, as a function of the detrend type … … 84 88 $input_uri = File::Spec->rel2abs( $input_uri, $ipprc->workdir() ); 85 89 $detrend = File::Spec->rel2abs( $detrend, $ipprc->workdir() ); 86 my $outputName = $outputRoot . '.' . $class_id . '.fits'; # Name for 90 91 my $outputName = $ipprc->filename("PPIMAGE.OUTPUT", $outputRoot, $class_id); 92 my $bin1Name = $ipprc->filename("PPIMAGE.BIN1", $outputRoot, $class_id); 93 my $bin2Name = $ipprc->filename("PPIMAGE.BIN2", $outputRoot, $class_id); 94 87 95 my $outputStats = $outputRoot . '.' . $class_id . '.stats'; 88 my $bin1Name = $outputRoot . '.' . $class_id . '.b1.fits';89 my $bin2Name = $outputRoot . '.' . $class_id . '.b2.fits';90 96 91 97 # Run ppImage
Note:
See TracChangeset
for help on using the changeset viewer.
