Changeset 28852
- Timestamp:
- Aug 5, 2010, 2:10:35 PM (16 years ago)
- File:
-
- 1 edited
-
trunk/ippToPsps/perl/ippToPsps_run.pl (modified) (4 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/ippToPsps/perl/ippToPsps_run.pl
r28851 r28852 9 9 use File::Temp qw(tempfile); 10 10 use XML::LibXML; 11 use File::Basename; 11 12 12 13 # local classes … … 33 34 'output|o=s' => \$output, 34 35 'batch|b=s' => \$batchType, 35 'dvolocation|l=s' => \$dvoLocation, 36 'dvodb|d=s' => \$dvoDb, 36 'dvo|d=s' => \$fullDvoPath, 37 37 'expid|e=s' => \$singleExpId, 38 38 'product|p=s' => \$datastoreProduct, … … 58 58 print "* REQUIRED: need to define a batch type -b <init|det|diff|stack>\n"; 59 59 } 60 if (!defined $ dvoDb) {60 if (!defined $fullDvoPath) { 61 61 $quit=1; 62 print "* REQUIRED: need to provide a DVO Db name -d <name>\n"; 63 } 64 if (!defined $dvoLocation) { 65 $dvoLocation="/data/ipp037.0/gpc1/catdirs"; 66 print "* OPTIONAL: location of DVO Db -l <location> default = '$dvoLocation'\n"; 62 print "* REQUIRED: need to provide a DVO Db -d <pathToDVO>\n"; 67 63 } 68 64 if (!defined $singleExpId) { 69 65 70 print "* OPTIONAL: a single exposure ID -e <expID> default = none\n";66 print "* OPTIONAL: a single exposure ID -e <expID> (default = none)\n"; 71 67 } 72 68 if (!defined $datastoreProduct) { 73 69 74 print "* OPTIONAL: datastore product -p <product> default = none (i.e. data will not be published)\n";70 print "* OPTIONAL: datastore product -p <product> (default = none, i.e. data will not be published)\n"; 75 71 } 76 72 if (!defined $verbose) { 77 73 $verbose = 0; 78 print "* OPTIONAL: run in verbose mode -v default = $verbose\n";74 print "* OPTIONAL: run in verbose mode -v (default = $verbose)\n"; 79 75 } 80 76 if (!defined $save_temps) { 81 77 $save_temps = 0; 82 print "* OPTIONAL: keep temp files -t default = $save_temps\n";78 print "* OPTIONAL: keep temp files -t (default = $save_temps)\n"; 83 79 } 84 80 if (!defined $force) { 85 81 $force = 0; 86 print "* OPTIONAL: force if already processed -f default = $force\n";82 print "* OPTIONAL: force if already processed -f (default = $force)\n"; 87 83 } 88 84 if (!defined $dontTarNZip) { 89 85 $dontTarNZip = 0; 90 print "* OPTIONAL: don't tar and zip output -z default = $dontTarNZip\n";86 print "* OPTIONAL: don't tar and zip output -z (default = $dontTarNZip)\n"; 91 87 } 92 88 print "*\n*******************************************************************************\n"; 93 89 94 90 if ($quit) { exit; } 95 96 $fullDvoPath = $dvoLocation . "/" . $dvoDb;97 91 98 92 # determine PSPS batch 'type' … … 103 97 elsif ($batchType eq 'diff') {$pspsBatchType = "OB";} 104 98 else {$pspsBatchType = "UNKNOWN";} 99 100 # spilt full DVO path into Db and path 101 ($dvoDb, $dvoLocation) = fileparse($fullDvoPath); 105 102 106 103 my $gpc1Db = new ippToPsps::Gpc1Db("gpc1", "ippdb01", "ippuser", "ippuser", $verbose, $save_temps);
Note:
See TracChangeset
for help on using the changeset viewer.
