eumap.datasets.eo.utils.STACIndex

class STACIndex(catalog, index_dir='stac_index', verbose=False)[source]

Bases: object

Enable full-text search for static SpatioTemporal Asset Catalogs (STAC) using whoosh.

Parameters
  • catalog (Catalog) – STAC catalog instance pystac.catalog.Catalog.

  • index_dir – Output folder to store the whoosh index files.

  • verbose – Use True to print the progress of all steps.

Methods

search

Full-text Search over the title and / or description of the collections.

search(query, field='title')[source]

Full-text Search over the title and / or description of the collections.

Parameters
  • query – Search text.

  • field – Can be title or description.