Skip to content

Commit a970deb

Browse files
committed
Add wells_tata data version 2.0.0 and update geojson files
1 parent 6c05fe0 commit a970deb

4 files changed

Lines changed: 79 additions & 0 deletions

File tree

Lines changed: 41 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,41 @@
1+
import geopandas as gpd
2+
import pandas as pd
3+
from shapely.geometry import Point
4+
5+
gdf_tata_zout = gpd.GeoDataFrame(
6+
pd.DataFrame(
7+
data=[
8+
["A1", -180.0, -120.0, 1.0, 1.0, Point(0, 1)],
9+
["A2", -180.0, -120.0, 1.0, 1.0, Point(0, 1)],
10+
],
11+
columns=["Name", "botm", "top", "Q_Mm3/a", "Q_m3/d", "geometry"],
12+
),
13+
crs="EPSG:28992",
14+
)
15+
16+
# retreives top and botm from the model
17+
gdf_tata_zoet = gpd.GeoDataFrame(
18+
pd.DataFrame(
19+
data=[
20+
["B1", 1.0, 1.0, Point(0, 1)],
21+
["B2", 1.0, 1.0, Point(0, 1)],
22+
],
23+
columns=["Name", "Q_Mm3/a", "Q_m3/d", "geometry"],
24+
),
25+
crs="EPSG:28992",
26+
)
27+
28+
gdf_tata_zout.to_file("tata_zoutwaterbronnen.geojson", driver="GeoJSON")
29+
gdf_tata_zoet.to_file("tata_zoetwaterbronnen.geojson", driver="GeoJSON")
30+
31+
zoet_fp = "/workspaces/NHFLO/models/modelscripts/09pwnmodel2/data/zoetwaterbronnen_tata.shp"
32+
zout_fp = "/workspaces/NHFLO/models/modelscripts/09pwnmodel2/data/zoutwaterbronnen_tata.shp"
33+
34+
zout = gpd.read_file(zout_fp)[["Name", "botm", "top", "Q_Mm3/a", "Q_m3/d", "geometry"]]
35+
zoet = gpd.read_file(zoet_fp)[["Name", "Q_Mm3/a", "Q_m3/d", "geometry"]]
36+
37+
zoetzout = pd.concat((zoet, zout))
38+
print(f"Extent: {zoetzout.total_bounds}")
39+
40+
zout.to_file("tata_zoutwaterbronnen_unaltered.geojson", driver="GeoJSON")
41+
zoet.to_file("tata_zoetwaterbronnen_unaltered.geojson", driver="GeoJSON")
Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
{
2+
"type": "FeatureCollection",
3+
"crs": { "type": "name", "properties": { "name": "urn:ogc:def:crs:EPSG::28992" } },
4+
"features": [
5+
{ "type": "Feature", "properties": { "Name": "B1", "Q_Mm3/a": 1.0, "Q_m3/d": 1.0 }, "geometry": { "type": "Point", "coordinates": [ 102158.0, 500741.0 ] } },
6+
{ "type": "Feature", "properties": { "Name": "B2", "Q_Mm3/a": 1.0, "Q_m3/d": 1.0 }, "geometry": { "type": "Point", "coordinates": [ 102158.0, 500741.0 ] } }
7+
]
8+
}
Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
{
2+
"type": "FeatureCollection",
3+
"crs": { "type": "name", "properties": { "name": "urn:ogc:def:crs:EPSG::28992" } },
4+
"features": [
5+
{ "type": "Feature", "properties": { "Name": "A1", "botm": -180.0, "top": -120.0, "Q_Mm3/a": 1.0, "Q_m3/d": 1.0 }, "geometry": { "type": "Point", "coordinates": [ 0.0, 1.0 ] } },
6+
{ "type": "Feature", "properties": { "Name": "A2", "botm": -180.0, "top": -120.0, "Q_Mm3/a": 1.0, "Q_m3/d": 1.0 }, "geometry": { "type": "Point", "coordinates": [ 0.0, 1.0 ] } }
7+
]
8+
}

src/nhflodata/data/repository.yaml

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -208,6 +208,28 @@ data:
208208
previous_version: 0.0.0
209209
log: Based on the dawaco data of 05-03-2024 and plenty data until 23-01-2024.
210210
wells_tata:
211+
- version_nhflo: 2.0.0
212+
owner: PWN, TATA.
213+
publication_date: "2024-03-18"
214+
version_owner: 2.0.0
215+
description_short: Approximate well data of Tata Steel
216+
description_long:
217+
Wells of Tata Steel. Extraction rates are negative and infiltration
218+
positive. All rates in m3/h.
219+
contact: bas.des.tombe@pwn.nl
220+
timezone: Europe/Amsterdam
221+
extent:
222+
- 100737
223+
- 498760
224+
- 103206
225+
- 500969
226+
paths:
227+
local: wells_tata/v1.0.0
228+
nhflo_server: /data/wells_tata/v1.0.0
229+
mockup: mockup/wells_tata/v1.0.0
230+
changelog:
231+
previous_version: 1.0.0
232+
log: Moved coordinates to center of Tata.
211233
- version_nhflo: 1.0.0
212234
owner: PWN, TATA.
213235
publication_date: "2024-03-18"

0 commit comments

Comments
 (0)