source: BAORadio/AmasNancay/trunk/submit2bqs-anacalibmaker.sh @ 584

Last change on this file since 584 was 584, checked in by campagne, 13 years ago

correct bug: threshold to detect 1st level of DAB (jec)

  • Property svn:executable set to *
File size: 1.4 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=
8dateSelected=
9freqBAOCalib=
10bwBAOCalib=
11#use -sim option to simulate processing (debug the script as if...)
12simulationMode=""
13while [ $# -gt 0 ]
14do
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
30done
31
32
33if [ "<${sourceRadio}>" = "<>" ]; then
34    $ECHO "FATAL: You have forgotten to select the source option (-src)"
35    exit 1
36fi
37
38
39jobBatchName="anacalibs-${sourceRadio}${dateJob}-test"
40
41jobLogName="${jobBatchName}.log.$$"
42
43qsub -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
44/afs/in2p3.fr/home/c/campagne/private/work/AmasNancay/anacalibmaker.sh  -src ${sourceRadio} ${dateSelected} ${freqBAOCalib} ${bwBAOCalib} ${simulationMode}
45EOF
Note: See TracBrowser for help on using the repository browser.