cf.CoordinateBounds.hasprop

CoordinateBounds.hasprop(prop)[source]

Return True if a CF property exists, otherise False.

See also

delprop, getprop, setprop

Parameters:
prop : str

The name of the property.

Returns:
out : bool

True if the CF property exists, otherwise False.

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

Previous topic

cf.CoordinateBounds.hasattr

Next topic

cf.CoordinateBounds.identity

This Page