Changeset 17598


Ignore:
Timestamp:
03/02/14 14:01:42 (11 years ago)
Author:
Daniela Dorner
Message:
removed filling of outside temperatur (done in FillAuxTemp.sh), fixed check whether data was already filled
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/DataCheck/Processing/FillDrsTemp.sh

    r17597 r17598  
    6969   if [ "$doupdate" = "no" ]
    7070   then
    71       query=$query" AND ISNULL(fCameraTempMean) "
     71      query=$query" AND ISNULL(fDrsTempMinMean) "
    7272   fi
    7373   printprocesslog "DEBUG get filenumbers from DB: QUERY: "$query
     
    7878      printprocesslog "INFO No files found in the DB for night "$date
    7979      continue
    80    fi
    81 
    82    magicweatherfile=$auxdir/$runnumber.MAGIC_WEATHER_DATA.fits
    83    if ! [ -e $magicweatherfile ]
    84    then
    85       printprocesslog "WARN "$magicweatherfile" not found."
    86       echo "WARN "$magicweatherfile" not found."
    87    else
    88       weathernumerrors=`fverify $magicweatherfile 2>/dev/null | grep -o '[0-9][ ]error(s)'  | grep -E -o '[0-9]'`
    89       if [ $weathernumerrors -gt 0 ]
    90       then
    91          printprocesslog "WARN for $magicweatherfile fverify returned "$weathernumerrors" error(s)."
    92       fi
    9380   fi
    9481
     
    194181      #fCameraTempMeanRms: mean of rms of single sensors
    195182     
    196       # get information from weather: T
    197       if [ -e $magicweatherfile ] && [ $weathernumerrors -eq 0 ]
    198       then
    199          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          then
    202             query=$query", fOutsideTempMean=NULL"
    203          else
    204             query=$query", fOutsideTempMean="${mtemps[0]}
    205          fi
    206          if [ "${mtemps[1]}" == "" ]
    207          then
    208             query=$query", fOutsideTempRms=NULL"
    209          else
    210             query=$query", fOutsideTempRms="${mtemps[1]}
    211          fi
    212       else
    213          query=$query", fOutsideTempMean=NULL"
    214          query=$query", fOutsideTempRms=NULL"
    215       fi
    216      
    217183      # add where condition
    218184      query=$query" WHERE fNight="$runnumber" AND fRunID="$filenum
Note: See TracChangeset for help on using the changeset viewer.