xarray.register_dataarray_accessor

xarray.register_dataarray_accessor(name)

Register a custom accessor on xarray.DataArray objects.

Parameters:

name : str

Name under which the accessor should be registered. A warning is issued if this name conflicts with a preexisting attribute.