IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Changeset 28842


Ignore:
Timestamp:
Aug 4, 2010, 4:30:32 PM (16 years ago)
Author:
rhenders
Message:

Neatened instructions; changed call to function for single exposure

File:
1 edited

Legend:

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

    r28755 r28842  
    4949print "* \n";
    5050if (@ARGV) {
    51     print "* UNKNKOWN: option:                         @ARGV\n"; $quit=1;}
     51    print "* UNKNKOWN: option                          @ARGV\n"; $quit=1;}
    5252if (!defined $output) {
    53     print "* REQUIRED: need to provide an output path: -o <path>\n"; $quit=1;}
     53    print "* REQUIRED: need to provide an output path  -o <path>\n"; $quit=1;}
    5454if (!defined $batchType) {
    55     print "* REQUIRED: need to define a batch type:    -b <init|det|diff|stack>\n"; $quit=1;}
     55    print "* REQUIRED: need to define a batch type     -b <init|det|diff|stack>\n"; $quit=1;}
    5656if (!defined $dvodb) {
    57     print "* REQUIRED: need to provide a DVO Db path:  -d <path>\n"; $quit=1;}
     57    print "* REQUIRED: need to provide a DVO Db path   -d <path>\n"; $quit=1;}
    5858if (!defined $survey and !defined $singleExpId) {
    59     print "* REQUIRED: need to provide a survey type:  -s <ThreePi|STS|SAS|M31|MD01|MD02|etc> ***OR***\n";
     59    print "* REQUIRED: need to provide a survey type   -s <ThreePi|STS|SAS|M31|MD01|MD02|etc> ***OR***\n";
    6060    print "*           an exposure ID                  -e <expID>\n"; $quit=1;}
    6161if (!defined $datastoreProduct) {
    62     print "* OPTIONAL: datastore product:              -p <product>\n";}
     62    print "* OPTIONAL: datastore product               -p <product>\n";}
    6363if (!defined $verbose) {
    64     print "* OPTIONAL: run in verbose mode:            -v\n"; $verbose = 0;}
     64    print "* OPTIONAL: run in verbose mode             -v\n"; $verbose = 0;}
    6565if (!defined $save_temps) {
    66     print "* OPTIONAL: keep temp files:                -t\n"; $save_temps = 0;}
     66    print "* OPTIONAL: keep temp files                 -t\n"; $save_temps = 0;}
    6767if (!defined $no_update) {
    68     print "* OPTIONAL: don't update database:          -u\n"; $no_update = 0;}
     68    print "* OPTIONAL: don't update database           -u\n"; $no_update = 0;}
    6969if (!defined $force) {
    70     print "* OPTIONAL: force if already processed :    -f\n"; $force = 0;}
     70    print "* OPTIONAL: force if already processed      -f\n"; $force = 0;}
    7171if (!defined $dontTarNZip) {
    72     print "* OPTIONAL: don't tar and zip output :      -z\n"; $dontTarNZip = 0;}
     72    print "* OPTIONAL: don't tar and zip output        -z\n"; $dontTarNZip = 0;}
    7373    print "*\n*******************************************************************************\n";
    7474
     
    122122        @{$rows} = (\@row);
    123123    }
    124     elsif ($singleExpId) { $rows = $gpc1Db->getExposureListFromExpId($singleExpId); }
    125     else { $rows = $gpc1Db->getExposureListFromSurvey($survey); }
     124    elsif ($singleExpId) {$rows = $gpc1Db->getSingleExposureInfo($singleExpId);}
     125    else {$rows = $gpc1Db->getExposureListFromSurvey($survey);}
    126126
    127127# TODO check if there are no exposures and give a warning
Note: See TracChangeset for help on using the changeset viewer.