IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
May 2, 2011, 2:58:39 PM (15 years ago)
Author:
bills
Message:

Get the value for STACK.TYPE from recipe an dpass it it ppStack using -stack-type parameter

File:
1 edited

Legend:

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

    r31250 r31422  
    181181my $recipe_psphot  = $ipprc->reduction($reduction, 'STACK_PSPHOT'); # Recipe to use for psphot
    182182my $recipe_ppstats = 'STACKSTATS';
    183 if ($run_state eq 'update') {
    184     $recipe_ppstats = 'WARPSTATS';
     183if ($
     184run_state eq 'update') {
     185     $recipe_ppstats = 'WARPSTATS';
    185186}
    186187unless ($recipe_ppStack and $recipe_ppSub and $recipe_psphot) {
     
    208209    &my_die("Unable to not compress and logflux compress simultaneously. Check config.",$stack_id, $PS_EXIT_CONFIG_ERROR);
    209210}
     211my $stack_type = metadataLookupStr($recipe, 'STACK.TYPE');
     212&my_die("STACK.TYPE not found in recipe. Check config.",$stack_id, $PS_EXIT_CONFIG_ERROR) unless $stack_type;
    210213
    211214# Generate MDC file with the inputs
     
    281284    $command .= " -recipe PSPHOT $recipe_psphot";
    282285    $command .= " -recipe PPSTATS $recipe_ppstats" if $do_stats;;
     286    $command .= " -stack-type $stack_type";
    283287    $command .= " -F PSPHOT.PSF.SAVE PSPHOT.PSF.SKY.SAVE";
    284288    $command .= " -F PSPHOT.OUTPUT PSPHOT.OUT.CMF.MEF";
Note: See TracChangeset for help on using the changeset viewer.