Last change
on this file since 526 was 510, checked in by campagne, 14 years ago |
change scriptpath (general) + minor things
|
File size:
1.3 KB
|
Line | |
---|
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 | shift;;
|
---|
22 | -h)
|
---|
23 | echo >&2 \
|
---|
24 | "usage: $0 -src souce [-freq freq in MHz (default ${freqBAOCalib})] [-bwd bandwidth in MHz (default ${bwBAOCalib})]"
|
---|
25 | exit 1;;
|
---|
26 | *) break;; # terminate while loop
|
---|
27 | esac
|
---|
28 | shift
|
---|
29 | done
|
---|
30 |
|
---|
31 |
|
---|
32 | if [ "<${sourceRadio}>" = "<>" ]; then
|
---|
33 | $ECHO "FATAL: You have forgotten to select the source option (-src)"
|
---|
34 | exit 1
|
---|
35 | fi
|
---|
36 |
|
---|
37 |
|
---|
38 | jobBatchName="calibs-${sourceRadio}"
|
---|
39 |
|
---|
40 | jobLogName="${jobBatchName}.log.$$"
|
---|
41 |
|
---|
42 | qsub -l u_sps_baoradio,u_irods,T=120000,M=1000MB,scratch=1000MB,platform=LINUX -eo -o $jobLogName -N $jobBatchName -mb -me -mu campagne@lal.in2p3.fr <<EOF
|
---|
43 | /afs/in2p3.fr/home/c/campagne/private/work/AmasNancay/calibmaker.sh -src ${sourceRadio} ${freqBAOCalib} ${bwBAOCalib} ${simulationMode}
|
---|
44 | EOF
|
---|
Note:
See
TracBrowser
for help on using the repository browser.