The STAC API or GeoParquet URI must be publicly accessible (or gated behind standard OAuth/SAS).
# For STAC APIscurl "https://api.example.com/stac/v1/collections/my-collection"# For GeoParquetAWS_NO_SIGN_REQUEST=YES aws s3 ls s3://bucket/items.parquet
### Step 4: Open a Pull RequestFrom `CONTRIBUTING.md:26-32`, before submitting:1. Run `uv run ruff check src/` and `uv run ruff format --check src/`2. Run `uv run pytest -q` - all tests should pass3. Sign your commits with `git commit -s` (DCO)Include in your PR description:- Link to the data provider's documentation- Confirmation that the license permits inclusion- Output from the example query showing successful reads## Registering Local DatasetsFor private or experimental datasets, use `register_local()`:```pythonimport rasteretfrom pathlib import Path# Build and persist a collectioncollection = rasteret.build_from_stac( name="my_private_collection", stac_api="https://private-api.example.com/stac/v1", collection="my-collection", bbox=(77.5, 12.9, 77.7, 13.1), date_range=("2024-01-01", "2024-06-30"),)collection.export("private_collection")# Register it as a local datasetfrom rasteret.catalog import DatasetDescriptordescriptor = rasteret.register_local( dataset_id="local/my-private-collection", path="private_collection", name="My Private Collection", description="Internal field campaign data", persist=True, # Save to ~/.rasteret/datasets.local.json)print(f"Registered: {descriptor.id}")
Now it’s available via rasteret.build():
# In a new sessionimport rasteretcollection = rasteret.build( "local/my-private-collection", name="reloaded",)
Prefix dataset IDs with the provider or organization: earthsearch/sentinel-2-l2a, pc/sentinel-2-l2a, local/my-data. This avoids collisions when multiple providers host the same collection.
Provide Working Examples
Always include example_bbox and example_date_range that are known to return data. These are used in live tests and documentation.
Test End-to-End Before Contributing
Run rasteret.build() followed by get_numpy() with your example parameters. If enrichment or reads fail, the dataset isn’t ready for upstreaming.