cdms2.variable:DatasetVariable

DatasetVariable.createattribute(self, name, value)

Create an attribute and set its name to value.