xarray.Dataset.cf.cf_roles¶
- Dataset.cf.cf_roles¶
Mapping cf_role names to variable names.
- Returns:
- dict
Dictionary mapping cf_role names to variable names.
References
Please refer to the CF conventions document : http://cfconventions.org/Data/cf-conventions/cf-conventions-1.8/cf-conventions.html#coordinates-metadata
Examples
>>> import cf_xarray >>> from cf_xarray.datasets import dsg >>> dsg.cf.cf_roles {'profile_id': ['profile'], 'trajectory_id': ['trajectory']}