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.
create_backend()
backend= to data access methods.
Parameters
An obstore credential provider, e.g.
PlanetaryComputerCredentialProvider, NasaEarthdataCredentialProvider.Cloud configuration for S3 URL rewriting and per-bucket overrides.
Convenience alias for
default_s3_config={"region": region}.Default S3Store config applied to all buckets that don’t have per-bucket overrides (e.g.
{"region": "us-west-2"}).Returns
A storage backend instance for use with data access methods.
StorageBackend Protocol
Methods
Fetch a single byte range from a URL.Parameters:
url(str): Resource URLstart(int): Byte offsetlength(int): Number of bytes to read
bytesFetch multiple byte ranges from a URL in a single request.Parameters:
url(str): Resource URLranges(list[tuple[int, int]]): List of (start, length) tuples
list[bytes]ObstoreBackend
obstore library. Wraps obstore.get_range_async / obstore.get_ranges_async.
Parameters
Any obstore store (
S3Store, HTTPStore, etc.).URL prefix to strip before passing paths to obstore. obstore expects paths relative to the store root, but rasteret works with full URLs. For example, if COG URLs look like
https://sentinel-cogs.s3.us-west-2.amazonaws.com/sentinel-s2-l2a-cogs/... and the store is HTTPStore.from_url("https://sentinel-cogs.s3.us-west-2.amazonaws.com/"), set url_prefix="https://sentinel-cogs.s3.us-west-2.amazonaws.com/".ClientConfig options forwarded to HTTPStore.from_url when constructing the store. Ignored if a pre-built store is provided.Examples
Planetary Computer
NASA Earthdata
Custom S3 Region
With CloudConfig
Custom ObstoreBackend
Custom Backend Implementation
Notes
- Backends enable authenticated access to cloud storage
create_backend()returns an auto-configured obstore backend- Implement
StorageBackendprotocol for custom I/O layers - Credential providers must be from the
obstore.authpackage - Most built-in datasets work without explicit backends
- Requester-pays datasets require valid cloud credentials