Last change
on this file since 572 was
570,
checked in by campagne, 13 years ago
|
prepare new way to process the data: first perform specmfib, second perform post-analysis (jec)
|
File size:
1.0 KB
|
Rev | Line | |
---|
[507] | 1 | #!/bin/sh -xv |
---|
| 2 | |
---|
| 3 | #Process cmd line args: the -src option is mandatory (source name as Abell85) |
---|
| 4 | sourceRadio= |
---|
[570] | 5 | dateSelected= |
---|
[507] | 6 | #use -sim option to simulate processing (debug the script as if...) |
---|
| 7 | simulationMode="" |
---|
| 8 | while [ $# -gt 0 ] |
---|
| 9 | do |
---|
| 10 | case "$1" in |
---|
| 11 | -src) sourceRadio=$2; shift;; |
---|
[570] | 12 | -date) dateSelected="-date $2"; dateJob="$2"; shift;; |
---|
[529] | 13 | -sim) simulationMode="-sim";; |
---|
[507] | 14 | -h) |
---|
| 15 | echo >&2 \ |
---|
[570] | 16 | "usage: $0 -src souce -date YYYYMMDD [-sim]" |
---|
[507] | 17 | exit 1;; |
---|
| 18 | *) break;; # terminate while loop |
---|
| 19 | esac |
---|
| 20 | shift |
---|
| 21 | done |
---|
| 22 | |
---|
[570] | 23 | if [ "<${sourceRadio}>" = "<>" ]; then |
---|
| 24 | $ECHO "FATAL: You have forgotten to select the source option (-src)" |
---|
| 25 | exit 1 |
---|
| 26 | fi |
---|
| 27 | |
---|
| 28 | jobBatchName="anagains-${sourceRadio}${dateJob}" |
---|
[507] | 29 | jobLogName="${jobBatchName}.log.$$" |
---|
| 30 | |
---|
[569] | 31 | qsub -l u_sps_baoradio,u_irods,T=120000,M=1000MB,scratch=500MB,platform=LINUX -eo -o $jobLogName -N $jobBatchName -mb -me -mu ${LOGNAME}@lal.in2p3.fr <<EOF |
---|
[570] | 32 | /afs/in2p3.fr/home/c/campagne/private/work/AmasNancay/anagainmaker.sh -src ${sourceRadio} ${dateSelected} ${simulationMode} |
---|
[507] | 33 | EOF |
---|
Note: See
TracBrowser
for help on using the repository browser.