IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Aug 31, 2010, 2:52:10 PM (16 years ago)
Author:
rhenders
Message:

Made camera an option; cleaner user message when forcing procesing for a particular exposure

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/ippToPsps/perl/ippToPsps_run.pl

    r28907 r29084  
    1717
    1818# globals
    19 my $camera = 'GPC1';
     19my $camera = undef;
    2020my $batchType = undef;
    2121my $dvoLocation = undef;
     
    3333# get user args
    3434GetOptions(
     35        'camera|c' => \$camera,
    3536        'output|o=s' => \$output,
    3637        'batch|b=s' => \$batchType,
     
    6364    print "* REQUIRED: need to provide a DVO Db        -d <pathToDVO>\n";
    6465}
     66if (!defined $verbose) {
     67    $camera = "GPC1";
     68    print "* OPTIONAL: select a camera                 -c                   (default = $camera)\n";
     69}
    6570if (!defined $singleExpId) {
    6671
     
    175180        if (!$initBatch && $ippToPspsDb->isExposureAlreadyProcessed($expId)) {
    176181
    177             if ($force) {print "* Forcing....\n";}
    178             else {next};
     182            if ($force) {print "* Already processed '$expId', but forcing....\n";}
     183            else {
     184           
     185                print "* Exposure ID '$expId' has already been processed\n";
     186                next
     187            };
    179188        }
    180189
Note: See TracChangeset for help on using the changeset viewer.