IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Changeset 20428


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

Can't get recipe until camera is defined.

Location:
trunk/ippScripts/scripts
Files:
2 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";
  • trunk/ippScripts/scripts/stack_skycell.pl

    r20369 r20428  
    7777}
    7878
    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);
    86 }
    87 
    8879# Get list of components for stacking
    8980my $mdcParser = PS::IPP::Metadata::Config->new; # Parser for metadata config files
     
    139130&my_die("Can't find camera", $stack_id, $PS_EXIT_SYS_ERROR) unless defined $camera;
    140131$ipprc->define_camera($camera);
     132
     133# Recipes to use based on reduction class
     134$reduction = 'DEFAULT' unless defined $reduction;
     135my $recipe_ppStack = $ipprc->reduction($reduction, 'STACK_PPSTACK'); # Recipe to use for ppStack
     136my $recipe_ppSub = $ipprc->reduction($reduction, 'STACK_PPSUB'); # Recipe to use for ppSub
     137my $recipe_psphot  = $ipprc->reduction($reduction, 'STACK_PSPHOT'); # Recipe to use for psphot
     138unless ($recipe_ppStack and $recipe_ppSub and $recipe_psphot) {
     139    &my_die("Couldn't find selected reduction for STACK_PPSTACK, STACK_PPSUB and STACK_PSPHOT: $reduction\n", $stack_id, $PS_EXIT_CONFIG_ERROR);
     140}
    141141
    142142# Generate MDC file with the inputs
Note: See TracChangeset for help on using the changeset viewer.