Standalone synthetic elevation and SDF scenario library extracted from Survi
Project description
surface-scenarios
Standalone synthetic elevation and 3D SDF scenario library. Ships procedural generators, bundled manifests, and lightweight loaders that return pandas DataFrames plus analytic truth functions.
Install
pip install surface-scenarios
(Python import remains survi_scenarios for compatibility.)
Environment overrides
SURVI_SCENARIO_MANIFEST: custom path for the elevation suite manifest.SURVI_SDF_MANIFEST: custom path for the SDF manifest.
Quickstart: elevation
import matplotlib.pyplot as plt
from survi_scenarios import list_elevation_scenarios, load_elevation_scenario
name = list_elevation_scenarios()[0]
ds = load_elevation_scenario(name)
print(ds.summary())
# simple surface plot
grid = ds.samples.pivot(index="y", columns="x", values="z")
plt.imshow(grid.values, origin="lower",
extent=[grid.columns.min(), grid.columns.max(),
grid.index.min(), grid.index.max()])
plt.title(name)
plt.colorbar(label="z (m)")
plt.show()
Quickstart: 3D SDF
from survi_scenarios import load_sdf_scenario
import numpy as np
sdf = load_sdf_scenario("torus_compact", seed=0)
pts = sdf.raw_surface[["x","y","z"]].to_numpy()[:5]
print("phi", sdf.truth_phi(pts))
Tests
PYTHONPATH=src pytest tests -q
Install
pip install surface-scenarios
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file surface_scenarios-0.3.1.tar.gz.
File metadata
- Download URL: surface_scenarios-0.3.1.tar.gz
- Upload date:
- Size: 27.1 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
023eb55642d0880818a8e07c07a9ff604389b4cd94ba7d5ff359342cd740dacf
|
|
| MD5 |
88df14b5b1babc4cf4f037f1b610db6d
|
|
| BLAKE2b-256 |
03f26c50b220ec75f98873268e3494391cb91a473763522ab0c740b6c9b631dc
|
File details
Details for the file surface_scenarios-0.3.1-py3-none-any.whl.
File metadata
- Download URL: surface_scenarios-0.3.1-py3-none-any.whl
- Upload date:
- Size: 35.7 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
67ea2686eed565e7112bf385e5eb223c4e4b2591c6f7457cf40306f023e0689c
|
|
| MD5 |
907002b770fcd04741e8f787e685a5fd
|
|
| BLAKE2b-256 |
cf6948e13bc07668fc53efa3226d1b5269fa6cb02b89aa166ef347ae8b4c6c06
|