I have a small python-xarray DataArray
I call TINY
with dimensions x
,y
, and t
. TINY
represents a processed subset of a larger DataSet
I call HUGE
with dimensions x'
,y'
and t'
and variables foo
, bar
and baz
I'm looking for a way to select a Dataset from HUGE
using TINY
coordinates.(all coordinates and coordinate pairs in tiny exist in huge)
I hastily drafted up the following illustration
The selection returns a subset of HUGE
that shares the coords
of TINY
. What is returned is a DataSet
. Is there some shorthand x-array method to handle this?
.reindex_like()
will give you HUGE
's data over TINY
's coordinates - is that what you're looking for?
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With