Changeset 28851
- Timestamp:
- Aug 5, 2010, 1:08:04 PM (16 years ago)
- File:
-
- 1 edited
-
trunk/ippToPsps/perl/ippToPsps_run.pl (modified) (7 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/ippToPsps/perl/ippToPsps_run.pl
r28850 r28851 6 6 use PS::IPP::Config 1.01 qw( :standard ); 7 7 use Getopt::Long qw( GetOptions :config auto_help auto_version gnu_getopt ); 8 use Pod::Usage qw( pod2usage );9 8 use IPC::Cmd 0.36 qw( can_run run ); 10 9 use File::Temp qw(tempfile); … … 18 17 my $camera = 'GPC1'; 19 18 my $batchType = undef; 20 my $dvo Path= undef;19 my $dvoLocation = undef; 21 20 my $dvoDb = undef; 22 21 my $fullDvoPath = undef; 23 22 my $verbose = undef; 24 23 my $save_temps = undef; 25 my $no_update = undef;26 24 my $output = undef; 27 25 my $singleExpId = undef; … … 35 33 'output|o=s' => \$output, 36 34 'batch|b=s' => \$batchType, 37 'dvo path=s' => \$dvoPath,35 'dvolocation|l=s' => \$dvoLocation, 38 36 'dvodb|d=s' => \$dvoDb, 39 37 'expid|e=s' => \$singleExpId, … … 41 39 'verbose|v' => \$verbose, 42 40 'save_temps|t' => \$save_temps, 43 'no-update|u' => \$no_update,44 41 'force|f' => \$force, 45 42 'tarnzip|z' => \$dontTarNZip, … … 65 62 print "* REQUIRED: need to provide a DVO Db name -d <name>\n"; 66 63 } 67 if (!defined $dvo Path) {68 $dvo Path="/data/ipp037.0/gpc1/catdirs";69 print "* OPTIONAL: path to DVO Db -dvopath <path> default = '$dvoPath'\n";64 if (!defined $dvoLocation) { 65 $dvoLocation="/data/ipp037.0/gpc1/catdirs"; 66 print "* OPTIONAL: location of DVO Db -l <location> default = '$dvoLocation'\n"; 70 67 } 71 68 if (!defined $singleExpId) { 72 69 73 print "* OPTIONAL: a n single exposure ID-e <expID> default = none\n";70 print "* OPTIONAL: a single exposure ID -e <expID> default = none\n"; 74 71 } 75 72 if (!defined $datastoreProduct) { … … 85 82 print "* OPTIONAL: keep temp files -t default = $save_temps\n"; 86 83 } 87 if (!defined $no_update) {88 $no_update = 0;89 print "* OPTIONAL: don't update database -u default = $no_update\n";90 }91 84 if (!defined $force) { 92 85 $force = 0; … … 101 94 if ($quit) { exit; } 102 95 103 $fullDvoPath = $dvo Path. "/" . $dvoDb;96 $fullDvoPath = $dvoLocation . "/" . $dvoDb; 104 97 105 98 # determine PSPS batch 'type'
Note:
See TracChangeset
for help on using the changeset viewer.
