xdas.DataMapping.isel#

DataMapping.isel(indexers=None, **indexers_kwargs)[source]#

Perform index 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.isel for more details.

Parameters:
  • indexers (dict, optional) – A dict with keys matching dimensions and values given by integers, slice objects or arrays.

  • **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