source: BAORadio/AmasNancay/v1/submit2bqs-calibmaker.sh@ 601

Last change on this file since 601 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
3scriptName="`basename $0`"
4echo "Processing script ${scriptName} at `date`"
5
6#Process cmd line args: the -src option is mandatory (source name as Abell85)
7sourceRadio
8freqBAOCalib=
9bwBAOCalib=
10#use -sim option to simulate processing (debug the script as if...)
11simulationMode=""
12while [ $# -gt 0 ]
13do
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
29done
30
31
32if [ "<${sourceRadio}>" = "<>" ]; then
33 $ECHO "FATAL: You have forgotten to select the source option (-src)"
34 exit 1
35fi
36
37
38jobBatchName="calibs-${sourceRadio}"
39
40jobLogName="${jobBatchName}.log.$$"
41
42qsub -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}
44EOF
Note: See TracBrowser for help on using the repository browser.