Open mathause opened 1 year ago
It'd be nice to thrown in the geometry too so we can convert to a vector data cube easily: https://xvec.readthedocs.io/en/stable/
Thanks for pointing that out!
Just found out about pydata/xarray#7695, and with the xindexes air.air.weighted(mask).mean(["lat", "lon"])
raises an error so currently this is unfortunately not usable :disappointed:
With the ongoing xarray index refactor we can now promote the "abbrevs" and "names" to indexes, which can then be selected directly (instead of needing to go via the numbers).
Implementing this is not difficult - but which xarray version supports this exactly? (Certainly after v2022.09.0)