Changeset 20369 for trunk/ippScripts/scripts/diff_skycell.pl
- Timestamp:
- Oct 24, 2008, 2:56:13 PM (18 years ago)
- File:
-
- 1 edited
-
trunk/ippScripts/scripts/diff_skycell.pl (modified) (4 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/ippScripts/scripts/diff_skycell.pl
r20338 r20369 27 27 use Pod::Usage qw( pod2usage ); 28 28 29 my ($diff_id, $dbname, $threads, $outroot, $ verbose, $no_update, $no_op, $redirect);29 my ($diff_id, $dbname, $threads, $outroot, $reduction, $verbose, $no_update, $no_op, $redirect); 30 30 GetOptions( 31 31 'diff_id|d=s' => \$diff_id, # Diff identifier … … 33 33 'threads=s' => \$threads, # Number of threads to use 34 34 'outroot=s' => \$outroot, # Output root name 35 'reduction=s' => \$reduction, # Reduction class 35 36 'verbose' => \$verbose, # Print to stdout 36 37 'no-update' => \$no_update, # Don't update the database? … … 60 61 warn("Can't find required tools."); 61 62 exit($PS_EXIT_CONFIG_ERROR); 63 } 64 65 # Recipes to use based on reduction class 66 $reduction = 'DEFAULT' unless defined $reduction; 67 my $recipe_ppSub = $ipprc->reduction($reduction, 'DIFF_PPSUB'); # Recipe to use for ppSub 68 my $recipe_psphot = $ipprc->reduction($reduction, 'DIFF_PSPHOT'); # Recipe to use for psphot 69 unless ($recipe_ppSub and $recipe_psphot) { 70 &my_die("Couldn't find selected reduction for DIFF_PPSUB and DIFF_PSPHOT: $reduction\n", $diff_id, $PS_EXIT_CONFIG_ERROR); 62 71 } 63 72 … … 192 201 $command .= " -stats $outputStats"; 193 202 $command .= " -threads $threads" if defined $threads; 203 $command .= " -recipe PPSUB $recipe_ppSub"; 204 $command .= " -recipe PSPHOT $recipe_psphot"; 194 205 $command .= " -recipe PPSTATS WARPSTATS"; 195 206 $command .= " -F PSPHOT.OUTPUT PSPHOT.OUT.CMF.MEF";
Note:
See TracChangeset
for help on using the changeset viewer.
