Changeset 18945 for trunk/DataCheck
- Timestamp:
- 02/09/18 23:04:39 (7 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/DataCheck/Processing/FillAuxCam.sh
r18941 r18945 79 79 80 80 fschumfile=$auxdir/$runnumber.FSC_CONTROL_HUMIDITY.fits 81 if ! [ -e $fschumfile ] 81 #if ! [ -e $fschumfile ] 82 if ! check_file_avail $fschumfile 82 83 then 83 printprocesslog "WARN "$fschumfile" not found." 84 #printprocesslog "WARN "$fschumfile" not found." 85 continue 84 86 else 85 87 humnumerrors=`fverify $fschumfile 2>/dev/null | grep -o '[0-9][ ]error(s)' | grep -E -o '[0-9]'` … … 87 89 then 88 90 printprocesslog "WARN for "$fschumfile" fverify returned "$humnumerrors" error(s)." 91 fi 92 fi 93 94 fsctempfile=$auxdir/$runnumber.FSC_CONTROL_TEMPERATURE.fits 95 if ! [ -e $fsctempfile ] 96 then 97 printprocesslog "WARN "$fsctempfile" not found." 98 else 99 tempnumerrors=`fverify $fsctempfile 2>/dev/null | grep -o '[0-9][ ]error(s)' | grep -E -o '[0-9]'` 100 if [ $tempnumerrors -gt 0 ] 101 then 102 printprocesslog "WARN for $fsctempfile fverify returned "$tempnumerrors" error(s)." 89 103 fi 90 104 fi … … 97 111 # get information from rawfile 98 112 rawfile=$ziprawdata/$date/$runnumber"_"`printf %03d $filenum`.fits.fz 99 if ! [ -e $rawfile ] 100 then 101 if [ $runnumber -lt $checknight ] 102 then 103 printprocesslog "WARN "$rawfile" not found." 104 else 105 printprocesslog "INFO "$rawfile" not found." 106 fi 113 #if ! [ -e $rawfile ] 114 if ! check_file_avail $rawfile 115 then 116 #if [ $runnumber -lt $checknight ] 117 #then 118 # printprocesslog "WARN "$rawfile" not found." 119 #else 120 # printprocesslog "INFO "$rawfile" not found." 121 #fi 107 122 continue 108 123 fi … … 157 172 #fCameraTempMeanRms: mean of rms of single sensors 158 173 174 # get information from fsc: T[31] 175 if [ -e $fsctempfile ] && [ $tempnumerrors -eq 0 ] 176 then 177 fsctemps=( `root -q -b -l fact/processing/camtemp.C\("\"$fsctempfile\""\,$tstart\,$tstop\) | grep "result" | grep -E -o '[0-9]+[.]?[0-9]*'` ) 178 if [ "${fsctemps[0]}" == "" ] 179 then 180 query=$query", fCameraTempMean=NULL" 181 else 182 query=$query", fCameraTempMean="${fsctemps[0]} 183 fi 184 if [ "${fsctemps[1]}" == "" ] 185 then 186 query=$query", fCameraTempRms=NULL" 187 else 188 query=$query", fCameraTempRms="${fsctemps[1]} 189 fi 190 if [ "${fsctemps[2]}" == "" ] 191 then 192 query=$query", fCameraTempRmsMean=NULL" 193 else 194 query=$query", fCameraTempRmsMean="${fsctemps[2]} 195 fi 196 else 197 query=$query", fCameraTempMean=NULL" 198 query=$query", fCameraTempRms=NULL" 199 query=$query", fCameraTempRmsMean=NULL" 200 fi 201 #fCameraTempMeanRms: mean of rms of single sensors 202 159 203 # add where condition 160 204 query=$query" WHERE fNight="$runnumber" AND fRunID="$filenum
Note:
See TracChangeset
for help on using the changeset viewer.