semantique.datacube.GeotiffArchive.retrieve

semantique.datacube.GeotiffArchive.retrieve#

GeotiffArchive.retrieve(*reference, extent)[source]#

Retrieve a data layer from the EO data cube.

Parameters:
  • *reference – The index of the data layer in the layout of the EO data cube.

  • extent (xarray.DataArray) – Spatio-temporal extent in which the data should be retrieved. Should be given as an array with a temporal dimension and two spatial dimensions, such as returned by parse_extent. The retrieved subset of the EO data cube will have the same extent.

Returns:

xarray.DataArray – The retrieved subset of the EO data cube.