IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Oct 27, 2008, 4:44:49 PM (18 years ago)
Author:
Paul Price
Message:

Can't get recipe until camera is defined.

File:
1 edited

Legend:

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

    r20369 r20428  
    6161    warn("Can't find required tools.");
    6262    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);
    7163}
    7264
     
    149141$ipprc->define_camera($camera);
    150142
     143# Recipes to use based on reduction class
     144$reduction = 'DEFAULT' unless defined $reduction;
     145my $recipe_ppSub = $ipprc->reduction($reduction, 'DIFF_PPSUB'); # Recipe to use for ppSub
     146my $recipe_psphot  = $ipprc->reduction($reduction, 'DIFF_PSPHOT'); # Recipe to use for psphot
     147unless ($recipe_ppSub and $recipe_psphot) {
     148    &my_die("Couldn't find selected reduction for DIFF_PPSUB and DIFF_PSPHOT: $reduction\n", $diff_id, $PS_EXIT_CONFIG_ERROR);
     149}
     150
    151151# print "templateMask: $templateMask\n";
    152152# print "templatePath: $templatePath\n";
Note: See TracChangeset for help on using the changeset viewer.