Changeset 12644 for trunk/DataCheck
- Timestamp:
- 11/25/11 06:07:06 (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/DataCheck/CheckRawData.sh
r12632 r12644 10 10 doupdate="yes" # update all entries 11 11 #doupdate="no" # fill only entries which are not yet existing 12 13 fillonly="ifzipped" # fill only entries which are not yet existing + where zipped file is availabl 12 14 13 15 echo "" >> $logfile 2>&1 … … 29 31 30 32 # get last 3 nights 31 dates=( `date +%Y/%m/%d` `date +%Y/%m/%d --date="-1day"` `date +%Y/%m/%d --date="-2day"` `date +%Y/%m/%d --date="-3day"` ) 32 dates=( `date +%Y/%m/%d --date="-6day"` ) 33 dates=( "2011/11/23" ) 33 dates=( `date +%Y/%m/%d --date="-12hour"` `date +%Y/%m/%d --date="-36hour"` ) 34 34 35 35 # do rsync for rawfiles of these dates … … 150 150 fi 151 151 fi 152 if [ "$result3" == "" ] && [ "$md5sum" == "" ] && [ "$fillonly" == "ifzipped" ] 153 then 154 echo $file" is still missing zip => do not insert yet => continue " >> $logfile 2>&1 155 continue 156 fi 152 157 153 158 runtype= … … 181 186 runtype=`/home/fact/FACT++/fitsdump -h -t Events $file 2>/dev/null | grep RUNTYPE | grep -E -o "['][a-z-]+[']" | sed -e "s/'//g"` 182 187 roi=`/home/fact/FACT++/fitsdump -h -t Events $file 2>/dev/null | grep NROI | grep -v NROITM | grep -E -o '[0-9]{1,4}'` 188 roitm=`/home/fact/FACT++/fitsdump -h -t Events $file 2>/dev/null | grep NROITM | grep -E -o '[0-9]{1,4}'` 183 189 numevents=`/home/fact/FACT++/fitsdump -h -t Events $file 2>/dev/null | grep Events | grep -E -o '[0-9]+'` 184 190 numphys=`/home/fact/FACT++/fitsdump -h -t Events $file 2>/dev/null | grep 'NTRG ' | grep -E -o '[0-9]+'` … … 273 279 if [ $numfitserrors -eq 0 ] 274 280 then 275 query4=$query4", fNumEvents="$numevents", fROI="$roi 281 query4=$query4", fNumEvents="$numevents", fROI="$roi", fROITimeMarker="$roitm 276 282 query4=$query4", fRunStart='"$runstart"', fRunStop='"$runstop"'" 277 283 if [ "$numphys" != "" ] … … 330 336 echo " number error: "$numbererror >> $logfile 2>&1 331 337 echo " roi: "$roi >> $logfile 2>&1 338 echo " roitm: "$roitm >> $logfile 2>&1 332 339 echo " runtype: "$runtype >> $logfile 2>&1 333 340 echo " numevents: "$numevents >> $logfile 2>&1
Note:
See TracChangeset
for help on using the changeset viewer.