cdms2.variable:DatasetVariable

DatasetVariable.setattribute(name, value)

Set the attribute name to value.