Changeset 19466
- Timestamp:
- Sep 10, 2008, 11:30:04 AM (18 years ago)
- File:
-
- 1 edited
-
trunk/ippScripts/scripts/camera_exp.pl (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/ippScripts/scripts/camera_exp.pl
r19375 r19466 175 175 $chipObjectsExist = 1; 176 176 } else { 177 if ($verbose) { print "skipping $chipObjects (not found)\n"; }178 next;177 if ($verbose) { print "skipping $chipObjects (not found)\n"; } 178 next; 179 179 } 180 180 … … 278 278 if (defined $dvodbReal) { 279 279 280 ## XXX the camera analysis can either save the full set of281 ## detections, or just the image metadata, in the dvodb282 283 ## get the addstar recipe for this camera and CAMERA reduction284 $command = "$ppConfigDump -camera $camera -dump-recipe ADDSTAR -recipe ADDSTAR $recipe_addstar-";285 ( $success, $error_code, $full_buf, $stdout_buf, $stderr_buf ) =286 run(command => $command, verbose => $verbose);287 unless ($success) {288 $error_code = (($error_code >> 8) or $PS_EXIT_PROG_ERROR);289 &my_die("Unable to perform ppConfigDump: $error_code", $cam_id, $PS_EXIT_SYS_ERROR);290 }291 my $recipeData = $mdcParser->parse(join "", @$stdout_buf) or292 &my_die("Unable to parse metadata config doc", $cam_id, $PS_EXIT_SYS_ERROR);293 294 ## allow the dvodb to save only images, or the full detection set295 my $imagesOnly = metadataLookupBool($recipeData, 'IMAGES.ONLY');280 ## XXX the camera analysis can either save the full set of 281 ## detections, or just the image metadata, in the dvodb 282 283 ## get the addstar recipe for this camera and CAMERA reduction 284 $command = "$ppConfigDump -camera $camera -recipe ADDSTAR $recipe_addstar -dump-recipe ADDSTAR -"; 285 ( $success, $error_code, $full_buf, $stdout_buf, $stderr_buf ) = 286 run(command => $command, verbose => $verbose); 287 unless ($success) { 288 $error_code = (($error_code >> 8) or $PS_EXIT_PROG_ERROR); 289 &my_die("Unable to perform ppConfigDump: $error_code", $cam_id, $PS_EXIT_SYS_ERROR); 290 } 291 my $recipeData = $mdcParser->parse(join "", @$stdout_buf) or 292 &my_die("Unable to parse metadata config doc", $cam_id, $PS_EXIT_SYS_ERROR); 293 294 ## allow the dvodb to save only images, or the full detection set 295 my $imagesOnly = metadataLookupBool($recipeData, 'IMAGES.ONLY'); 296 296 297 297 # XXX this construct requires the user to have a valid .ptolemyrc … … 303 303 my $command; 304 304 $command = "$addstar -D CAMERA $camdir -update"; 305 $command .= " -image" if $imagesOnly;305 $command .= " -image" if $imagesOnly; 306 306 $command .= " -D CATDIR $dvodbReal"; 307 307
Note:
See TracChangeset
for help on using the changeset viewer.
