Last change
on this file since 610 was
576,
checked in by campagne, 13 years ago
|
u_irods_baoradio pour BQS (jec)
|
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 | -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 -l u_sps_baoradio,u_irods,u_irods_baoradio,T=120000,M=1000MB,scratch=1000MB,platform=LINUX -eo -o $jobLogName -N $jobBatchName -mb -me -mu ${LOGNAME}@lal.in2p3.fr <<EOF |
---|
42 | /afs/in2p3.fr/home/c/campagne/private/work/AmasNancay/calibmaker.sh -src ${sourceRadio} ${freqBAOCalib} ${bwBAOCalib} ${simulationMode} |
---|
43 | EOF |
---|
Note: See
TracBrowser
for help on using the repository browser.