py-ewr 2.3.8__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 +39 -12
- 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 +71 -2
- py_ewr/parameter_metadata/objective_reference.csv +911 -0
- py_ewr/parameter_metadata/parameter_sheet.csv +3249 -3443
- py_ewr/scenario_handling.py +7 -7
- py_ewr/summarise_results.py +2 -2
- {py_ewr-2.3.8.dist-info → py_ewr-2.4.0.dist-info}/METADATA +22 -22
- py_ewr-2.4.0.dist-info/RECORD +19 -0
- {py_ewr-2.3.8.dist-info → py_ewr-2.4.0.dist-info}/WHEEL +1 -1
- py_ewr/parameter_metadata/objective_reference_NB_SA_WIM_NE_LACH_BIDG_MLD_ACT.csv +0 -806
- py_ewr/parameter_metadata/parameter_sheet_NB_SA_WIM_NE_LACH_BIDG_MLD_ACT.csv +0 -3127
- py_ewr/parameter_metadata/parameter_sheet_NB_SA_WIM_NE_LACH_BIDG_MLD_ACT_added_act_env.csv +0 -3188
- py_ewr-2.3.8.dist-info/RECORD +0 -21
- {py_ewr-2.3.8.dist-info → py_ewr-2.4.0.dist-info}/licenses/LICENSE +0 -0
- {py_ewr-2.3.8.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",
|
|
@@ -66,6 +70,7 @@
|
|
|
66
70
|
"OB-WS2_P-single-F",
|
|
67
71
|
"OB-WS4_S-single-F",
|
|
68
72
|
"OB-WS4_P-single-F",
|
|
73
|
+
"BK1-single-F",
|
|
69
74
|
"BK1_S-single-F",
|
|
70
75
|
"BK1_P-single-F",
|
|
71
76
|
"OB-WL1_P-single-F",
|
|
@@ -112,8 +117,11 @@
|
|
|
112
117
|
"OB2-WHA_S-single-F",
|
|
113
118
|
"SF1_a_P-single-F",
|
|
114
119
|
"SF1_a_S-single-F",
|
|
120
|
+
"SF1_a-single-F",
|
|
115
121
|
"SF1_b_P-single-F",
|
|
116
122
|
"SF1_b_S-single-F",
|
|
123
|
+
"SF1_b-single-F",
|
|
124
|
+
"SF1_c-single-F",
|
|
117
125
|
"LF5_P-single-F",
|
|
118
126
|
"LF5_S-single-F",
|
|
119
127
|
"OB-S2-single-F",
|
|
@@ -151,6 +159,7 @@
|
|
|
151
159
|
"F2b_P-single-F",
|
|
152
160
|
"F2a_S-single-F",
|
|
153
161
|
"F2b_S-single-F",
|
|
162
|
+
"BK1-single-F",
|
|
154
163
|
"BK2a_P-single-F",
|
|
155
164
|
"BK2b_P-single-F",
|
|
156
165
|
"BK2a_S-single-F",
|
|
@@ -171,6 +180,7 @@
|
|
|
171
180
|
"F2d-single-F",
|
|
172
181
|
"F3a-single-F",
|
|
173
182
|
"F3b-single-F",
|
|
183
|
+
"OB1-single-F",
|
|
174
184
|
"OB1a-single-F",
|
|
175
185
|
"OB1b-single-F",
|
|
176
186
|
"OB2a-single-F",
|
|
@@ -178,12 +188,14 @@
|
|
|
178
188
|
"F1_a_P-single-F",
|
|
179
189
|
"F1_a_S-single-F",
|
|
180
190
|
"F1_b-single-F",
|
|
191
|
+
"F2-single-F",
|
|
181
192
|
"F2_a_P_pd-single-F",
|
|
182
193
|
"F2_a_P_sd-single-F",
|
|
183
194
|
"F2_a_S_pd-single-F",
|
|
184
195
|
"F2_a_S_sd-single-F",
|
|
185
196
|
"F2_b_pd-single-F",
|
|
186
197
|
"F2_b_sd-single-F",
|
|
198
|
+
"F3-single-F",
|
|
187
199
|
"F3_P_pd-single-F",
|
|
188
200
|
"F3_P_sd-single-F",
|
|
189
201
|
"F3_S_pd-single-F",
|
|
@@ -267,6 +279,7 @@
|
|
|
267
279
|
"SF2_S_sd-single-F",
|
|
268
280
|
"BK1_P_pd-single-F",
|
|
269
281
|
"BK1_S_sd-single-F",
|
|
282
|
+
"BF1-single-F",
|
|
270
283
|
"F1_c-single-F",
|
|
271
284
|
"F2_a-single-F",
|
|
272
285
|
"F2_c-single-F",
|
|
@@ -417,7 +430,59 @@
|
|
|
417
430
|
"F1_d_sd-single-F",
|
|
418
431
|
"F2_d-single-F",
|
|
419
432
|
"BK1_S_pd-single-F",
|
|
420
|
-
"BK1_P_sd-single-F"
|
|
433
|
+
"BK1_P_sd-single-F",
|
|
434
|
+
"Wetland1-single-F",
|
|
435
|
+
"Wetland2-single-F",
|
|
436
|
+
"Wetland3-single-F",
|
|
437
|
+
"Wetland-single-F",
|
|
438
|
+
"F4-single-F",
|
|
439
|
+
"F5-single-F",
|
|
440
|
+
"F6-single-F",
|
|
441
|
+
"F7-single-F",
|
|
442
|
+
"F8-single-F",
|
|
443
|
+
"OB-WL2_P-single-F",
|
|
444
|
+
"OB-WL2_S-single-F",
|
|
445
|
+
"F1_d-single-F",
|
|
446
|
+
"F_EarlySpring1-single-F",
|
|
447
|
+
"F_LateSpring2-single-F",
|
|
448
|
+
"F_LateSpring1-single-F",
|
|
449
|
+
"F_Autumn1-single-F",
|
|
450
|
+
"F_Autumn2-single-F",
|
|
451
|
+
"F_Autumn3-single-F",
|
|
452
|
+
"BMF5a-single-F",
|
|
453
|
+
"BMF5b-single-F",
|
|
454
|
+
"BMF6a-single-F",
|
|
455
|
+
"BMF6b-single-F",
|
|
456
|
+
"BMF6c-single-F",
|
|
457
|
+
"BMF7ai-single-F",
|
|
458
|
+
"BMF7aii-single-F",
|
|
459
|
+
"BMF7b-single-F",
|
|
460
|
+
"BMF7c-single-F",
|
|
461
|
+
"BMF7d-single-F",
|
|
462
|
+
"BMF7e-single-F",
|
|
463
|
+
"BMF8a-single-F",
|
|
464
|
+
"BMF8b-single-F",
|
|
465
|
+
"BMF10a-single-F",
|
|
466
|
+
"BMF10b-single-F",
|
|
467
|
+
"BMF12a-single-F",
|
|
468
|
+
"BMF12b-single-F",
|
|
469
|
+
"BMF13a-single-F",
|
|
470
|
+
"BMF13b-single-F",
|
|
471
|
+
"BMF13c-single-F",
|
|
472
|
+
"F_Winter-single-F",
|
|
473
|
+
"OB1-WS-single-F",
|
|
474
|
+
"OB2-WS-single-F",
|
|
475
|
+
"OB1-WL-single-F",
|
|
476
|
+
"OB2-WL-single-F",
|
|
477
|
+
"OB3-WL-single-F",
|
|
478
|
+
"OB3-WL-single-F",
|
|
479
|
+
"LF1_platypus-single-F",
|
|
480
|
+
"Wetland_proxy-single-F",
|
|
481
|
+
"OB3-WS-single-F",
|
|
482
|
+
"F_EarlySpring2-single-F"
|
|
483
|
+
|
|
484
|
+
|
|
485
|
+
|
|
421
486
|
],
|
|
422
487
|
"flow_handle_sa": [
|
|
423
488
|
"IC1_P-single-F",
|
|
@@ -534,7 +599,11 @@
|
|
|
534
599
|
"BF1_9-single-F",
|
|
535
600
|
"BF1_10-single-F",
|
|
536
601
|
"BF1_11-single-F",
|
|
537
|
-
"BF1_12-single-F"
|
|
602
|
+
"BF1_12-single-F",
|
|
603
|
+
"BF_SumAut_1-single-F",
|
|
604
|
+
"BF_SumAut_2-single-F",
|
|
605
|
+
"BF_AllYear-single-F"
|
|
606
|
+
|
|
538
607
|
],
|
|
539
608
|
"ctf_handle_multi": [
|
|
540
609
|
"CF-multigauge-F"
|