py-ewr 2.3.9__py3-none-any.whl → 2.4.0__py3-none-any.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- py_ewr/data_inputs.py +6 -6
- py_ewr/evaluate_EWRs.py +168 -221
- py_ewr/model_metadata/EWR_Sitelist_FIRM_20250718.csv +11 -2
- py_ewr/observed_handling.py +22 -5
- py_ewr/parameter_metadata/ewr_calc_config.json +8 -0
- py_ewr/parameter_metadata/objective_reference.csv +911 -776
- py_ewr/parameter_metadata/parameter_sheet.csv +3249 -3325
- py_ewr/scenario_handling.py +7 -6
- py_ewr/summarise_results.py +1 -1
- {py_ewr-2.3.9.dist-info → py_ewr-2.4.0.dist-info}/METADATA +20 -20
- py_ewr-2.4.0.dist-info/RECORD +19 -0
- {py_ewr-2.3.9.dist-info → py_ewr-2.4.0.dist-info}/WHEEL +1 -1
- py_ewr-2.3.9.dist-info/RECORD +0 -19
- {py_ewr-2.3.9.dist-info → py_ewr-2.4.0.dist-info}/licenses/LICENSE +0 -0
- {py_ewr-2.3.9.dist-info → py_ewr-2.4.0.dist-info}/top_level.txt +0 -0
|
@@ -46,7 +46,7 @@ N/A,410014,11CLMOR,Colombo Creek @ Morundah,,F
|
|
|
46
46
|
410015,410015,11YNMOR,Yanco Creek @ Morundah,1,F
|
|
47
47
|
410016,410016,11FGJER,Billabong Creek at Jerilderie,1,F
|
|
48
48
|
410021,410021,11GFDAR,Murrumbidgee River at Darlington Point,1,F
|
|
49
|
-
|
|
49
|
+
410033,410033,11UBMIT,Murrumbidgee River at Mittagang,1,F
|
|
50
50
|
410040,410040,11FGMAU,Murrumbidgee River D/S Maude Weir,1,F
|
|
51
51
|
410093,410093,11GFKYW,Old Man Ck @ Kywong,1,F
|
|
52
52
|
410130,410130,11FGBLW,Murrumbidgee River D/S Balranald,1,F
|
|
@@ -84,7 +84,7 @@ ASHFDG,416006,5ASHFDG,Severn River @ Ashford,1,F
|
|
|
84
84
|
BONSHW,416007,5BONSHW,Dumaresq River @ Bonshaw Weir,1,F
|
|
85
85
|
HAYSTCK,416008,5BEARRI,Beardy River at Haystack,1,F
|
|
86
86
|
FWALLG,416010,5FWALLG,Macintyre River @ Wallangra,1,F
|
|
87
|
-
ROSEN2,416011,5ROSEN2,Dumaresq River @ Roseneath,1,F
|
|
87
|
+
ROSEN2,416011,5ROSEN2,Dumaresq River @ Roseneath (416011),1,F
|
|
88
88
|
N/A,416011,,Dumaresq River @ Roseneath,,L
|
|
89
89
|
HOLDFG,416012,5HOLDFG,Macintyre River @ Holdfast (Yelarbon Crossing),1,F
|
|
90
90
|
BOOBSND,416415A,,Macintyre River @ Booba Sands,1,F
|
|
@@ -253,3 +253,12 @@ N/A,,WMWIMM,Wimmera - Private Unreg. Irrigation,,
|
|
|
253
253
|
,__WRBC2,__WRBC2,Wimmera River System Model Node WR_BC2,,
|
|
254
254
|
,__WRMK1,__WRMK1,Wimmera River System Model Node WR_MK1,,
|
|
255
255
|
,__WRYC1,__WRYC1,Wimmera River System Model Node WR_YC1,,
|
|
256
|
+
MTWLKLD,415203,,Mt William Creek @ Lake Lonsdale Tail Gauge 415203: Downstream Flow,1,F
|
|
257
|
+
GOWANG,404224,404224,,1,F
|
|
258
|
+
406201,406201,406201,,1,F
|
|
259
|
+
MTWLKLD,415203,415203,,1,F
|
|
260
|
+
WIMLOC,415246,415246,,1,F
|
|
261
|
+
MCKENCK,415251,415251,,1,F
|
|
262
|
+
WAKJUNC,414200,414200,,1,F
|
|
263
|
+
COLGNAN,414207,414207,,1,F
|
|
264
|
+
COLGNAN,414207,414207,,35,L
|
py_ewr/observed_handling.py
CHANGED
|
@@ -168,6 +168,7 @@ class ObservedHandler:
|
|
|
168
168
|
self.calc_config_path = calc_config_path
|
|
169
169
|
self.flow_data = None
|
|
170
170
|
self.level_data = None
|
|
171
|
+
self.gauge_data =None
|
|
171
172
|
|
|
172
173
|
def process_gauges(self):
|
|
173
174
|
'''ingests a list of gauges and user defined parameters
|
|
@@ -186,10 +187,12 @@ class ObservedHandler:
|
|
|
186
187
|
# Call state API for flow and level gauge data, then combine to single dataframe
|
|
187
188
|
log.info(f'Including gauges: flow gauges: { ", ".join(flow_gauges)} level gauges: { ", ".join(level_gauges)} lake level gauges: { ", ".join(lake_level_gauges)}')
|
|
188
189
|
|
|
189
|
-
flows = gg.gauge_pull(flow_gauges, start_time_user = self.dates['start_date'], end_time_user = self.dates['end_date'], var = 'F')
|
|
190
|
-
levels = gg.gauge_pull(level_gauges, start_time_user = self.dates['start_date'], end_time_user = self.dates['end_date'], var = 'L')
|
|
191
|
-
lake_levels = gg.gauge_pull(lake_level_gauges, start_time_user=self.dates['start_date'], end_time_user=self.dates['end_date'], var='LL')
|
|
190
|
+
flows = gg.gauge_pull(flow_gauges, start_time_user = self.dates['start_date'], end_time_user = self.dates['end_date'], var = 'F' )#data_source="BOM")
|
|
191
|
+
levels = gg.gauge_pull(level_gauges, start_time_user = self.dates['start_date'], end_time_user = self.dates['end_date'], var = 'L')# data_source="BOM")
|
|
192
|
+
lake_levels = gg.gauge_pull(lake_level_gauges, start_time_user=self.dates['start_date'], end_time_user=self.dates['end_date'], var='LL')# data_source="BOM")
|
|
192
193
|
|
|
194
|
+
self.gauge_data=pd.concat([flows,levels,lake_levels])
|
|
195
|
+
|
|
193
196
|
# Clean observed data:
|
|
194
197
|
df_F = observed_cleaner(flows, self.dates)
|
|
195
198
|
df_L = observed_cleaner(levels, self.dates)
|
|
@@ -217,7 +220,21 @@ class ObservedHandler:
|
|
|
217
220
|
self.flow_data = df_F
|
|
218
221
|
self.level_data = df_L
|
|
219
222
|
|
|
220
|
-
|
|
223
|
+
def get_gauge_data(self)-> pd.DataFrame:
|
|
224
|
+
if not self.yearly_events:
|
|
225
|
+
self.process_gauges()
|
|
226
|
+
return self.gauge_data
|
|
227
|
+
|
|
228
|
+
def get_gauge_data_flow(self)-> pd.DataFrame:
|
|
229
|
+
if not self.yearly_events:
|
|
230
|
+
self.process_gauges()
|
|
231
|
+
return self.flow_data
|
|
232
|
+
|
|
233
|
+
def get_gauge_data_level(self)-> pd.DataFrame:
|
|
234
|
+
if not self.yearly_events:
|
|
235
|
+
self.process_gauges()
|
|
236
|
+
return self.level_data
|
|
237
|
+
|
|
221
238
|
def get_all_events(self)-> pd.DataFrame:
|
|
222
239
|
|
|
223
240
|
if not self.yearly_events:
|
|
@@ -379,4 +396,4 @@ class ObservedHandler:
|
|
|
379
396
|
if not self.pu_ewr_statistics:
|
|
380
397
|
self.process_gauges()
|
|
381
398
|
|
|
382
|
-
return summarise_results.summarise(self.pu_ewr_statistics , self.yearly_events)
|
|
399
|
+
return summarise_results.summarise(self.pu_ewr_statistics , self.yearly_events)
|
|
@@ -24,6 +24,7 @@
|
|
|
24
24
|
"LF1_S-single-F",
|
|
25
25
|
"LF1_P-single-F",
|
|
26
26
|
"LF2-single-F",
|
|
27
|
+
"BK-single-F",
|
|
27
28
|
"BK1-single-F",
|
|
28
29
|
"OB1-single-F",
|
|
29
30
|
"OB1_a-single-F",
|
|
@@ -42,12 +43,15 @@
|
|
|
42
43
|
"OB4_S-single-F",
|
|
43
44
|
"AC1-single-F",
|
|
44
45
|
"OB5-single-F",
|
|
46
|
+
"OB6-single-F",
|
|
47
|
+
"OB7-single-F",
|
|
45
48
|
"LF3_P-single-F",
|
|
46
49
|
"LF3_S-single-F",
|
|
47
50
|
"OB4-single-F",
|
|
48
51
|
"DSF-single-F",
|
|
49
52
|
"OB-WS3_S-single-F",
|
|
50
53
|
"OB-WS3_P-single-F",
|
|
54
|
+
"SF-single-F",
|
|
51
55
|
"SF1-single-F",
|
|
52
56
|
"LF1-single-F",
|
|
53
57
|
"OB-WS3-single-F",
|
|
@@ -113,8 +117,11 @@
|
|
|
113
117
|
"OB2-WHA_S-single-F",
|
|
114
118
|
"SF1_a_P-single-F",
|
|
115
119
|
"SF1_a_S-single-F",
|
|
120
|
+
"SF1_a-single-F",
|
|
116
121
|
"SF1_b_P-single-F",
|
|
117
122
|
"SF1_b_S-single-F",
|
|
123
|
+
"SF1_b-single-F",
|
|
124
|
+
"SF1_c-single-F",
|
|
118
125
|
"LF5_P-single-F",
|
|
119
126
|
"LF5_S-single-F",
|
|
120
127
|
"OB-S2-single-F",
|
|
@@ -427,6 +434,7 @@
|
|
|
427
434
|
"Wetland1-single-F",
|
|
428
435
|
"Wetland2-single-F",
|
|
429
436
|
"Wetland3-single-F",
|
|
437
|
+
"Wetland-single-F",
|
|
430
438
|
"F4-single-F",
|
|
431
439
|
"F5-single-F",
|
|
432
440
|
"F6-single-F",
|