cf-xarray icon indicating copy to clipboard operation
cf-xarray copied to clipboard

exclude bounds variables in methods

Open dcherian opened this issue 3 years ago • 0 comments

We exclude the bounds variables in getitem for e.g. ds.cf["longitude"] will skip the lon_bounds variable if it has attrs["units"] = "degrees_east".

We should also do it for ds.cf.isel(longitude=...). This raises an error because it tries to slice along lon_bounds too.

dcherian avatar Jul 02 '21 17:07 dcherian