Changeset 570 for BAORadio/AmasNancay/trunk
- Timestamp:
- Oct 11, 2011, 11:29:33 AM (13 years ago)
- Location:
- BAORadio/AmasNancay/trunk
- Files:
-
- 4 added
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
BAORadio/AmasNancay/trunk/anarawonoffmaker.sh
r547 r570 111 111 $ECHO "FATAL (${scriptName}): ${OUT1} has a problem" 112 112 exit 1 113 # $ECHO "We should bring the DAQ status more up to date, this take 1 or 2sec..."114 # $RM -f ${tmppublicpath}/statusdaq.finished115 # ${scriptpath}/statusdaq.sh > ${OUT1}116 # while [ ! -f "${tmppublicpath}/statusdaq.finished" ]; do117 # sleep 30118 # done119 # $RM ${tmppublicpath}/statusdaq.finished120 #protect against remove/rewriting121 # $CHMOD -v 444 ${OUT1}122 113 fi 123 114 … … 145 136 $LS -lrt 146 137 147 148 #JEC 1/10/11 Use generic baodaqstatus name149 #Look if the date has changed since beginning of the job!150 # curtag=`${DATE} +%F`151 # if [ "<${curtag}>" != "<${tag}>" ]; then152 # tag=${curtag}153 #it is necessary to update the daq status as the day has changed during the processing... (batch can take a long time...)154 # OUT1=${publicpath}/baodaqstatus-${curtag}.txt155 # $ECHO "We should bring the DAQ status more up to date, this take 1 or 2sec..."156 # $RM -f ${tmppublicpath}/statusdaq.finished157 # ${scriptpath}/statusdaq.sh > ${OUT1}158 # while [ ! -f "${tmppublicpath}/statusdaq.finished" ]; do159 # sleep 30160 # done161 # $RM ${tmppublicpath}/statusdaq.finished162 #protect against remove/rewriting163 # $CHMOD -v 444 ${OUT1}164 # fi165 #166 # look if the gain & calibration files exist167 #168 138 gainDone=`ils ${i} 2>&1 | $GREP -i "gain_.*\.fits" | $WC -l` 169 139 if [ ! ${gainDone} -gt 0 ]; then -
BAORadio/AmasNancay/trunk/proc_specmfib.sh
r567 r570 86 86 $ECHO "FATAL: You have forgotten to select the type option (-type)" 87 87 exit 1 88 else 89 offtype=`$ECHO ${typeofproc} | $GREP -i OFF | $WC -l` 90 ontype=`$ECHO ${typeofproc} | $GREP -i ON | $WC -l` 91 if [ "<${offtype}>" = "<1>" -a "<${ontype}>" = "<0>" ]; then 92 datatype="OFF" 93 elif [ "<${offtype}>" = "<0>" -a "<${ontype}>" = "<1>" ]; then 94 datatype="ON" 95 else 96 $ECHO "FATAL: not supported: -type ${typeofproc}" 97 exit 1 98 fi 99 fi 88 89 fi 90 #else 91 # offtype=`$ECHO ${typeofproc} | $GREP -i OFF | $WC -l` 92 # ontype=`$ECHO ${typeofproc} | $GREP -i ON | $WC -l` 93 # if [ "<${offtype}>" = "<1>" -a "<${ontype}>" = "<0>" ]; then 94 # datatype="OFF" 95 # elif [ "<${offtype}>" = "<0>" -a "<${ontype}>" = "<1>" ]; then 96 # datatype="ON" 97 # else 98 # $ECHO "FATAL: not supported: -type ${typeofproc}" 99 # exit 1 100 # fi 101 #fi 100 102 101 103 … … 220 222 #JEC 29/9/11 avoid finished stuff 221 223 #$RM -f ${tmppublicpath}/select.finished 222 ${scriptpath}/select.sh ${scaFileSummarized} ${dirFiberfile} ${ datatype} | $GREP "^#[0-9]" | $SED "s/^#//" > $headerFileSelected224 ${scriptpath}/select.sh ${scaFileSummarized} ${dirFiberfile} ${typeofproc} | $GREP "^#[0-9]" | $SED "s/^#//" > $headerFileSelected 223 225 #while [ ! -f "${tmppublicpath}/select.finished" ]; do 224 226 # $ECHO "INFO (${scriptName}): waiting for ${tmppublicpath}/select.finished" -
BAORadio/AmasNancay/trunk/submit2bqs-gainmaker.sh
r569 r570 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;; 12 -date) dateSelected="-date $2"; dateJob="$2"; shift;; 11 13 -sim) simulationMode="-sim";; 12 14 -h) 13 15 echo >&2 \ 14 "usage: $0 -src souce [-sim]"16 "usage: $0 -src souce -date YYYYMMDD [-sim]" 15 17 exit 1;; 16 18 *) break;; # terminate while loop … … 19 21 done 20 22 21 jobBatchName="gains-$sourceRadio" 23 if [ "<${sourceRadio}>" = "<>" ]; then 24 $ECHO "FATAL: You have forgotten to select the source option (-src)" 25 exit 1 26 fi 27 28 jobBatchName="anagains-${sourceRadio}${dateJob}" 22 29 jobLogName="${jobBatchName}.log.$$" 23 30 24 31 qsub -l u_sps_baoradio,u_irods,T=120000,M=1000MB,scratch=500MB,platform=LINUX -eo -o $jobLogName -N $jobBatchName -mb -me -mu ${LOGNAME}@lal.in2p3.fr <<EOF 25 /afs/in2p3.fr/home/c/campagne/private/work/AmasNancay/ gainmaker.sh -src ${sourceRadio} ${simulationMode}32 /afs/in2p3.fr/home/c/campagne/private/work/AmasNancay/anagainmaker.sh -src ${sourceRadio} ${dateSelected} ${simulationMode} 26 33 EOF
Note: See TracChangeset
for help on using the changeset viewer.