def getAttribute(self, attributeName, variableName, *args): """ Get the value of a global or variable attribute. Returns the attribute value, as an int, float, or 1-d numpy array. attributeName String name of the attribute. variableName: String name of the variable. If None, get a global attribute. args optional default value if the attribute is not found. """ if (self.noncd): return None else: return CdunifFormatHandler.getAttribute(self, attributeName, variableName, *args)