def has_variable_attribute(var_id,name): """determines if the a cmor variable has an attribute Usage: cmor.het_variable_attribute(name) Where: var_id: is cmor variable id name: is the name of the attribute Returns True if the dataset has the attribute, False otherwise """ test = _cmor.has_variable_attribute(var_id,name) if test == 0 : return True else: return False
def has_variable_attribute(var_id, name): """determines if the a cmor variable has an attribute Usage: cmor.het_variable_attribute(name) Where: var_id: is cmor variable id name: is the name of the attribute Returns True if the dataset has the attribute, False otherwise """ test = _cmor.has_variable_attribute(var_id, name) if test == 0: return True else: return False