Skip to content

Commit

Permalink
fixed testcase
Browse files Browse the repository at this point in the history
  • Loading branch information
veenstrajelmer committed Oct 13, 2023
1 parent 69547ec commit 3121c74
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 4 deletions.
6 changes: 3 additions & 3 deletions tests/examples/preprocess_hydrolib_readwritepol.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,9 +14,9 @@
dir_output = '.'

file_pli_list = [r'p:\archivedprojects\11208054-004-dcsm-fm\models\model_input\bnd_cond\pli\DCSM-FM_OB_all_20181108.pli',
r'p:\1230882-emodnet_hrsm\GTSMv5.0\data\GSHHS_high_min1000km2.ldb',
r'p:\archivedprojects\11205259-006-d-hydro-grevelingen\2Dh\model\2002\geometry\structures\Grevelingen-FM_BL_fxw.pliz',
r'p:\archivedprojects\11205258-006-kpp2020_rmm-g6\C_Work\04_randvoorwaarden\keringen\Maeslantkering\Maeslant.tek',
# r'p:\1230882-emodnet_hrsm\GTSMv5.0\data\GSHHS_high_min1000km2.ldb',
# r'p:\archivedprojects\11205259-006-d-hydro-grevelingen\2Dh\model\2002\geometry\structures\Grevelingen-FM_BL_fxw.pliz',
# r'p:\archivedprojects\11205258-006-kpp2020_rmm-g6\C_Work\04_randvoorwaarden\keringen\Maeslantkering\Maeslant.tek',
]

for file_pli in file_pli_list:
Expand Down
6 changes: 5 additions & 1 deletion tests/test_interpolate_grid2bnd.py
Original file line number Diff line number Diff line change
Expand Up @@ -243,11 +243,15 @@ def test_interp_uds_to_plipoints():
very basic test for function,
should be made more strict with learnings from workinprogress_interpolate_uds_toplipoints.py
"""

ncbnd_construct = dfmt.get_ncbnd_construct()
varn_pointname = ncbnd_construct['varn_pointname']

file_nc = dfmt.data.fm_grevelingen_map(return_filepath=True)
uds = dfmt.open_partitioned_dataset(file_nc)

gdf = gpd.GeoDataFrame(geometry=gpd.points_from_xy([51500,55000],[418800,421500]))
gdf['plipoint_name'] = ['pt_0001','pt_0002']
gdf[varn_pointname] = ['pt_0001','pt_0002']

# fig, ax = plt.subplots()
# uds.mesh2d_flowelem_bl.ugrid.plot(ax=ax)
Expand Down

0 comments on commit 3121c74

Please sign in to comment.