DHI / mikeio

Read, write and manipulate dfs0, dfs1, dfs2, dfs3, dfsu and mesh files.
https://dhi.github.io/mikeio
BSD 3-Clause "New" or "Revised" License
136 stars 53 forks source link

Dfs2 area subset #603

Closed ecomodeller closed 9 months ago

ecomodeller commented 9 months ago

.sel()

Subsetting using .sel() with a slice in x, y or both should return a new dataset with an appropriate Grid2D

image ☹️

.isel()

Using .isel() works as expected, but it is more convenient to work directly with physical coordinates. image 🙂