Last change
on this file since 591 was
580,
checked in by torrento, 13 years ago
|
add new scripts
|
-
Property svn:executable set to
*
|
File size:
1.2 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 | freqBAOCalib= |
---|
| 9 | bwBAOCalib= |
---|
| 10 | #use -sim option to simulate processing (debug the script as if...) |
---|
| 11 | simulationMode="" |
---|
| 12 | while [ $# -gt 0 ] |
---|
| 13 | do |
---|
| 14 | case "$1" in |
---|
| 15 | -src) sourceRadio="$2"; shift;; |
---|
| 16 | -freq) freqBAOCalib="-freq $2"; shift;; |
---|
| 17 | -bwd) bwBAOCalib="-bwd $2"; shift;; |
---|
| 18 | -sim) |
---|
| 19 | simulationMode="-sim On" |
---|
| 20 | $ECHO "INFO ${scriptName} running in SIMUL mode";; |
---|
| 21 | -h) |
---|
| 22 | echo >&2 \ |
---|
| 23 | "usage: $0 -src souce [-freq freq in MHz (default ${freqBAOCalib})] [-bwd bandwidth in MHz (default ${bwBAOCalib})]" |
---|
| 24 | exit 1;; |
---|
| 25 | *) break;; # terminate while loop |
---|
| 26 | esac |
---|
| 27 | shift |
---|
| 28 | done |
---|
| 29 | |
---|
| 30 | |
---|
| 31 | if [ "<${sourceRadio}>" = "<>" ]; then |
---|
| 32 | $ECHO "FATAL: You have forgotten to select the source option (-src)" |
---|
| 33 | exit 1 |
---|
| 34 | fi |
---|
| 35 | |
---|
| 36 | |
---|
| 37 | jobBatchName="calibs-${sourceRadio}" |
---|
| 38 | |
---|
| 39 | jobLogName="${jobBatchName}.log.$$" |
---|
| 40 | |
---|
| 41 | qsub -P P_baoradio -l sps=1,irods=1,ct=2400,vmem=1000M,fsize=1000M -o $jobLogName -j yes -N $jobBatchName -m be -M ${LOGNAME}@lal.in2p3.fr -V <<EOF |
---|
| 42 | |
---|
| 43 | ${SCRIPTPATH}/calibmaker.sh -src ${sourceRadio} ${freqBAOCalib} ${bwBAOCalib} ${simulationMode} |
---|
| 44 | EOF |
---|
Note: See
TracBrowser
for help on using the repository browser.