Changeset 18939 for trunk/DataCheck
- Timestamp:
- 01/28/18 20:12:20 (7 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/DataCheck/Tools/fill_r750.sh
r18937 r18939 12 12 0.0 # 5 13 13 0.0 # 6 14 26 7.1# 715 26 7.1# 816 2 71.8# 917 2 95.0 #1018 25 7.3 #1119 2 48.6#1220 237. 1#1321 24 4.0#1422 24 1.0#1523 26 3.8#1624 24 5.4 #1725 254. 3#1826 26 3.3#1927 27 8.1#2028 26 7.1#2129 2 34.9 #2230 25 9.9#2331 26 8.8#2432 281. 6#2533 27 2.1#2634 2 69.5 #2735 26 6.6#2814 260.7 # 7 15 261.2 # 8 16 267.9 # 9 17 287.0 #10 18 251.3 #11 19 251.3 #12 20 237.7 #13 21 246.6 #14 22 243.4 #15 23 267.9 #16 24 249.4 #17 25 254.8 #18 26 261.5 #19 27 274.2 #20 28 264.5 #21 29 228.9 #22 30 255.1 #23 31 269.0 #24 32 281.9 #25 33 271.4 #26 34 270.5 #27 35 267.9 #28 36 36 0.0 #29 37 246. 5#3038 246. 5#3139 28 6.9#3240 28 9.4#3341 27 8.7#3442 26 6.3#3543 25 8.4#3644 273. 8#3745 27 6.3#3846 2 75.4#3947 2 79.9 #4048 286. 2#4149 2 89.1#4250 27 6.4#4351 27 9.3#4452 2 71.8#4553 2 52.9 #46b54 2 54.3#4755 2 52.0#4856 25 5.4#4957 265. 3#5058 26 3.8#5159 26 1.3#5260 25 3.9#5361 24 2.5#5462 24 2.6#5563 2 41.5#5664 24 8.7#5765 24 8.7#5866 2 43.4#5967 24 9.3 #60b68 24 8.4#6169 26 1.3 #6270 25 7.6#6371 24 4.3#6437 246.9 #30 38 246.9 #31 39 282.8 #32 40 282.7 #33 41 272.0 #34 42 261.1 #35 43 256.0 #36 44 273.6 #37 45 273.2 #38 46 280.8 #39 47 282.9 #40 48 286.7 #41 49 290.7 #42 50 275.5 #43 51 276.1 #44 52 267.2 #45 53 246.9 #46b 54 248.1 #47 55 246.2 #48 56 253.3 #49 57 265.1 #50 58 266.2 #51 59 264.7 #52 60 257.6 #53 61 244.9 #54 62 244.7 #55 63 239.6 #56 64 244.6 #57 65 242.6 #58 66 237.1 #59 67 247.3 #60b 68 245.5 #61 69 260.3 #62 70 258.7 #63 71 248.7 #64 72 72 248.2 #65 73 24 1.6#6674 23 4.8#6775 23 4.1#6876 2 91.2 #6977 24 8.8#7078 23 3.1#7179 2 42.0#7280 22 6.2#7381 21 5.1#7482 244. 6#7583 24 6.7#7684 2 49.9#7773 245.9 #66 74 235.9 #67 75 233.2 #68 76 287.2 #69 77 243.1 #70 78 231.4 #71 79 237.8 #72 80 222.3 #73 81 214.0 #74 82 244.0 #75 83 249.6 #76 84 253.4 #77 85 85 0.0 #78 86 86 ) … … 101 101 # periods 42 and 60 are split: 102 102 # 60a 103 query="UPDATE RunInfo SET fR750Ref=2 43.4WHERE fPeriod=60 AND fNight<20170901"103 query="UPDATE RunInfo SET fR750Ref=237.1 WHERE fPeriod=60 AND fNight<20170901" 104 104 mysql --defaults-file=$sqlpw -u operator -h 10.0.100.21 $dbname -s -e "$query" 105 105 # 46a 106 query="UPDATE RunInfo SET fR750Ref=27 5WHERE fPeriod=46 AND fNight<20150716"106 query="UPDATE RunInfo SET fR750Ref=271 WHERE fPeriod=46 AND fNight<20150716" 107 107 mysql --defaults-file=$sqlpw -u operator -h 10.0.100.21 $dbname -s -e "$query" 108 108 109 zd="cos(fZenithDistanceMean/180*Pi())" 110 min="TIME_TO_SEC(TIMEDIFF(fRunStop,fRunStart))*fEffectiveOn/60" 111 cor="pow("$zd", 1.091)*exp((1-1/"$zd")*0.593)*exp(1.829*(1-"$zd"))" 109 112 110 113 # fill corrected R750 111 114 query="UPDATE RunInfo SET " 112 query=$query" fR750Cor=round(fNumThreshold750/( TIME_TO_SEC(TIMEDIFF(fRunStop,fRunStart))*fEffectiveOn/60)/pow(1/cos(fZenithDistanceMean/180*Pi())*exp(1-1/cos(fZenithDistanceMean/180*Pi())), 1.22),2) "113 query=$query" WHERE fRunTypeKey=1 AND NOT (( TIME_TO_SEC(TIMEDIFF(fRunStop,fRunStart))*fEffectiveOn/60)/pow(1/cos(fZenithDistanceMean/180*Pi())*exp(1-1/cos(fZenithDistanceMean/180*Pi())), 1.22))=0"115 query=$query" fR750Cor=round(fNumThreshold750/("$min")/("$cor"),2) " 116 query=$query" WHERE fRunTypeKey=1 AND NOT (("$min")/("$cor"))=0" 114 117 echo $query 115 118 mysql --defaults-file=$sqlpw -u operator -h 10.0.100.21 $dbname -s -e "$query"
Note:
See TracChangeset
for help on using the changeset viewer.