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

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

Open kthyng opened this issue 1 year ago • 2 comments

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?

kthyng avatar Aug 29 '24 19:08 kthyng

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

dcherian avatar Aug 29 '24 20:08 dcherian

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

kthyng avatar Aug 29 '24 21:08 kthyng