cf.Coordinate.hasprop

Coordinate.hasprop(prop)[source]

Return True if a CF property exists, otherise False.

Parameters :
prop : str

The name of the property.

Returns :
out : bool

True if the CF property exists, otherwise False.

See also

delprop, getprop, setprop

Examples

>>> f.hasprop('standard_name')
True
>>> f.hasprop('foo')
False

Previous topic

cf.Coordinate.hasattr

Next topic

cf.Coordinate.identity

This Page