xarray-contrib / cf-xarray

an accessor for xarray objects that interprets CF attributes
https://cf-xarray.readthedocs.io/
Apache License 2.0
155 stars 39 forks source link

custom criteria keys should be listed in `keys()` #531

Open kthyng opened 2 weeks ago

kthyng commented 2 weeks ago

I think it would be useful if for a defined custom criteria vocabulary (which can have many items defined), those that have found matches for a given Dataset have keys listed in ds.cf.keys() so that it can be checked to see if a specific custom key is present in a Dataset.

What do others think?

dcherian commented 2 weeks ago

Yes, similarly https://github.com/xarray-contrib/cf-xarray/issues/375

kthyng commented 2 weeks ago

Ah, indeed! I'll see if I can get to it.