- Timestamp:
- Oct 2, 2009, 5:10:19 PM (17 years ago)
- Location:
- branches/eam_branches/20090820
- Files:
-
- 2 edited
-
. (modified) (1 prop)
-
ippScripts/scripts/camera_exp.pl (modified) (4 diffs)
Legend:
- Unmodified
- Added
- Removed
-
branches/eam_branches/20090820
- Property svn:mergeinfo changed
-
branches/eam_branches/20090820/ippScripts/scripts/camera_exp.pl
r24465 r25766 93 93 &my_die("Unrecognised JPEG recipe", $cam_id, $PS_EXIT_CONFIG_ERROR) unless defined $recipe2; 94 94 95 my $recipe_addstar = $ipprc->reduction($reduction, 'ADDSTAR'); # Recipe to use96 &my_die("Unrecognised ADDSTAR recipe", $cam_id, $PS_EXIT_CONFIG_ERROR) unless defined $recipe_addstar;95 #my $recipe_addstar = $ipprc->reduction($reduction, 'ADDSTAR'); # Recipe to use 96 #&my_die("Unrecognised ADDSTAR recipe", $cam_id, $PS_EXIT_CONFIG_ERROR) unless defined $recipe_addstar; 97 97 98 98 my $recipe_psastro = $ipprc->reduction($reduction, 'PSASTRO'); # Recipe to use … … 205 205 } 206 206 207 my $dtime_addstar = 0;207 #my $dtime_addstar = 0; 208 208 209 209 unless ($no_op) { … … 297 297 298 298 # run addstar on the output fpaObjects (if a DVO database is defined) 299 if (defined $dvodbReal and ($run_state eq 'new')) {300 301 ## XXX the camera analysis can either save the full set of302 ## detections, or just the image metadata, in the dvodb303 304 ## get the addstar recipe for this camera and CAMERA reduction305 $command = "$ppConfigDump -camera $camera -recipe ADDSTAR $recipe_addstar -dump-recipe ADDSTAR -";306 ( $success, $error_code, $full_buf, $stdout_buf, $stderr_buf ) =307 run(command => $command, verbose => $verbose);308 unless ($success) {309 $error_code = (($error_code >> 8) or $PS_EXIT_PROG_ERROR);310 &my_die("Unable to perform ppConfigDump: $error_code", $cam_id, $PS_EXIT_SYS_ERROR);311 }312 my $recipeData = $mdcParser->parse(join "", @$stdout_buf) or313 &my_die("Unable to parse metadata config doc", $cam_id, $PS_EXIT_SYS_ERROR);314 315 ## allow the dvodb to save only images, or the full detection set316 my $imagesOnly = metadataLookupBool($recipeData, 'IMAGES.ONLY');317 318 # XXX this construct requires the user to have a valid .ptolemyrc319 # XXX which in turn points at ippconfig/dvo.site320 # require a defined output dvo database to run addstar (ie, refuse to use the .ptolemyrc default)321 # XXX this needs to be converted to addstar_client...322 323 my $camdir = $ipprc->dvo_cameradir(); # Camera directory for addstar324 my $command;325 $command = "$addstar -D CAMERA $camdir -update";326 $command .= " -image" if $imagesOnly;327 $command .= " -D CATDIR $dvodbReal";328 329 my $realFile = $ipprc->file_resolve($fpaObjects);330 $command .= " $realFile";331 332 my $mjd_addstar_start = DateTime->now->mjd; # MJD of starting script333 334 my ( $success, $error_code, $full_buf, $stdout_buf, $stderr_buf ) =335 run(command => $command, verbose => $verbose);336 unless ($success) {337 $error_code = (($error_code >> 8) or $PS_EXIT_PROG_ERROR);338 &my_die("Unable to perform addstar: $error_code", $cam_id, $error_code);339 }340 $dtime_addstar = 86400.0*(DateTime->now->mjd - $mjd_addstar_start); # MJD of starting script341 }299 # if (defined $dvodbReal and ($run_state eq 'new')) { 300 301 # ## XXX the camera analysis can either save the full set of 302 # ## detections, or just the image metadata, in the dvodb 303 304 # ## get the addstar recipe for this camera and CAMERA reduction 305 # $command = "$ppConfigDump -camera $camera -recipe ADDSTAR $recipe_addstar -dump-recipe ADDSTAR -"; 306 # ( $success, $error_code, $full_buf, $stdout_buf, $stderr_buf ) = 307 # run(command => $command, verbose => $verbose); 308 # unless ($success) { 309 # $error_code = (($error_code >> 8) or $PS_EXIT_PROG_ERROR); 310 # &my_die("Unable to perform ppConfigDump: $error_code", $cam_id, $PS_EXIT_SYS_ERROR); 311 # } 312 # my $recipeData = $mdcParser->parse(join "", @$stdout_buf) or 313 # &my_die("Unable to parse metadata config doc", $cam_id, $PS_EXIT_SYS_ERROR); 314 315 # ## allow the dvodb to save only images, or the full detection set 316 # my $imagesOnly = metadataLookupBool($recipeData, 'IMAGES.ONLY'); 317 318 # # XXX this construct requires the user to have a valid .ptolemyrc 319 # # XXX which in turn points at ippconfig/dvo.site 320 # # require a defined output dvo database to run addstar (ie, refuse to use the .ptolemyrc default) 321 # # XXX this needs to be converted to addstar_client... 322 323 # my $camdir = $ipprc->dvo_cameradir(); # Camera directory for addstar 324 # my $command; 325 # $command = "$addstar -D CAMERA $camdir -update"; 326 # $command .= " -image" if $imagesOnly; 327 # $command .= " -D CATDIR $dvodbReal"; 328 329 # my $realFile = $ipprc->file_resolve($fpaObjects); 330 # $command .= " $realFile"; 331 332 # my $mjd_addstar_start = DateTime->now->mjd; # MJD of starting script 333 334 # my ( $success, $error_code, $full_buf, $stdout_buf, $stderr_buf ) = 335 # run(command => $command, verbose => $verbose); 336 # unless ($success) { 337 # $error_code = (($error_code >> 8) or $PS_EXIT_PROG_ERROR); 338 # &my_die("Unable to perform addstar: $error_code", $cam_id, $error_code); 339 # } 340 # $dtime_addstar = 86400.0*(DateTime->now->mjd - $mjd_addstar_start); # MJD of starting script 341 # } 342 342 } 343 343 } … … 353 353 $fpaCommand .= " -hostname $host" if defined $host; 354 354 $fpaCommand .= " -dtime_script $dtime_script"; 355 $fpaCommand .= " -dtime_addstar $dtime_addstar";355 # $fpaCommand .= " -dtime_addstar $dtime_addstar"; 356 356 } else { 357 357 $fpaCommand .= " -updaterun -state full";
Note:
See TracChangeset
for help on using the changeset viewer.
