semantique.ArrayProxy.assign_time

semantique.ArrayProxy.assign_time#

ArrayProxy.assign_time(component=None, **kwargs)[source]#

Assign temporal coordinates as values to the pixels in an array.

This verb is a shortcut for first extracting the temporal dimension with the extract() verb (optionally only a specific component of that dimension, such as year or month), and then using the coordinates of this dimension as as the values to be assigned by the assign() verb.

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

  • **kwargs – Additional keyword arguments passed on to Array.assign.

Returns:

CollectionProxy

Examples

>>> import semantique as sq
>>> sq.entity("water").assign_time()
>>> sq.entity("water").assign_time("year")