datacube.Datacube.group_datasets#

static Datacube.group_datasets(datasets, group_by)[source]#

Group datasets along defined non-spatial dimensions (i.e. time).

Parameters:
  • datasets (Iterable[Dataset]) – a list of datasets, typically from find_datasets()

  • group_by (Union[Literal['time', 'solar_day'], GroupBy]) – Contains: - a function that returns a label for a dataset - name of the new dimension - unit for the new dimension - function to sort by before grouping

Return type:

DataArray

See also

find_datasets(), load_data(), query_group_by()