cf.AuxiliaryCoordinate.get_propertyΒΆ

AuxiliaryCoordinate.get_property(prop, default=ValueError(), bounds=False)[source]ΒΆ

Get a CF property.

New in version 3.2.0.

Parameters
prop: str

The name of the CF property.

Parameter example:

prop='long_name'

default: optional

Return the value of the default parameter if the property does not exist. If set to an Exception instance then it will be raised instead.

bounds: bool

TODO 1.8

Returns

The value of the named property or the default value, if set.

Examples:

>>> f.set_property('project', 'CMIP7')
>>> f.has_property('project')
True
>>> f.get_property('project')
'CMIP7'
>>> f.del_property('project')
'CMIP7'
>>> f.has_property('project')
False
>>> print(f.del_property('project', None))
None
>>> print(f.get_property('project', None))
None