Hi Steven,
it looks like you're already using the xarray representation.
Than it is just as simple as selecting the wanted data.
binary_data.sel(x=slice(150, 250), y=slice(-4600, -4500))
would select a 100x100km area in south/east Bavaria.
As you might want to select with geographic coordinates you would need
to add the lon/lat coordinates to the xarray dataset:
binary_data = binary_data.assign_coords(dict(lon=(["y", "x"],
radolan_grid_ll[...,0]), lat=(["y", "x"], radolan_grid_ll[...,1])))
Now you can select your coordinates using "where" (sel doesn't work for
2D arrays):
binary_data.where((data.lon > 11) & (data.lon < 13) & (data.lat > 47) &
(data.lat < 49), drop=True).WN.plot(x="lon", y="lat")
HTH,
Kai
Am 01.02.21 um 17:01 schrieb Steven J:
> --
> You received this message because you are subscribed to the Google
> Groups "wradlib-users" group.
> To unsubscribe from this group and stop receiving emails from it, send
> an email to
wradlib-user...@googlegroups.com
> <mailto:
wradlib-user...@googlegroups.com>.
> To view this discussion on the web, visit
>
https://groups.google.com/d/msgid/wradlib-users/eda35919-f347-4d39-9d89-d2d451addae9n%40googlegroups.com
> <
https://groups.google.com/d/msgid/wradlib-users/eda35919-f347-4d39-9d89-d2d451addae9n%40googlegroups.com?utm_medium=email&utm_source=footer>.