IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Changeset 28851


Ignore:
Timestamp:
Aug 5, 2010, 1:08:04 PM (16 years ago)
Author:
rhenders
Message:

Improvements to arguments

File:
1 edited

Legend:

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

    r28850 r28851  
    66use PS::IPP::Config 1.01 qw( :standard );
    77use Getopt::Long qw( GetOptions :config auto_help auto_version gnu_getopt );
    8 use Pod::Usage qw( pod2usage );
    98use IPC::Cmd 0.36 qw( can_run run );
    109use File::Temp qw(tempfile);
     
    1817my $camera = 'GPC1';
    1918my $batchType = undef;
    20 my $dvoPath = undef;
     19my $dvoLocation = undef;
    2120my $dvoDb = undef;
    2221my $fullDvoPath = undef;
    2322my $verbose = undef;
    2423my $save_temps = undef;
    25 my $no_update = undef;
    2624my $output = undef;
    2725my $singleExpId = undef;
     
    3533        'output|o=s' => \$output,
    3634        'batch|b=s' => \$batchType,
    37         'dvopath=s' => \$dvoPath,
     35        'dvolocation|l=s' => \$dvoLocation,
    3836        'dvodb|d=s' => \$dvoDb,
    3937        'expid|e=s' => \$singleExpId,
     
    4139        'verbose|v' => \$verbose,
    4240        'save_temps|t' => \$save_temps,
    43         'no-update|u' => \$no_update,
    4441        'force|f' => \$force,
    4542        'tarnzip|z' => \$dontTarNZip,
     
    6562    print "* REQUIRED: need to provide a DVO Db name   -d <name>\n";
    6663}
    67 if (!defined $dvoPath) {
    68     $dvoPath="/data/ipp037.0/gpc1/catdirs";
    69     print "* OPTIONAL: path to DVO Db                  -dvopath <path>      default = '$dvoPath'\n";
     64if (!defined $dvoLocation) {
     65    $dvoLocation="/data/ipp037.0/gpc1/catdirs";
     66    print "* OPTIONAL: location of DVO Db              -l <location>        default = '$dvoLocation'\n";
    7067}
    7168if (!defined $singleExpId) {
    7269
    73     print "* OPTIONAL: an single exposure ID           -e <expID>           default = none\n";
     70    print "* OPTIONAL: a single exposure ID            -e <expID>           default = none\n";
    7471}
    7572if (!defined $datastoreProduct) {
     
    8582    print "* OPTIONAL: keep temp files                 -t                   default = $save_temps\n";
    8683}
    87 if (!defined $no_update) {
    88     $no_update = 0;
    89     print "* OPTIONAL: don't update database           -u                   default = $no_update\n";
    90 }
    9184if (!defined $force) {
    9285    $force = 0;
     
    10194if ($quit) { exit; }
    10295
    103 $fullDvoPath = $dvoPath . "/" . $dvoDb;
     96$fullDvoPath = $dvoLocation . "/" . $dvoDb;
    10497
    10598# determine PSPS batch 'type'
Note: See TracChangeset for help on using the changeset viewer.