cf.AuxiliaryCoordinate.attributes

AuxiliaryCoordinate.attributes(attrs=None, copy=True)[source]

Inspect or change attributes which are not CF properties.

Examples 1:
>>> f.attributes()
Parameters:
attrs: dict, optional

Set auxiliary coordinate attributes from the dictionary of values. If the copy parameter is True then the values in the attrs dictionary are deep copied

clear: bool, optional

If True then delete all attributes.

copy: bool, optional

If True then the values in the returned dictionary are deep copies of the auxiliary coordinate’s attribute values. By default they are not copied.

Returns:

out: dict

Examples:
>>> f.attributes()
{}
>>> f.foo = 'bar'
>>> f.attributes()
{'foo': 'bar'}
>>> f.attributes().pop('foo')
'bar'
>>> f.attributes()
{'foo': 'bar'}
>>> f.attributes({'name': 'value'})
{'foo': 'bar', 'name': 'value'}