datacube.index._datasets.DatasetResource.count_product_through_time

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

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

Will raise an error if the search terms match more than one product.

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

list[(str, list[(datetime.datetime, datetime.datetime), int)]]