IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Oct 24, 2008, 2:56:13 PM (18 years ago)
Author:
Paul Price
Message:

Adding stage-dependent recipes; this is most important for psphot.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/ippScripts/scripts/stack_skycell.pl

    r20316 r20369  
    3030use Pod::Usage qw( pod2usage );
    3131
    32 my ($stack_id, $dbname, $outroot, $debug, $run_state, $threads, $verbose, $no_update, $no_op, $redirect, $save_temps);
     32my ($stack_id, $dbname, $outroot, $debug, $run_state, $threads, $reduction, $verbose, $no_update, $no_op, $redirect, $save_temps);
    3333GetOptions(
    3434    'stack_id|d=s'      => \$stack_id, # Stack identifier
     
    3838    'debug'             => \$debug,   # Print to stdout
    3939    'threads=s'         => \$threads,   # Number of threads to use for ppStack
     40    'reduction=s'       => \$reduction, # Reduction class
    4041    'verbose'           => \$verbose,   # Print to stdout
    4142    'no-update'         => \$no_update, # Don't update the database?
     
    7475    warn("Can't find required tools.");
    7576    exit($PS_EXIT_CONFIG_ERROR);
     77}
     78
     79# Recipes to use based on reduction class
     80$reduction = 'DEFAULT' unless defined $reduction;
     81my $recipe_ppStack = $ipprc->reduction($reduction, 'STACK_PPSTACK'); # Recipe to use for ppStack
     82my $recipe_ppSub = $ipprc->reduction($reduction, 'STACK_PPSUB'); # Recipe to use for ppSub
     83my $recipe_psphot  = $ipprc->reduction($reduction, 'STACK_PSPHOT'); # Recipe to use for psphot
     84unless ($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);
    7686}
    7787
     
    188198    my $command = "$ppStack $listName $outroot";
    189199    $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";
    191203    $command .= " -recipe PPSTATS WARPSTATS" if $do_stats;;
    192204    $command .= " -F PSPHOT.PSF.SAVE PSPHOT.PSF.SKY.SAVE";
Note: See TracChangeset for help on using the changeset viewer.