Changeset 18708
- Timestamp:
- 01/05/17 00:44:59 (8 years ago)
- Location:
- trunk/DataCheck
- Files:
-
- 15 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/DataCheck/Processing/CheckAuxFilesAvail.sh
r14827 r18708 6 6 program=CheckAuxFilesAvail 7 7 step=AuxFilesAvailISDC 8 transferdelay=3 #days9 8 10 9 set -C … … 21 20 do 22 21 night=${primaries[$s]} 23 currentnight=`date +%Y%m%d`24 #checknight=`echo " $currentnight - $transferdelay " | bc -l`25 checknight=`date +%Y%m%d --date="-${transferdelay}day"`26 27 22 setstatus "start" 28 23 -
trunk/DataCheck/Processing/CheckDriveFileAvail.sh
r14830 r18708 21 21 do 22 22 night=${primaries[$s]} 23 currentnight=`date +%Y%m%d`24 #checknight=`echo " $currentnight - $transferdelay " | bc -l`25 checknight=`date +%Y%m%d --date="-${transferdelay}day"`26 27 23 setstatus "start" 28 24 -
trunk/DataCheck/Processing/CheckRatesFileAvail.sh
r15384 r18708 21 21 do 22 22 night=${primaries[$s]} 23 currentnight=`date +%Y%m%d`24 #checknight=`echo " $currentnight - $transferdelay " | bc -l`25 checknight=`date +%Y%m%d --date="-${transferdelay}day"`26 27 23 setstatus "start" 28 24 -
trunk/DataCheck/Processing/CheckRawFilesAvail.sh
r18699 r18708 6 6 program=CheckRawFilesAvail 7 7 step=RawFileAvailISDC 8 transferdelay=3 #days9 8 failsdir=/archive/fact/fails/raw 10 9 … … 23 22 night=${primaries[$s+$s]} 24 23 runid=${primaries[$s+$s+1]} 24 # work around for 100 missing old files to avoid warnings every hour 25 25 currentnight=`date +%Y%m%d` 26 checknight=`echo " $currentnight - $transferdelay " | bc -l`27 # work around for 100 missing old files to avoid warnings every hour28 26 checknight2=`echo " $currentnight - 365 - $transferdelay " | bc -l` 29 27 … … 62 60 ;; 63 61 *) # print warning only for files which are older than $transferdelay days 64 if [ $night -lt $checknight ] 62 if [ $night -lt $checknight ] && [ $night -gt $checknight2 ] 65 63 then 66 64 printprocesslog "WARN "$drsfile" and "$failsdrsfile" missing." -
trunk/DataCheck/Processing/FillAuxCamHum.sh
r18321 r18708 35 35 getdates 6 36 36 fi 37 37 38 38 39 … … 98 99 if ! [ -e $rawfile ] 99 100 then 100 printprocesslog "ERROR: "$rawfile" not found." 101 if [ $runnumber -lt $checknight ] 102 then 103 printprocesslog "WARN "$rawfile" not found." 104 else 105 printprocesslog "INFO "$rawfile" not found." 106 fi 101 107 continue 102 108 fi … … 111 117 mjdrefraw=`$factpath/fitsdump -h $rawfile 2>/dev/null | grep 'MJDREF' | grep -E -o '[0-9]{5}'` 112 118 tstarti=`$factpath/fitsdump -h $rawfile 2>/dev/null | grep 'TSTARTI' | grep -E -o '[0-9]{5}'` 113 tstartf=`$factpath/fitsdump -h $rawfile 2>/dev/null | grep 'TSTARTF' | grep -E -o ' 0[.][0-9]+'`119 tstartf=`$factpath/fitsdump -h $rawfile 2>/dev/null | grep 'TSTARTF' | grep -E -o '[0-9][.][0-9]+([E][\-][0-9][0-9])?' | sed -e 's/[E]+*/\\*10\\^/'` 114 120 tstopi=`$factpath/fitsdump -h $rawfile 2>/dev/null | grep 'TSTOPI' | grep -E -o '[0-9]{5}'` 115 tstopf=`$factpath/fitsdump -h $rawfile 2>/dev/null | grep 'TSTOPF' | grep -E -o ' 0[.][0-9]+'`121 tstopf=`$factpath/fitsdump -h $rawfile 2>/dev/null | grep 'TSTOPF' | grep -E -o '[0-9][.][0-9]+([E][\-][0-9][0-9])?' | sed -e 's/[E]+*/\\*10\\^/'` 116 122 if [ "$tstarti" == "" ] || [ "$tstopi" == "" ] || [ "$tstartf" == "" ] || [ "$tstopf" == "" ] 117 123 then -
trunk/DataCheck/Processing/FillAuxContTemp.sh
r18321 r18708 35 35 getdates 6 36 36 fi 37 38 37 39 38 40 printprocesslog "INFO processing the following night(s): "${dates[@]} … … 101 103 if ! [ -e $rawfile ] 102 104 then 103 printprocesslog "ERROR: "$rawfile" not found." 105 if [ $runnumber -lt $checknight ] 106 then 107 printprocesslog "WARN "$rawfile" not found." 108 else 109 printprocesslog "INFO "$rawfile" not found." 110 fi 104 111 continue 105 112 fi … … 107 114 mjdrefraw=`$factpath/fitsdump -h $rawfile 2>/dev/null | grep 'MJDREF' | grep -E -o '[0-9]{5}'` 108 115 tstarti=`$factpath/fitsdump -h $rawfile 2>/dev/null | grep 'TSTARTI' | grep -E -o '[0-9]{5}'` 109 tstartf=`$factpath/fitsdump -h $rawfile 2>/dev/null | grep 'TSTARTF' | grep -E -o ' 0[.][0-9]+'`116 tstartf=`$factpath/fitsdump -h $rawfile 2>/dev/null | grep 'TSTARTF' | grep -E -o '[0-9][.][0-9]+([E][\-][0-9][0-9])?' | sed -e 's/[E]+*/\\*10\\^/'` 110 117 tstopi=`$factpath/fitsdump -h $rawfile 2>/dev/null | grep 'TSTOPI' | grep -E -o '[0-9]{5}'` 111 tstopf=`$factpath/fitsdump -h $rawfile 2>/dev/null | grep 'TSTOPF' | grep -E -o ' 0[.][0-9]+'`118 tstopf=`$factpath/fitsdump -h $rawfile 2>/dev/null | grep 'TSTOPF' | grep -E -o '[0-9][.][0-9]+([E][\-][0-9][0-9])?' | sed -e 's/[E]+*/\\*10\\^/'` 112 119 if [ "$tstarti" == "" ] || [ "$tstopi" == "" ] || [ "$tstartf" == "" ] || [ "$tstopf" == "" ] 113 120 then -
trunk/DataCheck/Processing/FillAuxCtrDev.sh
r18321 r18708 35 35 getdates 6 36 36 fi 37 38 37 39 38 40 printprocesslog "INFO processing the following night(s): "${dates[@]} … … 100 102 if ! [ -e $rawfile ] 101 103 then 102 printprocesslog "ERROR: "$rawfile" not found." 104 if [ $runnumber -lt $checknight ] 105 then 106 printprocesslog "WARN "$rawfile" not found." 107 else 108 printprocesslog "INFO "$rawfile" not found." 109 fi 103 110 continue 104 111 fi … … 106 113 mjdrefraw=`$factpath/fitsdump -h $rawfile 2>/dev/null | grep 'MJDREF' | grep -E -o '[0-9]{5}'` 107 114 tstarti=`$factpath/fitsdump -h $rawfile 2>/dev/null | grep 'TSTARTI' | grep -E -o '[0-9]{5}'` 108 tstartf=`$factpath/fitsdump -h $rawfile 2>/dev/null | grep 'TSTARTF' | grep -E -o ' 0[.][0-9]+'`115 tstartf=`$factpath/fitsdump -h $rawfile 2>/dev/null | grep 'TSTARTF' | grep -E -o '[0-9][.][0-9]+([E][\-][0-9][0-9])?' | sed -e 's/[E]+*/\\*10\\^/'` 109 116 tstopi=`$factpath/fitsdump -h $rawfile 2>/dev/null | grep 'TSTOPI' | grep -E -o '[0-9]{5}'` 110 tstopf=`$factpath/fitsdump -h $rawfile 2>/dev/null | grep 'TSTOPF' | grep -E -o ' 0[.][0-9]+'`117 tstopf=`$factpath/fitsdump -h $rawfile 2>/dev/null | grep 'TSTOPF' | grep -E -o '[0-9][.][0-9]+([E][\-][0-9][0-9])?' | sed -e 's/[E]+*/\\*10\\^/'` 111 118 if [ "$tstarti" == "" ] || [ "$tstopi" == "" ] || [ "$tstartf" == "" ] || [ "$tstopf" == "" ] 112 119 then -
trunk/DataCheck/Processing/FillAuxCurrents.sh
r18321 r18708 35 35 getdates 6 36 36 fi 37 38 37 39 38 40 printprocesslog "INFO processing the following night(s): "${dates[@]} … … 153 155 if ! [ -e $rawfile ] 154 156 then 155 printprocesslog "ERROR: "$rawfile" not found." 157 if [ $runnumber -lt $checknight ] 158 then 159 printprocesslog "WARN "$rawfile" not found." 160 else 161 printprocesslog "INFO "$rawfile" not found." 162 fi 156 163 continue 157 164 fi … … 159 166 mjdrefraw=`$factpath/fitsdump -h $rawfile 2>/dev/null | grep 'MJDREF' | grep -E -o '[0-9]{5}'` 160 167 tstarti=`$factpath/fitsdump -h $rawfile 2>/dev/null | grep 'TSTARTI' | grep -E -o '[0-9]{5}'` 161 tstartf=`$factpath/fitsdump -h $rawfile 2>/dev/null | grep 'TSTARTF' | grep -E -o ' 0[.][0-9]+'`168 tstartf=`$factpath/fitsdump -h $rawfile 2>/dev/null | grep 'TSTARTF' | grep -E -o '[0-9][.][0-9]+([E][\-][0-9][0-9])?' | sed -e 's/[E]+*/\\*10\\^/'` 162 169 tstopi=`$factpath/fitsdump -h $rawfile 2>/dev/null | grep 'TSTOPI' | grep -E -o '[0-9]{5}'` 163 tstopf=`$factpath/fitsdump -h $rawfile 2>/dev/null | grep 'TSTOPF' | grep -E -o ' 0[.][0-9]+'`170 tstopf=`$factpath/fitsdump -h $rawfile 2>/dev/null | grep 'TSTOPF' | grep -E -o '[0-9][.][0-9]+([E][\-][0-9][0-9])?' | sed -e 's/[E]+*/\\*10\\^/'` 164 171 if [ "$tstarti" == "" ] || [ "$tstopi" == "" ] || [ "$tstartf" == "" ] || [ "$tstopf" == "" ] 165 172 then 166 printprocesslog "WARN :"$rawfile": one of the following keywords is empty or 0: TSTARTI TSTARTF TSTOPI TSTOPF "173 printprocesslog "WARN "$rawfile": one of the following keywords is empty or 0: TSTARTI TSTARTF TSTOPI TSTOPF " 167 174 continue 168 175 fi -
trunk/DataCheck/Processing/FillAuxData.sh
r18698 r18708 36 36 getdates 3 7 19 37 37 fi 38 38 39 39 40 … … 181 182 if ! [ -e $rawfile ] 182 183 then 183 printprocesslog "ERROR: "$rawfile" not found." 184 if [ $night -lt $checknight ] 185 then 186 printprocesslog "WARN "$rawfile" not found." 187 else 188 printprocesslog "INFO "$rawfile" not found." 189 fi 184 190 continue 185 191 fi -
trunk/DataCheck/Processing/FillAuxTemp.sh
r18321 r18708 36 36 fi 37 37 38 39 38 40 printprocesslog "INFO processing the following night(s): "${dates[@]} 39 41 echo `date`": processing the following night(s): "${dates[@]} >> $logfile 2>&1 … … 109 111 if ! [ -e $rawfile ] 110 112 then 111 printprocesslog "ERROR: "$rawfile" not found." 113 if [ $runnumber -lt $checknight ] 114 then 115 printprocesslog "WARN "$rawfile" not found." 116 else 117 printprocesslog "INFO "$rawfile" not found." 118 fi 112 119 continue 113 120 fi … … 122 129 mjdrefraw=`$factpath/fitsdump -h $rawfile 2>/dev/null | grep 'MJDREF' | grep -E -o '[0-9]{5}'` 123 130 tstarti=`$factpath/fitsdump -h $rawfile 2>/dev/null | grep 'TSTARTI' | grep -E -o '[0-9]{5}'` 124 tstartf=`$factpath/fitsdump -h $rawfile 2>/dev/null | grep 'TSTARTF' | grep -E -o ' 0[.][0-9]+'`131 tstartf=`$factpath/fitsdump -h $rawfile 2>/dev/null | grep 'TSTARTF' | grep -E -o '[0-9][.][0-9]+([E][\-][0-9][0-9])?' | sed -e 's/[E]+*/\\*10\\^/'` 125 132 tstopi=`$factpath/fitsdump -h $rawfile 2>/dev/null | grep 'TSTOPI' | grep -E -o '[0-9]{5}'` 126 tstopf=`$factpath/fitsdump -h $rawfile 2>/dev/null | grep 'TSTOPF' | grep -E -o ' 0[.][0-9]+'`133 tstopf=`$factpath/fitsdump -h $rawfile 2>/dev/null | grep 'TSTOPF' | grep -E -o '[0-9][.][0-9]+([E][\-][0-9][0-9])?' | sed -e 's/[E]+*/\\*10\\^/'` 127 134 if [ "$tstarti" == "" ] || [ "$tstopi" == "" ] || [ "$tstartf" == "" ] || [ "$tstopf" == "" ] 128 135 then -
trunk/DataCheck/Processing/FillAuxThresholds.sh
r18321 r18708 37 37 fi 38 38 39 40 39 41 printprocesslog "INFO processing the following night(s): "${dates[@]} 40 42 echo `date`": processing the following night(s): "${dates[@]} >> $logfile 2>&1 … … 110 112 if ! [ -e $rawfile ] 111 113 then 112 printprocesslog "ERROR: "$rawfile" not found." 114 if [ $runnumber -lt $checknight ] 115 then 116 printprocesslog "WARN "$rawfile" not found." 117 else 118 printprocesslog "INFO "$rawfile" not found." 119 fi 113 120 continue 114 121 fi … … 116 123 mjdrefraw=`$factpath/fitsdump -h $rawfile 2>/dev/null | grep 'MJDREF' | grep -E -o '[0-9]{5}'` 117 124 tstarti=`$factpath/fitsdump -h $rawfile 2>/dev/null | grep 'TSTARTI' | grep -E -o '[0-9]{5}'` 118 tstartf=`$factpath/fitsdump -h $rawfile 2>/dev/null | grep 'TSTARTF' | grep -E -o ' 0[.][0-9]+'`125 tstartf=`$factpath/fitsdump -h $rawfile 2>/dev/null | grep 'TSTARTF' | grep -E -o '[0-9][.][0-9]+([E][\-][0-9][0-9])?' | sed -e 's/[E]+*/\\*10\\^/'` 119 126 tstopi=`$factpath/fitsdump -h $rawfile 2>/dev/null | grep 'TSTOPI' | grep -E -o '[0-9]{5}'` 120 tstopf=`$factpath/fitsdump -h $rawfile 2>/dev/null | grep 'TSTOPF' | grep -E -o ' 0[.][0-9]+'`127 tstopf=`$factpath/fitsdump -h $rawfile 2>/dev/null | grep 'TSTOPF' | grep -E -o '[0-9][.][0-9]+([E][\-][0-9][0-9])?' | sed -e 's/[E]+*/\\*10\\^/'` 121 128 if [ "$tstarti" == "" ] || [ "$tstopi" == "" ] || [ "$tstartf" == "" ] || [ "$tstopf" == "" ] 122 129 then -
trunk/DataCheck/Processing/FillDrsTemp.sh
r18321 r18708 35 35 getdates 6 36 36 fi 37 37 38 38 39 … … 99 100 if ! [ -e $rawfile ] 100 101 then 101 printprocesslog "ERROR: "$rawfile" not found." 102 if [ $runnumber -lt $checknight ] 103 then 104 printprocesslog "WARN "$rawfile" not found. "$night" "$checknight 105 else 106 printprocesslog "INFO "$rawfile" not found." 107 fi 102 108 continue 103 109 fi … … 112 118 mjdrefraw=`$factpath/fitsdump -h $rawfile 2>/dev/null | grep 'MJDREF' | grep -E -o '[0-9]{5}'` 113 119 tstarti=`$factpath/fitsdump -h $rawfile 2>/dev/null | grep 'TSTARTI' | grep -E -o '[0-9]{5}'` 114 tstartf=`$factpath/fitsdump -h $rawfile 2>/dev/null | grep 'TSTARTF' | grep -E -o ' 0[.][0-9]+'`120 tstartf=`$factpath/fitsdump -h $rawfile 2>/dev/null | grep 'TSTARTF' | grep -E -o '[0-9][.][0-9]+([E][\-][0-9][0-9])?' | sed -e 's/[E]+*/\\*10\\^/'` 115 121 tstopi=`$factpath/fitsdump -h $rawfile 2>/dev/null | grep 'TSTOPI' | grep -E -o '[0-9]{5}'` 116 tstopf=`$factpath/fitsdump -h $rawfile 2>/dev/null | grep 'TSTOPF' | grep -E -o ' 0[.][0-9]+'`122 tstopf=`$factpath/fitsdump -h $rawfile 2>/dev/null | grep 'TSTOPF' | grep -E -o '[0-9][.][0-9]+([E][\-][0-9][0-9])?' | sed -e 's/[E]+*/\\*10\\^/'` 117 123 if [ "$tstarti" == "" ] || [ "$tstopi" == "" ] || [ "$tstartf" == "" ] || [ "$tstopf" == "" ] 118 124 then -
trunk/DataCheck/Processing/FillEffectiveOn.sh
r18321 r18708 37 37 38 38 39 39 40 printprocesslog "INFO processing the following night(s): "${dates[@]} 40 41 echo `date`": processing the following night(s): "${dates[@]} >> $logfile 2>&1 … … 95 96 if ! [ -e $rawfile ] 96 97 then 97 printprocesslog "ERROR: "$rawfile" not found." 98 if [ $runnumber -lt $checknight ] 99 then 100 printprocesslog "WARN "$rawfile" not found." 101 else 102 printprocesslog "INFO "$rawfile" not found." 103 fi 98 104 continue 99 105 fi … … 101 107 mjdrefraw=`$factpath/fitsdump -h $rawfile 2>/dev/null | grep 'MJDREF' | grep -E -o '[0-9]{5}'` 102 108 tstarti=`$factpath/fitsdump -h $rawfile 2>/dev/null | grep 'TSTARTI' | grep -E -o '[0-9]{5}'` 103 tstartf=`$factpath/fitsdump -h $rawfile 2>/dev/null | grep 'TSTARTF' | grep -E -o ' 0[.][0-9]+'`109 tstartf=`$factpath/fitsdump -h $rawfile 2>/dev/null | grep 'TSTARTF' | grep -E -o '[0-9][.][0-9]+([E][\-][0-9][0-9])?' | sed -e 's/[E]+*/\\*10\\^/'` 104 110 tstopi=`$factpath/fitsdump -h $rawfile 2>/dev/null | grep 'TSTOPI' | grep -E -o '[0-9]{5}'` 105 tstopf=`$factpath/fitsdump -h $rawfile 2>/dev/null | grep 'TSTOPF' | grep -E -o ' 0[.][0-9]+'`111 tstopf=`$factpath/fitsdump -h $rawfile 2>/dev/null | grep 'TSTOPF' | grep -E -o '[0-9][.][0-9]+([E][\-][0-9][0-9])?' | sed -e 's/[E]+*/\\*10\\^/'` 106 112 if [ "$tstarti" == "" ] || [ "$tstopi" == "" ] || [ "$tstartf" == "" ] || [ "$tstopf" == "" ] 107 113 then -
trunk/DataCheck/Setup/setup.fact.isdc
r18683 r18708 107 107 # further wishlist: adapt ratio automatically 108 108 109 # setup for warning/errors 110 # print warnings/errors (eg for missing files) only after a delay of few days to account for transfer 111 transferdelay=3 #days 112 checknight=`date +%Y%m%d --date="-${transferdelay}day"` 113 109 114 # setup transfer 110 115 numrsyncwuelimit=3 -
trunk/DataCheck/Setup/setup.fact.lp.data
r18694 r18708 95 95 resulttable2="AnalysisResultsNightLP" 96 96 firstnight=20121213 97 98 # setup for warning/errors 99 # print warnings/errors (eg for missing files) only after a delay of few days to account for transfer 100 transferdelay=3 #days 101 checknight=`date +%Y%m%d --date="-${transferdelay}day"` 102
Note:
See TracChangeset
for help on using the changeset viewer.