Changeset 9892 for trunk/ippScripts/scripts/detrend_process_imfile.pl
- Timestamp:
- Nov 7, 2006, 10:38:05 AM (20 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/ippScripts/scripts/detrend_process_imfile.pl
r9869 r9892 18 18 use Pod::Usage qw( pod2usage ); 19 19 20 my ($det_id, $exp_tag, $class_id, $det_type, $input_uri, $ output_uri, $no_update);20 my ($det_id, $exp_tag, $class_id, $det_type, $input_uri, $camera, $no_update); 21 21 GetOptions( 22 22 'det_id|d=s' => \$det_id, 23 'exp_tag|e=s' => \$exp_tag,23 'exp_tag|e=s' => \$exp_tag, 24 24 'class_id|i=s' => \$class_id, 25 25 'det_type|t=s' => \$det_type, 26 26 'input_uri|u=s' => \$input_uri, 27 'camera|c=s' => \$camera, 27 28 'no-update' => \$no_update 28 29 ) or pod2usage( 2 ); … … 30 31 pod2usage( -msg => "Unknown option: @ARGV", -exitval => 2 ) if @ARGV; 31 32 pod2usage( 32 -msg => "Required options: --det_id --exp_tag --class_id --det_type --input_uri ",33 -msg => "Required options: --det_id --exp_tag --class_id --det_type --input_uri --camera", 33 34 -exitval => 3, 34 35 ) unless defined $det_id … … 36 37 and defined $class_id 37 38 and defined $det_type 38 and defined $input_uri; 39 and defined $input_uri 40 and defined $camera; 41 42 $ipprc->define_camera($camera); 39 43 40 44 # Recipes to use, as a function of the detrend type … … 57 61 die "Unrecognised detrend type: $det_type\n" if not defined $recipe; 58 62 59 ### Output file name --- must match camera configuration!63 ### Output file name 60 64 my ($vol, $dir, $file) = File::Spec->splitpath( $input_uri ); 61 65 my $outputRoot = $exp_tag . '.detproc.' . $det_id; # Root name 62 66 $outputRoot = File::Spec->rel2abs( File::Spec->catpath( $vol, $dir, $outputRoot ), $ipprc->workdir() ); 63 67 $input_uri = File::Spec->rel2abs( $input_uri, $ipprc->workdir() ); 64 my $outputImage = $outputRoot . '.' . $class_id . '.fits'; 68 69 my $outputImage = $ipprc->filename("PPIMAGE.OUTPUT", $outputRoot, $class_id); 70 my $outputBin1 = $ipprc->filename("PPIMAGE.BIN1", $outputRoot, $class_id); 71 my $outputBin2 = $ipprc->filename("PPIMAGE.BIN2", $outputRoot, $class_id); 72 65 73 my $outputStats = $outputRoot . '.' . $class_id . '.stats'; 66 my $outputBin1 = $outputRoot . '.' . $class_id . '.b1.fits';67 my $outputBin2 = $outputRoot . '.' . $class_id . '.b2.fits';68 74 69 75 # Run ppImage
Note:
See TracChangeset
for help on using the changeset viewer.
