Changeset 20428
- Timestamp:
- Oct 27, 2008, 4:44:49 PM (18 years ago)
- Location:
- trunk/ippScripts/scripts
- Files:
-
- 2 edited
-
diff_skycell.pl (modified) (2 diffs)
-
stack_skycell.pl (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/ippScripts/scripts/diff_skycell.pl
r20369 r20428 61 61 warn("Can't find required tools."); 62 62 exit($PS_EXIT_CONFIG_ERROR); 63 }64 65 # Recipes to use based on reduction class66 $reduction = 'DEFAULT' unless defined $reduction;67 my $recipe_ppSub = $ipprc->reduction($reduction, 'DIFF_PPSUB'); # Recipe to use for ppSub68 my $recipe_psphot = $ipprc->reduction($reduction, 'DIFF_PSPHOT'); # Recipe to use for psphot69 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);71 63 } 72 64 … … 149 141 $ipprc->define_camera($camera); 150 142 143 # Recipes to use based on reduction class 144 $reduction = 'DEFAULT' unless defined $reduction; 145 my $recipe_ppSub = $ipprc->reduction($reduction, 'DIFF_PPSUB'); # Recipe to use for ppSub 146 my $recipe_psphot = $ipprc->reduction($reduction, 'DIFF_PSPHOT'); # Recipe to use for psphot 147 unless ($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 151 151 # print "templateMask: $templateMask\n"; 152 152 # print "templatePath: $templatePath\n"; -
trunk/ippScripts/scripts/stack_skycell.pl
r20369 r20428 77 77 } 78 78 79 # Recipes to use based on reduction class80 $reduction = 'DEFAULT' unless defined $reduction;81 my $recipe_ppStack = $ipprc->reduction($reduction, 'STACK_PPSTACK'); # Recipe to use for ppStack82 my $recipe_ppSub = $ipprc->reduction($reduction, 'STACK_PPSUB'); # Recipe to use for ppSub83 my $recipe_psphot = $ipprc->reduction($reduction, 'STACK_PSPHOT'); # Recipe to use for psphot84 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 88 79 # Get list of components for stacking 89 80 my $mdcParser = PS::IPP::Metadata::Config->new; # Parser for metadata config files … … 139 130 &my_die("Can't find camera", $stack_id, $PS_EXIT_SYS_ERROR) unless defined $camera; 140 131 $ipprc->define_camera($camera); 132 133 # Recipes to use based on reduction class 134 $reduction = 'DEFAULT' unless defined $reduction; 135 my $recipe_ppStack = $ipprc->reduction($reduction, 'STACK_PPSTACK'); # Recipe to use for ppStack 136 my $recipe_ppSub = $ipprc->reduction($reduction, 'STACK_PPSUB'); # Recipe to use for ppSub 137 my $recipe_psphot = $ipprc->reduction($reduction, 'STACK_PSPHOT'); # Recipe to use for psphot 138 unless ($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 } 141 141 142 142 # Generate MDC file with the inputs
Note:
See TracChangeset
for help on using the changeset viewer.
