datacube.Datacube.find_datasets#
- Datacube.find_datasets(ensure_location=False, dataset_predicate=None, like=None, limit=None, **search_terms)[source]#
Search the index and return all datasets for a product matching the search terms.
- Parameters:
ensure_location (
bool) – only return datasets that have locationsdataset_predicate (
Callable[[Dataset],bool] |None) – an optional predicate to filter datasetslike (
GeoBox|Dataset|DataArray|None) –Use the output of a previous
load()to load data into the same spatial grid and resolution (i.e.odc.geo.geobox.GeoBoxor an xarray Dataset or DataArray). E.g.:pq = dc.load(product="ls5_pq_albers", like=nbar_dataset)
limit (
int|None) – if provided, limit the maximum number of datasets returnedsearch_terms (
str|float|int|Range|datetime|Iterable[str|Geometry] |Not) – seedatacube.api.query.Query
- Return type:
- Returns:
list of datasets