cf.Bounds.set_properties

Bounds.set_properties(properties, copy=True)[source]

Set properties.

New in version 3.0.0.

Parameters
properties: dict

Store the properties from the dictionary supplied.

Parameter example:

properties={'standard_name': 'altitude', 'foo': 'bar'}

copy: bool, optional

If False then any property values provided by the properties parameter are not copied before insertion. By default they are deep copied.

Returns

None

Examples

>>> f.properties()
{}
>>> f.set_properties(
...     {'standard_name': 'air_pressure', 'long_name': 'Air Pressure'})
>>> f.properties()
{'standard_name': 'air_pressure',
 'foo': 'bar',
 'long_name': 'Air Pressure'}
>>> f.set_properties({'standard_name': 'air_pressure', 'foo': 'bar'})
>>> f.properties()
{'standard_name': 'air_pressure',
 'foo': 'bar',
 'long_name': 'Air Pressure'}
>>> f.clear_properties()
{'standard_name': 'air_pressure',
 'foo': 'bar',
 'long_name': 'Air Pressure'}
>>> f.properties()
{}