semantique.processor.arrays.Array.extract

Contents

semantique.processor.arrays.Array.extract#

Array.extract(dimension, component=None, **kwargs)[source]#

Apply the extract verb to the array.

The extract verb extracts coordinate labels of a dimension as a new array.

Parameters:
  • dimension (str) – Name of the dimension to be extracted.

  • component (str, optional) – Name of a specific component of the dimension coordinates to be extracted, e.g. year, month or day for temporal dimension coordinates.

  • **kwargs – Ignored.

Returns:

xarray.DataArray

Raises: