cf.Field.nc_clear_group_attributes

Field.nc_clear_group_attributes()[source]

Remove the selection of properties to be written as netCDF group attributes.

New in version 1.8.6.

Returns
dict

The removed selection of properties requested for writing to netCDF group attributes.

Examples:

>>> f.nc_group_attributes()
{'comment': None}
>>> f.nc_set_group_attribute('foo')
>>> f.nc_group_attributes()
{'comment': None, 'foo': None}
>>> f.nc_set_group_attribute('foo', 'bar')
>>> f.nc_group_attributes()
{'comment': None, 'foo': 'bar'}
>>> f.nc_group_attributes(values=True)
{'comment': 'forecast comment', 'foo': 'bar'}
>>> f.nc_clear_group_attributes()
{'comment': None, 'foo': 'bar'}
>>> f.nc_group_attributes()
{}