xarray.DataArray.pr.loc

DataArray.pr.loc

Attribute for location-based indexing like xr.DataArray.loc, but also supports short aliases like area and translates them into the long names including the corresponding category-set.