cf.Field.setattr

Field.setattr(attr, value)

Set a standard or non-standard CF attribute.

Parameters :
attr : str

The name of the attribute to set.

value :

The value for the attribute.

Returns :

None

Examples

>>> f.setattr('standard_name', 'time')
>>> f.setattr('foo', 12.5)

Previous topic

cf.Field.reverse_dims

Next topic

cf.Field.squeeze

This Page