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