Error reading 1D profile from 3D sigma-layered file
Closed this issue · 1 comments
clemenscremer commented
Description:
reading data from a solely sigma-layered dfsu file by specification of x and y coordinates results in an IndexError
To Reproduce
import mikeio
filename = "../tests/testdata/basin_3d.dfsu"
dfs = mikeio.open(filename)
dfs.read(x=500, y=50)
Expected behavior
return dataset for selected (closest) elements for all z-layers (as demonstrated in https://github.com/DHI/mikeio/blob/main/notebooks/Dfsu%20-%203D%20sigma-z.ipynb for the sigma-z case)
Screenshots
If applicable, add screenshots to help explain your problem.
System information:
- Python version: 3.9.13
- MIKE version: 1.0.1
ecomodeller commented