xray.DataArray.select

DataArray.select(*names)

Returns a new DataArray with only the named variables, as well as this DataArray’s array variable (and all associated coordinates).

See also

Dataset.select