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:
- Returns:
- Raises:
exceptions.UnknownDimensionError – If a dimension with the given name is not present in the array.
exceptions.UnknownComponentError – If the given dimension does not contain the given component.