Commit 1ef1ea94 authored by Turner, Sean's avatar Turner, Sean
Browse files

SETs and elevation interpolation

parent 5d930565
Loading
Loading
Loading
Loading
+17 −13
Original line number Diff line number Diff line
@@ -32,6 +32,8 @@ class ReservoirData:
    object_type: str
    capacity: float
    initial_storage: float
    set_storage: list[float]
    set_elevation: list[float]
    max_release: float
    min_release: float
    catchment_inflow: list[float]
@@ -64,18 +66,18 @@ simulation_orders = {
    "DaleHollow": 2,
    "WolfCreek_Celina": 3,
    "DaleHollow_Celina": 4,
    "Celina": 4,
    "Celina_CordellHull": 5,
    "CordellHull": 6,
    "CordellHull_OldHickory" : 7,
    "CenterHill": 8,
    "CenterHill_OldHickory" : 9,
    "OldHickory": 10,
    "OldHickory_Cheatham": 11,
    "JPercyPriest": 12,
    "JPercyPriest_Cheatham": 13,
    "Cheatham": 14,
    "Barkley": 15
    "Celina": 5,
    "Celina_CordellHull": 6,
    "CordellHull": 7,
    "CordellHull_OldHickory" : 8,
    "CenterHill": 9,
    "CenterHill_OldHickory" : 10,
    "OldHickory": 11,
    "OldHickory_Cheatham": 12,
    "JPercyPriest": 13,
    "JPercyPriest_Cheatham": 14,
    "Cheatham": 15,
    "Barkley": 16
}

# Read the reservoir configuration
@@ -93,7 +95,9 @@ for name, specs in config_dict.items():
        reservoir_dict[name] = ReservoirData(
            **specs,
            catchment_inflow=pd.read_csv(f"time_series/{name}.csv")['catchment_inflow'].tolist(),
            target_release=pd.read_csv(f"time_series/{name}.csv")['target_release'].tolist()
            target_release=pd.read_csv(f"time_series/{name}.csv")['target_release'].tolist(),
            set_storage = pd.read_csv(f"storage_elevation_tables/{name}.csv")['storage_Mm3'].tolist(),
            set_elevation = pd.read_csv(f"storage_elevation_tables/{name}.csv")['elevation_m'].tolist(),
        )
    elif specs['object_type'] == 'river':
        river_dict[name] = RiverData(
+24 −0
Original line number Diff line number Diff line
elevation_m,storage_Mm3
91.4,10
106.7,511
107,548
107.3,595
107.6,658
107.9,723
108,739
108.1,756
108.1,772
108.2,788
108.3,805
108.4,821
108.4,838
108.5,854
108.6,871
108.7,887
108.7,904
108.8,920
108.9,937
109,954
109,971
114.3,2125
115.8,2460
+78 −0
Original line number Diff line number Diff line
elevation_m,storage_Mm3
187.5,980
187.8,998
188.1,1015
188.4,1033
188.7,1051
189,1070
189.3,1088
189.6,1106
189.9,1125
190.2,1144
190.5,1163
190.8,1182
191.1,1201
191.4,1221
191.7,1240
192,1260
192.3,1280
192.6,1300
192.9,1320
193.2,1340
193.5,1361
193.9,1381
194.2,1402
194.5,1423
194.8,1444
195.1,1465
195.4,1486
195.7,1508
196,1529
196.3,1551
196.6,1573
196.9,1595
197.2,1617
197.5,1640
197.8,1662
198.1,1685
198.4,1708
198.7,1731
199,1754
199.3,1778
199.6,1801
199.9,1825
200.3,1849
200.6,1873
200.9,1897
201.2,1921
201.5,1946
201.8,1970
202.1,1995
202.4,2020
202.7,2045
203,2070
203.3,2096
203.6,2121
203.9,2147
204.2,2173
204.5,2199
204.8,2225
205.1,2252
205.4,2278
205.7,2305
206,2332
206.3,2359
206.7,2386
207,2413
207.3,2441
207.6,2468
207.9,2496
208.2,2524
208.5,2552
208.8,2581
209.1,2609
209.4,2638
209.7,2667
210,2696
210.3,2725
213.4,3017
+46 −0
Original line number Diff line number Diff line
elevation_m,storage_Mm3
109.1,17
110.6,20
110.9,23
111.3,26
111.6,29
111.9,32
112.2,35
112.5,39
112.8,43
113.1,47
113.4,51
113.7,55
114,60
114.3,64
114.6,69
114.9,74
115.2,80
115.5,85
115.8,91
116.1,97
116.4,104
116.7,111
117,119
117.3,128
117.7,137
118,148
118.3,159
118.6,172
118.9,185
119.2,199
119.5,214
119.8,230
120.1,247
120.4,264
120.7,283
121,303
121.3,323
121.6,345
121.9,367
122.2,390
122.5,413
122.8,438
123.1,463
125,685
128,1223
+64 −0
Original line number Diff line number Diff line
elevation_m,storage_Mm3
138.4,23
138.7,25
139,26
139.3,28
139.6,31
139.9,33
140.2,35
140.5,37
140.8,39
141.1,42
141.4,44
141.7,47
142,49
142.3,52
142.6,55
143,58
143.3,61
143.6,64
143.9,67
144.2,70
144.5,74
144.8,78
145.1,82
145.4,86
145.7,90
146,95
146.3,99
146.6,104
146.9,110
147.2,115
147.5,121
147.8,127
148.1,133
148.4,140
148.7,147
149,154
149.4,162
149.7,171
150,179
150.3,188
150.6,198
150.9,208
151.2,218
151.5,229
151.8,241
152.1,253
152.4,265
152.7,278
153,291
153.3,305
153.6,320
153.9,335
154.2,350
154.5,367
154.8,383
155.1,401
155.4,419
155.8,438
156.1,457
156.4,477
156.7,497
157,519
157.3,541
Loading