cfdm.CellMethod.has_qualifier

CellMethod.has_qualifier(qualifier)[source]

Whether a qualifier of the cell method has been set.

New in version (cfdm): 1.7.0

Parameters
qualifier: str

The name of the qualifier.

Returns
bool

True if the qualifier has been set, otherwise False.

Examples

>>> c = cfdm.CellMethod()
>>> c.set_qualifier('where', 'land')
>>> c.has_qualifier('where')
True
>>> c.del_qualifier('where')
'land'
>>> c.has_qualifier('where')
False