IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Sep 22, 2010, 9:15:55 AM (16 years ago)
Author:
rhenders
Message:

Added ability to choose starting exp ID when generating list of exposures to process

File:
1 edited

Legend:

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

    r29188 r29193  
    2121my $output = undef;
    2222my $singleExpId = undef;
     23my $lastExpId = undef;
    2324my $datastoreProduct = undef;
    2425my $force = undef;
     
    3334        'dvolocation|l=s' => \$dvoPath,
    3435        'expid|e=s' => \$singleExpId,
     36        'lastexpid|x=s' => \$lastExpId,
    3537        'product|p=s' => \$datastoreProduct,
    3638        'verbose|v' => \$verbose,
     
    6668    $singleExpId = -1;
    6769    print "* OPTIONAL: a single exposure ID            -e <expID>           (default = none)\n";
     70}
     71if (!defined $lastExpId) {
     72    $lastExpId = 0;
     73    print "* OPTIONAL: process from last exp ID        -x <expID>           (default = $lastExpId)\n";
    6874}
    6975if (!defined $datastoreProduct) {
     
    107113else {
    108114
    109     if (!$gpc1Db->getExposureListFromDvoDb($dvoDb, \$exposures)) {exit;}
     115    if (!$gpc1Db->getExposureListFromDvoDb($dvoDb, \$exposures, $lastExpId)) {exit;}
    110116}
    111117
Note: See TracChangeset for help on using the changeset viewer.