- Timestamp:
- Jan 21, 2008, 4:56:26 PM (18 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/eam_branch_20080121/ippScripts/scripts/detrend_stack.pl
r15467 r16176 33 33 use Pod::Usage qw( pod2usage ); 34 34 35 my ($det_id, $iter, $class_id, $det_type, $camera, $ dbname, $workdir, $reduction, $no_update, $no_op, $quiet);35 my ($det_id, $iter, $class_id, $det_type, $camera, $outroot, $dbname, $reduction, $no_update, $no_op, $quiet); 36 36 GetOptions( 37 37 'det_id|d=s' => \$det_id, … … 40 40 'det_type|t=s' => \$det_type, 41 41 'camera|c=s' => \$camera, 42 'outroot|w=s' => \$outroot, # output file base name 42 43 'dbname|d=s' => \$dbname, # Database name 43 'workdir|w=s' => \$workdir, # Working directory, for output files44 44 'reduction=s' => \$reduction, # Reduction class for processing 45 45 'no-update' => \$no_update, … … 49 49 50 50 pod2usage( -msg => "Unknown option: @ARGV", -exitval => 2 ) if @ARGV; 51 pod2usage( -msg => "Required options: --det_id --iteration --class_id --det_type --camera", 52 -exitval => 3) 53 unless defined $det_id 54 and defined $iter 55 and defined $class_id 56 and defined $det_type 57 and defined $camera; 51 pod2usage( -msg => "Required options: --det_id --iteration --class_id --det_type --camera --outroot", 52 -exitval => 3) unless 53 defined $det_id and 54 defined $iter and 55 defined $class_id and 56 defined $det_type and 57 defined $camera and 58 defined $outroot; 58 59 59 60 my $verbose = 1; … … 111 112 } 112 113 113 $workdir = caturi( $workdir, "$camera.$det_type.$det_id" ) if defined $workdir; 114 115 my $outputRoot = $ipprc->file_prepare( "$camera.$det_type.$det_id.$iter.$class_id", $workdir, ${$files}[0]->{uri} ); 116 my $outputStack = $outputRoot . '.fits'; # Output name 117 my $outputStats = $outputRoot . '.stats'; # Statistics name 118 119 my $traceDest = 'file:' . $ipprc->file_resolve($outputRoot) . ".trace"; # Trace messages 120 my $logDest = 'file:' . $ipprc->file_resolve($outputRoot) . ".log"; # Log messages 114 # outroot examples (HOST components must be set) 115 # file://data/ipp004.0/gpc1/20080130 116 # neb:///ipp004-v1/gpc1/20080130 117 # neb:///*/gpc1/20080130 (volume not specified) 118 119 # check for existing directory, generate if needed 120 $ipprc->outroot_prepare($outroot); 121 122 ## XXX should we be using the filerules here? 123 my $outputStack = $outroot . '.fits'; # Output name 124 my $outputStats = $outroot . '.stats'; # Statistics name 125 my $traceDest = $outroot . '.trace'; # Trace messages 126 my $logDest = $outroot . '.log'; # Log messages 121 127 122 128 $command = "$ppMerge $outputStack"; # Command to run
Note:
See TracChangeset
for help on using the changeset viewer.
