Last change
on this file since 573 was
570,
checked in by campagne, 13 years ago
|
prepare new way to process the data: first perform specmfib, second perform post-analysis (jec)
|
-
Property svn:executable set to
*
|
File size:
1.4 KB
|
Rev | Line | |
---|
[570] | 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 \ |
---|
| 25 | "usage: $0 -src souce -date YYYYMMDD [-freq freq in MHz (default ${freqBAOCalib})] [-bwd bandwidth in MHz (default ${bwBAOCalib})]" |
---|
| 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 | |
---|
| 43 | qsub -l u_sps_baoradio,u_irods,T=120000,M=1000MB,scratch=1000MB,platform=LINUX -eo -o $jobLogName -N $jobBatchName -mb -me -mu ${LOGNAME}@lal.in2p3.fr <<EOF |
---|
| 44 | /afs/in2p3.fr/home/c/campagne/private/work/AmasNancay/anacalibmaker.sh -src ${sourceRadio} ${dateSelected} ${freqBAOCalib} ${bwBAOCalib} ${simulationMode} |
---|
| 45 | EOF |
---|
Note: See
TracBrowser
for help on using the repository browser.