Documentation Index
Fetch the complete documentation index at: https://mintlify.com/terrafloww/rasteret/llms.txt
Use this file to discover all available pages before exploring further.
Function Signature
Description
Build or load a local Parquet-backed collection from a STAC API. Searches STAC, parses COG headers for tile metadata, and stores everything in a local Parquet index. On subsequent calls with the same parameters, Rasteret reuses the cached index (no STAC query / header parsing), but pixel reads still fetch remote tiles unless assets are local.Parameters
Logical name for the collection.
STAC API endpoint URL.
STAC collection ID (e.g.,
"sentinel-2-l2a").Optional Rasteret data-source key used for band mapping and cloud config lookup. Defaults to collection. Use this to namespace provider-specific conventions (e.g.,
"earthsearch/sentinel-2-l2a" vs "pc/sentinel-2-l2a") and avoid collisions.Optional mapping of band code to STAC asset key. When omitted, Rasteret falls back to built-in mappings for known collections.
Optional mapping of band code to the 0-based band/sample index within a multi-sample GeoTIFF asset. Required when multiple requested bands map to the same STAC asset key (e.g., a single multi-band
"image" COG).(minx, miny, maxx, maxy) bounding box for the search.(start, end) ISO date strings.Directory for the local cache. Defaults to
~/rasteret_workspace.Rebuild even if a cache already exists.
Maximum concurrent COG header fetch operations.
Cloud configuration for URL rewriting.
Additional STAC search query parameters.
I/O backend for authenticated range reads during COG header parsing. See
create_backend().Set to
True for static STAC catalogs (no /search endpoint).Returns
A Collection object ready for spatial queries and pixel reads.
Usage Example
Related Functions
- build() - Build from a registered dataset
- build_from_table() - Build from external Parquet/GeoParquet
- Collection - Collection class reference