datacube.index.abstract.AbstractDatasetResource.count_by_product_through_time#

abstract AbstractDatasetResource.count_by_product_through_time(period, archived=False, **query)[source]#

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

Parameters:
  • period (str) – Time range for each slice: ‘1 month’, ‘1 day’ etc.

  • archived (bool | None) – False (default): Count active datasets only. None: Count archived and active datasets. True: Count archived datasets only.

  • query (str | float | int | Range | datetime | Not) – search query parameters

Return type:

Iterable[tuple[Product, Iterable[tuple[Range, int]]]]

Returns:

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