cf.DomainAncillary.attributes

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

Attributes which are not CF properties.

Parameters:

attrs : dict, optional

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

copy
: bool, optional

If True then the values in the returned dictionary are deep copies of the domain ancillary’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'}