Changeset 17598
- Timestamp:
- 03/02/14 14:01:42 (11 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/DataCheck/Processing/FillDrsTemp.sh
r17597 r17598 69 69 if [ "$doupdate" = "no" ] 70 70 then 71 query=$query" AND ISNULL(f CameraTempMean) "71 query=$query" AND ISNULL(fDrsTempMinMean) " 72 72 fi 73 73 printprocesslog "DEBUG get filenumbers from DB: QUERY: "$query … … 78 78 printprocesslog "INFO No files found in the DB for night "$date 79 79 continue 80 fi81 82 magicweatherfile=$auxdir/$runnumber.MAGIC_WEATHER_DATA.fits83 if ! [ -e $magicweatherfile ]84 then85 printprocesslog "WARN "$magicweatherfile" not found."86 echo "WARN "$magicweatherfile" not found."87 else88 weathernumerrors=`fverify $magicweatherfile 2>/dev/null | grep -o '[0-9][ ]error(s)' | grep -E -o '[0-9]'`89 if [ $weathernumerrors -gt 0 ]90 then91 printprocesslog "WARN for $magicweatherfile fverify returned "$weathernumerrors" error(s)."92 fi93 80 fi 94 81 … … 194 181 #fCameraTempMeanRms: mean of rms of single sensors 195 182 196 # get information from weather: T197 if [ -e $magicweatherfile ] && [ $weathernumerrors -eq 0 ]198 then199 mtemps=( `root -q -b -l fact/processing/magictemp.C\("\"$magicweatherfile\""\,$tstart\,$tstop\) | grep "result" | grep -E -o '[0-9]+[.]?[0-9]*'` )200 if [ "${mtemps[0]}" == "" ]201 then202 query=$query", fOutsideTempMean=NULL"203 else204 query=$query", fOutsideTempMean="${mtemps[0]}205 fi206 if [ "${mtemps[1]}" == "" ]207 then208 query=$query", fOutsideTempRms=NULL"209 else210 query=$query", fOutsideTempRms="${mtemps[1]}211 fi212 else213 query=$query", fOutsideTempMean=NULL"214 query=$query", fOutsideTempRms=NULL"215 fi216 217 183 # add where condition 218 184 query=$query" WHERE fNight="$runnumber" AND fRunID="$filenum
Note:
See TracChangeset
for help on using the changeset viewer.