xray.Dataset.select

Dataset.select(*names)

Returns a new dataset that contains only the named variables and their coordinates.

Parameters:

*names : str

Names of the variables to include in the returned object.

Returns:

Dataset

The returned object has the same attributes as the original. Only the names variables and their coordinates are included.