IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Sep 24, 2009, 1:22:56 PM (17 years ago)
Author:
Paul Price
Message:

Can't choose a recipe until the camera has been defined.

File:
1 edited

Legend:

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

    r25519 r25541  
    112112print "I've loaded my inputs: $stack_id\n";
    113113
    114 # Recipes to use based on reduction class
    115 $reduction = 'DEFAULT' unless defined $reduction;
    116 my $recipe_ppStack = $ipprc->reduction($reduction, 'STACK_PPSTACK'); # Recipe to use for ppStack
    117 my $recipe_ppSub = $ipprc->reduction($reduction, 'STACK_PPSUB'); # Recipe to use for ppSub
    118 my $recipe_psphot  = $ipprc->reduction($reduction, 'STACK_PSPHOT'); # Recipe to use for psphot
    119 unless ($recipe_ppStack and $recipe_ppSub and $recipe_psphot) {
    120     &my_die("Couldn't find selected reduction for STACK_PPSTACK, STACK_PPSUB and STACK_PSPHOT: $reduction\n", $stack_id, $PS_EXIT_CONFIG_ERROR);
    121 }
    122 
    123114# Parse the list of input files to get the tesselation, skycell identifiers and camera
    124115my $skycell_id;                 # Skycell identifier
     
    149140&my_die("Can't find camera", $stack_id, $PS_EXIT_SYS_ERROR) unless defined $camera;
    150141$ipprc->define_camera($camera);
     142
     143# Recipes to use based on reduction class
     144$reduction = 'DEFAULT' unless defined $reduction;
     145my $recipe_ppStack = $ipprc->reduction($reduction, 'STACK_PPSTACK'); # Recipe to use for ppStack
     146my $recipe_ppSub = $ipprc->reduction($reduction, 'STACK_PPSUB'); # Recipe to use for ppSub
     147my $recipe_psphot  = $ipprc->reduction($reduction, 'STACK_PSPHOT'); # Recipe to use for psphot
     148unless ($recipe_ppStack and $recipe_ppSub and $recipe_psphot) {
     149    &my_die("Couldn't find selected reduction for STACK_PPSTACK, STACK_PPSUB and STACK_PSPHOT: $reduction\n", $stack_id, $PS_EXIT_CONFIG_ERROR);
     150}
    151151
    152152my $recipe;
Note: See TracChangeset for help on using the changeset viewer.