datacube.index.abstract.AbstractDatasetResource.count_product_through_time#
- abstract AbstractDatasetResource.count_product_through_time(period, archived=False, **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:
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.geopolygon – Spatial search polygon (only supported if index supports_spatial_indexes)
query (
str
|float
|int
|Range
|datetime
|Not
) – search query parameters
- Return type:
- Returns:
The product, a list of time ranges and the count of matching datasets.