The repository has not been cloned yet. Run the following command first
to clone the repo, check out the target commit, and install dependencies:
bash
bash /setup_files/setup.sh
The code will then be available at /testbed.
You are working on the repository DHI/mikeio (instance: DHI__mikeio-394).
The code is located in /testbed.
##376 Dfsu: single element spatial selection yields ValueError
Description
Performing a spatial selection with a Polygon that covers only a single element, the dfs.read() method throws a ValueError "Number of named dimensions does not equal data ndim",while ds.sel() method results in a GeometryPoint2D Dataset.
To Reproduce
In [13) >> https://github.com/DHI/mikeio/blob/dfsu_area_selection/notebooks/spatial_Selection_Element_IDs.ipynb
Expected behavior
consistent output of a GeometryPoint2D Dataset.