xray.DataArray.sel

DataArray.sel(**indexers)

Return a new DataArray whose dataset is given by selecting index labels along the specified dimension(s).