cfdm.core.Domain.set_data_axes¶
-
Domain.
set_data_axes
(axes, key)[source]¶ Sets domain axis constructs spanned by the construct data.
New in version (cfdm): 1.7.0
See also
data
,del_data_axes
,get_data
,get_data_axes
,has_data_axes
- Parameters
- axes: sequence of
str
The identifiers of the domain axis constructs spanned by the data of the field or of a metadata construct.
- Parameter example:
axes='domainaxis1'
- Parameter example:
axes=['domainaxis1']
- Parameter example:
axes=['domainaxis1', 'domainaxis0']
- key:
str
Specify a metadata construct.
- Parameter example:
key='domainancillary1'
- axes: sequence of
- Returns
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(None)) None