IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Changeset 38943 for trunk/ippScripts


Ignore:
Timestamp:
Oct 22, 2015, 2:23:44 PM (11 years ago)
Author:
watersc1
Message:

Final version of full force summary addstar changes. Typos fixed, sql fixed, addstar_run.pl now explicitly requires a dbname entry, task updated with revert code.

File:
1 edited

Legend:

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

    r38937 r38943  
    7070pod2usage( -msg => "Unknown option: @ARGV", -exitval => 2 ) if @ARGV;
    7171pod2usage(
    72           -msg => "Required options: --add_id --camera --outroot --dvodb --stageroot --stage",
     72          -msg => "Required options: --add_id --camera --outroot --dvodb --stageroot --stage --dbname",
    7373          -exitval => 3,
    7474          ) unless
     
    7878    defined $stageroot and
    7979    defined $dvodb and
     80    defined $dbname and
    8081    defined $camera;
    8182if ($stage =~ /cam/ && !defined $stage_id) {
     
    309310   
    310311    unless ($no_op) {
    311             print $dvodbReal;
     312            print "$dvodbReal\n";
    312313            ## addstar can either save the full set of detections, or just
    313314            ## the image metadata, in the dvodb.  this is set in the
     
    338339
    339340            if ($stage ne 'fullforce_summary') {
     341#               print "IN ADDSTAR VERSION\n";
    340342                # require a defined output dvo database to run addstar (ie, refuse to use the .ptolemyrc default)
    341343                $command  = "$addstar -update"; # XXX optionally set -update?
     
    360362            }
    361363            else { # Full force summary case
     364#               print "IN LOADGALPHOT VERSION\n";
    362365                # We need to know the filter to set up the photcode, as the summaries do not include that in the header.
    363366                # We /could/ set up the addtool stuff to pass that in to the script when needed, but that would require adding
     
    368371                {
    369372                    my $ff_command = "$fftool -dbname ${dbname} -summary -ff_id ${stage_id}";
     373                    print "$ff_command\n";
    370374                    my ( $success, $error_code, $full_buf, $stdout_buf, $stderr_buf ) =
    371                         run(command => $command, verbose => $verbose);
     375                        run(command => $ff_command, verbose => $verbose);
    372376                    unless ($success) {
    373377                        $error_code = (($error_code >> 8) or $PS_EXIT_PROG_ERROR);
Note: See TracChangeset for help on using the changeset viewer.