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/diff_skycell.pl

    r20338 r20369  
    2727use Pod::Usage qw( pod2usage );
    2828
    29 my ($diff_id, $dbname, $threads, $outroot, $verbose, $no_update, $no_op, $redirect);
     29my ($diff_id, $dbname, $threads, $outroot, $reduction, $verbose, $no_update, $no_op, $redirect);
    3030GetOptions(
    3131    'diff_id|d=s'       => \$diff_id, # Diff identifier
     
    3333    'threads=s'         => \$threads,   # Number of threads to use
    3434    'outroot=s'         => \$outroot, # Output root name
     35    'reduction=s'       => \$reduction, # Reduction class
    3536    'verbose'           => \$verbose,   # Print to stdout
    3637    'no-update'         => \$no_update, # Don't update the database?
     
    6061    warn("Can't find required tools.");
    6162    exit($PS_EXIT_CONFIG_ERROR);
     63}
     64
     65# Recipes to use based on reduction class
     66$reduction = 'DEFAULT' unless defined $reduction;
     67my $recipe_ppSub = $ipprc->reduction($reduction, 'DIFF_PPSUB'); # Recipe to use for ppSub
     68my $recipe_psphot  = $ipprc->reduction($reduction, 'DIFF_PSPHOT'); # Recipe to use for psphot
     69unless ($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);
    6271}
    6372
     
    192201    $command .= " -stats $outputStats";
    193202    $command .= " -threads $threads" if defined $threads;
     203    $command .= " -recipe PPSUB $recipe_ppSub";
     204    $command .= " -recipe PSPHOT $recipe_psphot";
    194205    $command .= " -recipe PPSTATS WARPSTATS";
    195206    $command .= " -F PSPHOT.OUTPUT PSPHOT.OUT.CMF.MEF";
Note: See TracChangeset for help on using the changeset viewer.