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 (
Optional
[Callable
[[Dataset
],bool
]]) – an optional predicate to filter datasetslike (xarray.Dataset) –
Use the output of a previous
load()
to load data into the same spatial grid and resolution (i.e.odc.geo.geobox.GeoBox
or 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
|Not
) – seedatacube.api.query.Query
- Return type:
- Returns:
list of datasets