IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Changeset 35724


Ignore:
Timestamp:
Jun 28, 2013, 3:35:24 PM (13 years ago)
Author:
bills
Message:

When processing updates pass the config dump file to ppConfigDump so
that the correct recipe set is checked.
If we apply burntool using the burntool program set the recipe value
PPIMAGE:APPLY.BURNTOOL to false.

File:
1 edited

Legend:

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

    r35686 r35724  
    200200
    201201    ## get the ppImage recipe for this camera and CHIP reduction
    202     $command = "$ppConfigDump -camera $camera -dump-recipe PPIMAGE -recipe PPIMAGE $recipe_ppImage -";
     202    $command = "$ppConfigDump -dump-recipe PPIMAGE -recipe PPIMAGE $recipe_ppImage -";
     203    if ($dump_config) {
     204        # use this camera's recipes
     205        $command .= " -camera $camera";
     206    } else {
     207        # get recipes as set in config dump file
     208        $command .= " -ipprc $configuration";
     209    }
    203210    my ( $success, $error_code, $full_buf, $stdout_buf, $stderr_buf ) =
    204211        run(command => $command, verbose => 0);
     
    228235    my $useDeburnedImage = metadataLookupBool($recipeData, 'USE.DEBURNED.IMAGE');
    229236    my $ppImageApplyBurntool = metadataLookupBool($recipeData, 'APPLY.BURNTOOL');
    230     my $burntoolArgument;
     237    my $burntoolArguments;
    231238
    232239    if ($useDeburnedImage) {
     
    330337
    331338        # if recipe option PPIMAGE:APPLY.BURNTOOL is set and the burntool information is stored in
    332         # an external table (usual case), check the existence of that table file and set $burntoolArgument.
     339        # an external table (usual case), check the existence of that table file and set $burntoolArguments.
    333340        # If burntool state does not match, say if the burntool data is stored in a fits extension in
    334341        # the rawImfile, use the burntool program.
     
    351358                    $PS_EXIT_SYS_ERROR);
    352359            }
    353             $burntoolArgument = " -burntool $burntoolTable_uri";
     360            $burntoolArguments = " -burntool $burntoolTable_uri";
    354361        } else {
    355362            ## use external burntool program
     
    433440            }
    434441
     442            if ($dump_config) {
     443                # tell ppImage to not apply burntool since we have done it here
     444                $burntoolArguments = ' -Db PPIMAGE:APPLY.BURNTOOL F';
     445            }
    435446    #       print STDERR "$uri $uriReal $tempName $burntoolTable_uri $burntoolTable_uriReal $burntool_cmd $save_temps\n";
    436447    #       exit(100);
     448
    437449        }
    438450    }
     
    468480        $command .= " -R PPIMAGE.CHIP FITS.TYPE NONE";
    469481    }
    470     $command .= $burntoolArgument if $burntoolArgument;
     482    $command .= $burntoolArguments if $burntoolArguments;
    471483    $command .= " -threads $threads" if defined $threads;
    472484    $command .= " -image_id $chip_imfile_id" if defined $chip_imfile_id;
Note: See TracChangeset for help on using the changeset viewer.