IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Changeset 19466


Ignore:
Timestamp:
Sep 10, 2008, 11:30:04 AM (18 years ago)
Author:
Paul Price
Message:

Command-line arguments got moved around.

File:
1 edited

Legend:

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

    r19375 r19466  
    175175        $chipObjectsExist = 1;
    176176    } else {
    177         if ($verbose) { print "skipping $chipObjects (not found)\n"; }
    178         next;
     177        if ($verbose) { print "skipping $chipObjects (not found)\n"; }
     178        next;
    179179    }
    180180
     
    278278        if (defined $dvodbReal) {
    279279
    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 -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) 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');
     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');
    296296
    297297            # XXX this construct requires the user to have a valid .ptolemyrc
     
    303303            my $command;
    304304            $command  = "$addstar -D CAMERA $camdir -update";
    305             $command .= " -image" if $imagesOnly;
     305            $command .= " -image" if $imagesOnly;
    306306            $command .= " -D CATDIR $dvodbReal";
    307307
Note: See TracChangeset for help on using the changeset viewer.