Changeset 583 for BAORadio/AmasNancay/trunk
- Timestamp:
- Oct 21, 2011, 3:25:35 PM (13 years ago)
- Location:
- BAORadio/AmasNancay/trunk
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
BAORadio/AmasNancay/trunk/anagainmaker.sh
r579 r583 39 39 case "$1" in 40 40 -src) sourceRadio=$2; shift;; 41 -date) dateSelected=$2; 41 -date) dateSelected=$2; shift;; 42 42 -sim) simulationMode=On;; 43 43 -h) … … 145 145 # So the input files are there, so the fits file can be determined 146 146 mode="Off" 147 148 input4gainOk1=`ils ${i}/Off 2>&1 | $GREP -i "^ERROR" | $WC -l` 149 input4gainOk2=`ils ${i}/Off 2>&1 | $GREP -i "gaincycle"` 150 if [ $input4gainOk1 -eq 0 -a "<${input4gainOk2}>" != "<>" ]; then 151 gaincycle=`$ECHO ${input4gainOk2} | $AWK '($1 == "C-"){print $2}'| $XARGS -i basename {}` 152 else 153 $ECHO "INFO ${scriptName}: no gaincycle for ${i}" 154 continue 155 fi 156 147 157 spectraGenDirName=`$ECHO ${gaincycle} | $AWK '{match($0,"[a-zA-Z]+",arr); print arr[0]}'` 148 158 cycleNumber=`$ECHO ${gaincycle} | $AWK '{match($0,"[0-9]+",arr); print arr[0]}'` … … 168 178 $RM -f ${tmppublicpath}/getscafiles.finished 169 179 ${scriptpath}/getscafiles.sh ${sourceRadio} ${dateDAQ} > ${OUT1} 2>&1 170 while [ ! -f "${tmppublicpath}/getscafiles.finished" ]; do 171 $ECHO "INFO (${scriptName}): waiting for ${tmppublicpath}/getscafiles.finished" 172 date +%T 173 sleep 30 174 done 180 # AST 21/10/2011: comment while as it blocks the job 181 # while [ ! -f "${tmppublicpath}/getscafiles.finished" ]; do 182 # $ECHO "INFO (${scriptName}): waiting for ${tmppublicpath}/getscafiles.finished" 183 # date +%T 184 # sleep 30 185 # done 175 186 $RM ${tmppublicpath}/getscafiles.finished 176 187 $ECHO "DEBUG (${scriptName}): END" -
BAORadio/AmasNancay/trunk/submit2ge-anacalibmaker.sh
r580 r583 23 23 -h) 24 24 echo >&2 \ 25 "usage: $0 -src sou ce -date YYYYMMDD [-freq freq in MHz (default ${freqBAOCalib})] [-bwd bandwidth in MHz (default ${bwBAOCalib})]"25 "usage: $0 -src source -date YYYYMMDD [-freq freq in MHz (default ${freqBAOCalib})] [-bwd bandwidth in MHz (default ${bwBAOCalib})]" 26 26 exit 1;; 27 27 *) break;; # terminate while loop -
BAORadio/AmasNancay/trunk/submit2ge-anagainmaker.sh
r580 r583 3 3 #Process cmd line args: the -src option is mandatory (source name as Abell85) 4 4 sourceRadio= 5 dateSelected= 5 6 #use -sim option to simulate processing (debug the script as if...) 6 7 simulationMode="" … … 9 10 case "$1" in 10 11 -src) sourceRadio=$2; shift;; 11 -sim) simulationMode="-sim";; 12 -date) dateSelected="-date $2"; dateJob="$2"; shift;; 13 -sim) simulationMode="-sim";; 12 14 -h) 13 15 echo >&2 \ 14 "usage: $0 -src sou ce[-sim]"16 "usage: $0 -src source -date YYYYMMDD [-sim]" 15 17 exit 1;; 16 18 *) break;; # terminate while loop … … 19 21 done 20 22 21 jobBatchName="gains-$sourceRadio" 23 24 if [ "<${sourceRadio}>" = "<>" ]; then 25 $ECHO "FATAL: You have forgotten to select the source option (-src)" 26 exit 1 27 fi 28 29 jobBatchName="gains-${sourceRadio}${dateJob}" 22 30 jobLogName="${jobBatchName}.log.$$" 23 31 24 32 qsub -P P_baoradio -l sps=1,irods=1,ct=2400,vmem=1000M,fsize=500M -o $jobLogName -j yes -N $jobBatchName -m be -M ${LOGNAME}@lal.in2p3.fr -V <<EOF 25 33 26 ${SCRIPTPATH}/ gainmaker.sh -src ${sourceRadio} ${simulationMode}34 ${SCRIPTPATH}/anagainmaker.sh -src ${sourceRadio} ${dateSelected} ${simulationMode} 27 35 EOF
Note: See TracChangeset
for help on using the changeset viewer.