-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathluts.py
148 lines (146 loc) · 6.45 KB
/
luts.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
era_lookup = {
'1976_2005' : 'historical',
'2016_2045' : 'early_century',
'2046_2075' : 'mid_century',
'2071_2100' : 'late_century',
}
stat_vars_dict = {
"dh3" : {
"category" : "duration",
"code_base" : "mhit",
"difference_method" : "ratio",
"statistic_description" : "Annual maximum of 7-day moving average flows. Compute the maximum of a 7-day moving average flow for each year. DH3 is the median of these values (cubic feet per second - temporal)."
},
"dh15" : {
"category" : "duration",
"code_base" : "mhit",
"difference_method" : "ratio",
"statistic_description" : "High flow pulse duration. Compute the average duration for flow events with flows above a threshold equal to the 75th percentile value for each year in the flow record. DH15 is the median of the yearly average durations (days/year - temporal)."
},
"dl3" : {
"category" : "duration",
"code_base" : "mhit",
"difference_method" : "ratio",
"statistic_description" : "Annual minimum of 7-day moving average flow. Compute the minimum of a 7-day moving average flow for each year. DL3 is the median of these values (cubic feet per second - temporal)."
},
"dl16" : {
"category" : "duration",
"code_base" : "mhit",
"difference_method" : "ratio",
"statistic_description" : "Low flow pulse duration. Compute the average pulse duration for each year for flow events below a threshold equal to the 25th percentile value for the entire flow record. DL16 is the median of the yearly average durations (days/year - temporal)."
},
"fh1" : {
"category" : "frequency",
"code_base" : "mhit",
"difference_method" : "absolute",
"statistic_description" : "High flood pulse count. Compute the average number of flow events with flows above a threshold equal to the 75th percentile value for the entire flow record. FH1 is the median number of events (number of events/year - temporal)."
},
"fl1" : {
"category" : "frequency",
"code_base" : "mhit",
"difference_method" : "absolute",
"statistic_description" : "Low flood pulse count. Compute the average number of flow events with flows below a threshold equal to the 25th percentile value for the entire flow record. FL1 is the median number of events (number of events/year - temporal)."
},
"fl3" : {
"category" : "frequency",
"code_base" : "mhit",
"difference_method" : "absolute",
"statistic_description" : "Frequency of low pulse spells. Compute the average number of flow events with flows below a threshold equal to 5 percent of the mean flow value for the entire flow record. FL3 is the median number of events (number of events/year - temporal)."
},
"ma12" : {
"category" : "magnitude",
"code_base" : "mhit",
"difference_method" : "ratio",
"statistic_description" : "Mean of monthly flow values for January."
},
"ma13" : {
"category" : "magnitude",
"code_base" : "mhit",
"difference_method" : "ratio",
"statistic_description" : "Mean of monthly flow values for February."
},
"ma14" : {
"category" : "magnitude",
"code_base" : "mhit",
"difference_method" : "ratio",
"statistic_description" : "Mean of monthly flow values for March."
},
"ma15" : {
"category" : "magnitude",
"code_base" : "mhit",
"difference_method" : "ratio",
"statistic_description" : "Mean of monthly flow values for April."
},
"ma16" : {
"category" : "magnitude",
"code_base" : "mhit",
"difference_method" : "ratio",
"statistic_description" : "Mean of monthly flow values for May."
},
"ma17" : {
"category" : "magnitude",
"code_base" : "mhit",
"difference_method" : "ratio",
"statistic_description" : "Mean of monthly flow values for June."
},
"ma18" : {
"category" : "magnitude",
"code_base" : "mhit",
"difference_method" : "ratio",
"statistic_description" : "Mean of monthly flow values for July."
},
"ma19" : {
"category" : "magnitude",
"code_base" : "mhit",
"difference_method" : "ratio",
"statistic_description" : "Mean of monthly flow values for August."
},
"ma20" : {
"category" : "magnitude",
"code_base" : "mhit",
"difference_method" : "ratio",
"statistic_description" : "Mean of monthly flow values for September."
},
"ma21" : {
"category" : "magnitude",
"code_base" : "mhit",
"difference_method" : "ratio",
"statistic_description" : "Mean of monthly flow values for October."
},
"ma22" : {
"category" : "magnitude",
"code_base" : "mhit",
"difference_method" : "ratio",
"statistic_description" : "Mean of monthly flow values for November."
},
"ma23" : {
"category" : "magnitude",
"code_base" : "mhit",
"difference_method" : "ratio",
"statistic_description" : "Mean of monthly flow values for December."
},
"ra1" : {
"category" : "rate_of_change",
"code_base" : "mhit",
"difference_method" : "ratio",
"statistic_description" : "Rise rate. Compute the change in flow for days in which the change is positive for the entire flow record. RA1 is the median of these values (cubic feet per second/day - temporal)."
},
"ra3" : {
"category" : "rate_of_change",
"code_base" : "mhit",
"difference_method" : "ratio",
"statistic_description" : "Fall rate. Compute the change in flow for days in which the change is negative for the entire flow record. RA3 is the median of these values (cubic feet per second/day - temporal)."
},
"th1" : {
"category" : "timing",
"code_base" : "mhit",
"difference_method" : "absolute",
"statistic_description" : "Julian date of annual maximum. Determine the Julian date that the maximum flow occurs for each year. TH1 is the median of these values (Julian day - temporal)."
},
"tl1" : {
"category" : "timing",
"code_base" : "mhit",
"difference_method" : "absolute",
"statistic_description" : "Julian date of annual minimum. Determine the Julian date that the minimum flow occurs for each water year. TL1 is the median of these values (Julian day - temporal)."
},
}