cf.CellMeasure.clear_properties

CellMeasure.clear_properties()[source]

Remove all properties.

New in version (cfdm): 1.7.0

Returns
dict

The properties that have been removed.

Examples:

>>> f = cf.CellMeasure()
>>> 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()
{}