datacube.Datacube.group_datasets

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

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

Parameters:
  • datasets – a list of datasets, typically from find_datasets()
  • group_by (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:

xarray.DataArray

See also

find_datasets(), load_data(), query_group_by()