cf.Field.del_properties¶
-
Field.
del_properties
(properties)[source]¶ Remove properties.
New in version (cfdm): 1.10.0.3
See also
- Parameters
- Returns
dict
The removed property values, keyed by property name.
Examples
>>> f = cf.Field() >>> f.set_properties({'project': 'CMIP7', 'comment': 'model'}) >>> removed_properties = f.del_properties('project') >>> removed_properties {'project': 'CMIP7'} >>> f.properties() {'comment': 'model'} >>> f.set_properties(removed_properties) >>> f.properties() {'comment': 'model', 'project': 'CMIP7'} >>> f.del_properties('foo') {}