rio-stac-io is a rasterio extension to open STAC Items and ItemCollections using native GDAL drivers including STACIT, STACTA and GTI. The library is build on top of rasterio and pystac.
https://planetlabs.github.io/rio-stac-io
pip install rio-stac-io
When using the GTI driver you will need to install gti extras. Your GDAL binaries need to be compiled with geoparquet support.
pip install rio-stac-io[gti]
from pystac_client import Client
import rio_stac_io as stacio
client = Client.open(...)
search = client.search(...)
with stacio.open(search, asset_key="data") as src:
data = src.read()This repository requires Pixi v0.52.0 or later.
git clone [email protected]:planetlabs/rio-stac-io.git
cd rio-stac-io
pixi shell -e dev
