cf.Field.has_construct

Field.has_construct(key)[source]

Whather a metadata construct exisits.

New in version 1.7.0.

Parameters
key: str, optional

The key of the metadata construct.

Parameter example:

key='auxiliarycoordinate0'

Returns
bool

True if the construct exisits, otherwise False.

Examples:

>>> f.has_construct('dimensioncoordinate1')
True
>>> f.has_construct('dimensioncoordinate99')
False