Changeset 20369 for trunk/ippScripts/scripts/stack_skycell.pl
- Timestamp:
- Oct 24, 2008, 2:56:13 PM (18 years ago)
- File:
-
- 1 edited
-
trunk/ippScripts/scripts/stack_skycell.pl (modified) (4 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/ippScripts/scripts/stack_skycell.pl
r20316 r20369 30 30 use Pod::Usage qw( pod2usage ); 31 31 32 my ($stack_id, $dbname, $outroot, $debug, $run_state, $threads, $ verbose, $no_update, $no_op, $redirect, $save_temps);32 my ($stack_id, $dbname, $outroot, $debug, $run_state, $threads, $reduction, $verbose, $no_update, $no_op, $redirect, $save_temps); 33 33 GetOptions( 34 34 'stack_id|d=s' => \$stack_id, # Stack identifier … … 38 38 'debug' => \$debug, # Print to stdout 39 39 'threads=s' => \$threads, # Number of threads to use for ppStack 40 'reduction=s' => \$reduction, # Reduction class 40 41 'verbose' => \$verbose, # Print to stdout 41 42 'no-update' => \$no_update, # Don't update the database? … … 74 75 warn("Can't find required tools."); 75 76 exit($PS_EXIT_CONFIG_ERROR); 77 } 78 79 # Recipes to use based on reduction class 80 $reduction = 'DEFAULT' unless defined $reduction; 81 my $recipe_ppStack = $ipprc->reduction($reduction, 'STACK_PPSTACK'); # Recipe to use for ppStack 82 my $recipe_ppSub = $ipprc->reduction($reduction, 'STACK_PPSUB'); # Recipe to use for ppSub 83 my $recipe_psphot = $ipprc->reduction($reduction, 'STACK_PSPHOT'); # Recipe to use for psphot 84 unless ($recipe_ppStack and $recipe_ppSub and $recipe_psphot) { 85 &my_die("Couldn't find selected reduction for STACK_PPSTACK, STACK_PPSUB and STACK_PSPHOT: $reduction\n", $stack_id, $PS_EXIT_CONFIG_ERROR); 76 86 } 77 87 … … 188 198 my $command = "$ppStack $listName $outroot"; 189 199 $command .= " -stats $outputStats" if $do_stats;; 190 $command .= " -recipe PPSUB STACK"; 200 $command .= " -recipe PPSTACK $recipe_ppStack"; 201 $command .= " -recipe PPSUB $recipe_ppSub"; 202 $command .= " -recipe PSPHOT $recipe_psphot"; 191 203 $command .= " -recipe PPSTATS WARPSTATS" if $do_stats;; 192 204 $command .= " -F PSPHOT.PSF.SAVE PSPHOT.PSF.SKY.SAVE";
Note:
See TracChangeset
for help on using the changeset viewer.
