Skip to content

Commit

Permalink
add geotop and peilgebieden HHNK to data repo
Browse files Browse the repository at this point in the history
  • Loading branch information
OnnoEbbens committed Apr 15, 2024
1 parent 1373ffb commit d05c6ba
Show file tree
Hide file tree
Showing 4 changed files with 51 additions and 0 deletions.
Binary file added src/nhflodata/data/mockup/geotop/v1.5/geotop.nc
Binary file not shown.
17 changes: 17 additions & 0 deletions src/nhflodata/data/mockup/geotop/v1.5/reduce_filesize_geotop.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
import os

import nlmod
import xarray as xr
from nhflodata.get_paths import get_abs_data_path

nhflo_data_dir = r"C:\Users\oebbe\02_python\nhflo_data"
#fp_gt = os.path.join(nhflo_data_dir, 'modelbestanden_nhflozz', "geotop.nc")
geotop_path = get_abs_data_path(name="geotop", version="latest", location="get_from_env")
geotop_ds = xr.open_dataset(os.path.join(geotop_path, 'geotop.nc'), mask_and_scale=False)


# gt_ds = xr.open_dataset(fp_gt)

geotop_ds.to_netcdf(os.path.join(geotop_path, 'geotop_zip.nc'),
encoding={'strat': {'zlib': True, 'complevel': 5, 'fletcher32': True},
'lithok': {'zlib': True, 'complevel': 5, 'fletcher32': True}})
Binary file not shown.
34 changes: 34 additions & 0 deletions src/nhflodata/data/repository.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -154,3 +154,37 @@ data:
changelog:
previous_version: "0.0.0"
log: "Based on personal communication with TATA."
geotop:
- version_nhflo: "1.5" # Semantic version
owner: TNO
publication_date: "2023-02-05"
version_owner: "v01r5" # Version used by data owner
description_short: Geotop versie 1.5
description_long: Geotop versie 1.5
contact: o.ebbens@artesia-water.nl
timezone: Europe/Amsterdam
extent: [-7000, 289000, 300000, 629000] # minx, miny, maxx, maxy
paths:
local: geotop/v1.5
nhflo_server: /data/geotop/v1.5
mockup: mockup/geotop/v1.5
changelog:
previous_version: "0.0.0"
log: ""
peilgebieden_hhnk:
- version_nhflo: "1.0.0" # Semantic version
owner: HHNK
publication_date: "2023-05-22"
version_owner: "1.0.0" # Version used by data owner
description_short: Water level areas HHNK
description_long: Water level areas HHNK
contact: o.ebbens@artesia-water.nl
timezone: Europe/Amsterdam
extent: [102631, 487433, 148893, 577317] # minx, miny, maxx, maxy
paths:
local: peilgebieden_hhnk/v1.0.0
nhflo_server: /data/peilgebieden_hhnk/v1.0.0
mockup: mockup/peilgebieden_hhnk/v1.0.0
changelog:
previous_version: "0.0.0"
log: ""

0 comments on commit d05c6ba

Please sign in to comment.