cf.Variable.hasprop

Variable.hasprop(prop)[source]

Return True if a CF property exists, otherise False.

See also

delprop, getprop, setprop

Examples 1:
>>> x = f.hasprop('standard_name')
Parameters:
prop : str

The name of the property.

Returns:
out : bool

True if the CF property exists, otherwise False.