Skip to content

StacProvider

Import path: earth2studio.data.stac.StacProvider

View source on GitHub

Documentation

A STAC API endpoint and how to turn its asset hrefs into GDAL paths.

Parameters:

  • name (str) –

    Short provider name, e.g. "planetary-computer".

  • api_url (str) –

    STAC API root URL.

  • sign (Callable[[str, Mapping[str, Any]], str], default: _sign_generic ) –

    Maps an asset href (plus the merged item/asset properties and the item's collection id) to a path GDAL can read: Planetary Computer blobs are read with GDAL's built-in SAS signing (one token per collection), Earth Search s3:// hrefs over public HTTPS. The default wraps http(s) hrefs in /vsicurl and leaves other hrefs unchanged.