xarray.Dataset.thin#

Dataset.thin(indexers=None, **indexers_kwargs)[source]#

Returns a new dataset with each array indexed along every n-th value for the specified dimension(s)

Parameters
  • indexers (dict or int) – A dict with keys matching dimensions and integer values n or a single integer n applied over all dimensions. One of indexers or indexers_kwargs must be provided.

  • **indexers_kwargs ({dim: n, ...}, optional) – The keyword arguments form of indexers. One of indexers or indexers_kwargs must be provided.