IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Sep 8, 2009, 5:32:55 PM (17 years ago)
Author:
watersc1
Message:

Merge my branch back into the trunk. This includes:

ipp_cleanup.pl : and associated edits to allow cleanup to work
burntool : updated to newest version, ipp_apply_burntool.pl modified to use persist=t options
ppImageBurntoolMask.c : masks region burntool identifies
psastro : allow selection of wcs header format
addtool : splits addstar step off from the camera stage

Location:
trunk
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk

  • trunk/ippScripts/scripts/camera_exp.pl

    r24465 r25299  
    9393&my_die("Unrecognised JPEG recipe", $cam_id, $PS_EXIT_CONFIG_ERROR) unless defined $recipe2;
    9494
    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;
     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;
    9797
    9898my $recipe_psastro = $ipprc->reduction($reduction, 'PSASTRO'); # Recipe to use
     
    205205}
    206206
    207 my $dtime_addstar = 0;
     207#my $dtime_addstar = 0;
    208208
    209209unless ($no_op) {
     
    297297
    298298        # 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 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         }
     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#         }
    342342    }
    343343}
     
    353353    $fpaCommand .= " -hostname $host" if defined $host;
    354354    $fpaCommand .= " -dtime_script $dtime_script";
    355     $fpaCommand .= " -dtime_addstar $dtime_addstar";
     355#    $fpaCommand .= " -dtime_addstar $dtime_addstar";
    356356} else {
    357357    $fpaCommand .= " -updaterun -state full";
Note: See TracChangeset for help on using the changeset viewer.