Last change
on this file since 659 was
598,
checked in by campagne, 13 years ago
|
cleaning of the set of scripts, and improve th submit2ge options, and improve analysis (jec)
|
-
Property svn:executable set to
*
|
File size:
1.3 KB
|
Rev | Line | |
---|
[580] | 1 | #!/bin/sh -xv |
---|
| 2 | |
---|
| 3 | scriptName="`basename $0`" |
---|
| 4 | echo "Processing script ${scriptName} at `date`" |
---|
| 5 | |
---|
| 6 | #Process cmd line args: the -src option is mandatory (source name as Abell85) |
---|
| 7 | sourceRadio= |
---|
| 8 | dateSelected= |
---|
| 9 | freqBAOCalib= |
---|
| 10 | bwBAOCalib= |
---|
| 11 | #use -sim option to simulate processing (debug the script as if...) |
---|
| 12 | simulationMode="" |
---|
| 13 | while [ $# -gt 0 ] |
---|
| 14 | do |
---|
| 15 | case "$1" in |
---|
| 16 | -src) sourceRadio="$2"; shift;; |
---|
| 17 | -date) dateSelected="-date $2"; dateJob="$2"; shift;; |
---|
| 18 | -freq) freqBAOCalib="-freq $2"; shift;; |
---|
| 19 | -bwd) bwBAOCalib="-bwd $2"; shift;; |
---|
| 20 | -sim) |
---|
| 21 | simulationMode="-sim On" |
---|
| 22 | $ECHO "INFO ${scriptName} running in SIMUL mode";; |
---|
| 23 | -h) |
---|
| 24 | echo >&2 \ |
---|
[583] | 25 | "usage: $0 -src source -date YYYYMMDD [-freq freq in MHz (default ${freqBAOCalib})] [-bwd bandwidth in MHz (default ${bwBAOCalib})]" |
---|
[580] | 26 | exit 1;; |
---|
| 27 | *) break;; # terminate while loop |
---|
| 28 | esac |
---|
| 29 | shift |
---|
| 30 | done |
---|
| 31 | |
---|
| 32 | |
---|
| 33 | if [ "<${sourceRadio}>" = "<>" ]; then |
---|
| 34 | $ECHO "FATAL: You have forgotten to select the source option (-src)" |
---|
| 35 | exit 1 |
---|
| 36 | fi |
---|
| 37 | |
---|
| 38 | |
---|
| 39 | jobBatchName="anacalibs-${sourceRadio}${dateJob}" |
---|
| 40 | |
---|
| 41 | jobLogName="${jobBatchName}.log.$$" |
---|
| 42 | |
---|
[598] | 43 | qsub -P P_baoradio -l sps=1,irods=1,ct=1200,vmem=1000M,fsize=1000M -o ${PWD}/${jobLogName} -j yes -N $jobBatchName -m be -M ${LOGNAME}@lal.in2p3.fr -V <<EOF |
---|
[580] | 44 | |
---|
| 45 | ${SCRIPTPATH}/anacalibmaker.sh -src ${sourceRadio} ${dateSelected} ${freqBAOCalib} ${bwBAOCalib} ${simulationMode} |
---|
| 46 | EOF |
---|
Note: See
TracBrowser
for help on using the repository browser.