Changeset 35724
- Timestamp:
- Jun 28, 2013, 3:35:24 PM (13 years ago)
- File:
-
- 1 edited
-
trunk/ippScripts/scripts/chip_imfile.pl (modified) (6 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/ippScripts/scripts/chip_imfile.pl
r35686 r35724 200 200 201 201 ## 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 } 203 210 my ( $success, $error_code, $full_buf, $stdout_buf, $stderr_buf ) = 204 211 run(command => $command, verbose => 0); … … 228 235 my $useDeburnedImage = metadataLookupBool($recipeData, 'USE.DEBURNED.IMAGE'); 229 236 my $ppImageApplyBurntool = metadataLookupBool($recipeData, 'APPLY.BURNTOOL'); 230 my $burntoolArgument ;237 my $burntoolArguments; 231 238 232 239 if ($useDeburnedImage) { … … 330 337 331 338 # 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. 333 340 # If burntool state does not match, say if the burntool data is stored in a fits extension in 334 341 # the rawImfile, use the burntool program. … … 351 358 $PS_EXIT_SYS_ERROR); 352 359 } 353 $burntoolArgument = " -burntool $burntoolTable_uri";360 $burntoolArguments = " -burntool $burntoolTable_uri"; 354 361 } else { 355 362 ## use external burntool program … … 433 440 } 434 441 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 } 435 446 # print STDERR "$uri $uriReal $tempName $burntoolTable_uri $burntoolTable_uriReal $burntool_cmd $save_temps\n"; 436 447 # exit(100); 448 437 449 } 438 450 } … … 468 480 $command .= " -R PPIMAGE.CHIP FITS.TYPE NONE"; 469 481 } 470 $command .= $burntoolArgument if $burntoolArgument;482 $command .= $burntoolArguments if $burntoolArguments; 471 483 $command .= " -threads $threads" if defined $threads; 472 484 $command .= " -image_id $chip_imfile_id" if defined $chip_imfile_id;
Note:
See TracChangeset
for help on using the changeset viewer.
