semantique.ArrayProxy.extract#
- ArrayProxy.extract(dimension, component=None, **kwargs)[source]#
Extract 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 – Additional keyword arguments passed on to
Array.extract
.
- Returns:
Examples
>>> import semantique as sq >>> sq.entity("water").extract("time") >>> sq.entity("water").extract("time", "year")