cf_xarray.accessor._getattr

cf_xarray.accessor._getattr(obj, attr, accessor, key_mappers, wrap_classes=False, extra_decorator=None)[source]

Common getattr functionality.

Parameters:
objDataArray, Dataset
attrName of attribute in obj that will be shadowed.
accessorHigh level accessor object: CFAccessor
key_mappersdict

dict(key_name: mapper)

wrap_classesbool

Should we wrap the return value with _CFWrappedClass? Only True for the high level CFAccessor. Facilitates code reuse for _CFWrappedClass and _CFWrapppedPlotMethods For both of those, wrap_classes is False.

extra_decoratorCallable (optional)

An extra decorator, if necessary. This is used by _CFPlotMethods to set default kwargs based on CF attributes.