cf.Domain.get_data_axes¶
-
Domain.
get_data_axes
(key, default=<class 'ValueError'>)[source]¶ Gets the keys of the axes spanned by a construct’s data.
Specifically, returns the keys of the domain axis constructs spanned by the data of a metadata construct.
New in version (cfdm): 1.7.0
See also
- Parameters
- Returns
tuple
The keys of the domain axis constructs spanned by the data.
Examples:
>>> f.set_data_axes(['domainaxis0', 'domainaxis1']) >>> f.get_data_axes() ('domainaxis0', 'domainaxis1') >>> f.del_data_axes() ('domainaxis0', 'domainaxis1') >>> print(f.del_dataxes(None)) None >>> print(f.get_data_axes(default=None)) None