Skip to content

collections

Import path: earth2studio.data.stac.collections

View source on GitHub

Documentation

List a catalog's collections with their asset keys and extents.

Filtering is client-side over /collections (neither Planetary Computer nor Earth Search serve a collection-search extension).

Parameters:

  • provider (StacProvider, default: PLANETARY_COMPUTER ) –

    Catalog to list, by default PLANETARY_COMPUTER

  • bbox (Sequence[float] | None, default: None ) –

    Keep collections whose overall spatial extent intersects this [min_lon, min_lat, max_lon, max_lat] box, by default None

  • text (str | None, default: None ) –

    Case-insensitive substring matched on id and title, by default None

  • sample_assets (bool, default: True ) –

    Fetch one item per matching collection to list its asset keys (one extra request per collection), by default True

Returns:

  • list[dict[str, Any]] –

    One dict per collection with id, title, assets (sorted asset keys), bbox (overall lon/lat extent or None) and time_range (overall (start, end) datetimes, None for open).

Examples using earth2studio.data.stac.collections