xdas.DataSequence.sel#

DataSequence.sel(indexers=None, method=None, endpoint=True, **indexers_kwargs)[source]#

Perform labeled selection to each data array of the data collection.

If a selection results in a empty data array, the data array is discarded.

See DataArray.sel for more details.

Parameters:
  • indexers (dict, optional) – A dict with keys matching dimensions and values given by scalars, slices or arrays of tick labels.

  • method (str, optional) – Method to use for inexact matches. None (default) means only exact matches.

  • endpoint (bool, optional) – Whether to include the endpoint of a slice. Default is True.

  • **indexers_kwargs (dict, optional) – The keyword arguments form of integers. Overwrite indexers input if both are provided.

Returns:

The selected data collection.

Return type:

DataCollection