source: BAORadio/AmasNancay/v5/submit2ge-calibmaker.sh @ 675

Last change on this file since 675 was 580, checked in by torrento, 13 years ago

add new scripts

  • Property svn:executable set to *
File size: 1.2 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        -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
28done
29
30
31if [ "<${sourceRadio}>" = "<>" ]; then
32    $ECHO "FATAL: You have forgotten to select the source option (-src)"
33    exit 1
34fi
35
36
37jobBatchName="calibs-${sourceRadio}"
38
39jobLogName="${jobBatchName}.log.$$"
40
41qsub -P P_baoradio -l sps=1,irods=1,ct=2400,vmem=1000M,fsize=1000M -o $jobLogName -j yes -N $jobBatchName -m be -M ${LOGNAME}@lal.in2p3.fr -V <<EOF
42
43${SCRIPTPATH}/calibmaker.sh  -src ${sourceRadio} ${freqBAOCalib} ${bwBAOCalib} ${simulationMode}
44EOF
Note: See TracBrowser for help on using the repository browser.