Changeset 28842
- Timestamp:
- Aug 4, 2010, 4:30:32 PM (16 years ago)
- File:
-
- 1 edited
-
trunk/ippToPsps/perl/ippToPsps_run.pl (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/ippToPsps/perl/ippToPsps_run.pl
r28755 r28842 49 49 print "* \n"; 50 50 if (@ARGV) { 51 print "* UNKNKOWN: option :@ARGV\n"; $quit=1;}51 print "* UNKNKOWN: option @ARGV\n"; $quit=1;} 52 52 if (!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;} 54 54 if (!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;} 56 56 if (!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;} 58 58 if (!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"; 60 60 print "* an exposure ID -e <expID>\n"; $quit=1;} 61 61 if (!defined $datastoreProduct) { 62 print "* OPTIONAL: datastore product :-p <product>\n";}62 print "* OPTIONAL: datastore product -p <product>\n";} 63 63 if (!defined $verbose) { 64 print "* OPTIONAL: run in verbose mode :-v\n"; $verbose = 0;}64 print "* OPTIONAL: run in verbose mode -v\n"; $verbose = 0;} 65 65 if (!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;} 67 67 if (!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;} 69 69 if (!defined $force) { 70 print "* OPTIONAL: force if already processed :-f\n"; $force = 0;}70 print "* OPTIONAL: force if already processed -f\n"; $force = 0;} 71 71 if (!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;} 73 73 print "*\n*******************************************************************************\n"; 74 74 … … 122 122 @{$rows} = (\@row); 123 123 } 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);} 126 126 127 127 # TODO check if there are no exposures and give a warning
Note:
See TracChangeset
for help on using the changeset viewer.
