cf.Field.has_data_axes

Field.has_data_axes(key=None)[source]

Whether the domain axis constructs spanned by the data of the field or of a metadata construct have been set.

New in version 1.7.0.

Parameters
key: str, optional

Specify a metadata construct, instead of the field construct.

Parameter example:

key='domainancillary1'

Returns
bool

True if domain axis constructs that span the data been set, otherwise False.

Examples:

>>> f.has_data_axes()
True
>>> f.has_data_axes(key='auxiliarycoordinate2')
False