Open
Description
This is kind of inspired by the way we handle weights.
The weights must be DataArrays
for xarray
, but cf_xarray
allows strings so we can do cf.weighted('volume')
.
How about introducing boolean expressions in cf.where
similarly to pandas query?
That would allow to do ds.cf.where('longitude > 0')
or ds.cf.where('sea_binary_mask')
.