xarray.DataArray.cf.keys¶
- DataArray.cf.keys()¶
Utility function that returns valid keys for .cf[].
This is useful for checking whether a key is valid for indexing, i.e. that the attributes necessary to allow indexing by that key exist.
- Returns:
- set
Set of valid key names that can be used with __getitem__ or .cf[key].