datacube.index._datasets.DatasetResource.count_by_product_through_time

DatasetResource.count_by_product_through_time(period, **query)[source]

Perform a search, returning counts for each product grouped in time slices of the given period.

Parameters:
  • query (dict[str,str|float|datacube.model.Range]) –
  • period (str) – Time range for each slice: ‘1 month’, ‘1 day’ etc.
Returns:

For each matching product type, a list of time ranges and their count.

Return type:

__generator[(DatasetType, list[(datetime.datetime, datetime.datetime), int)]]