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
Metadata
Release files for surface-scenarios 0.3.1
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| surface_scenarios-0.3.1.tar.gz | 27.1 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| surface_scenarios-0.3.1-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 62.8 kB
Release files / surface_scenarios-0.3.1.tar.gz
| Download URL | surface_scenarios-0.3.1.tar.gz |
|---|---|
| Size | 27.1 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
023eb55642d0880818a8e07c07a9ff604389b4cd94ba7d5ff359342cd740dacf
|
|
BLAKE2b-256 checksum How to use checksums |
03f26c50b220ec75f98873268e3494391cb91a473763522ab0c740b6c9b631dc
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.13.7
|
Release files / surface_scenarios-0.3.1-py3-none-any.whl
| Download URL | surface_scenarios-0.3.1-py3-none-any.whl |
|---|---|
| Size | 35.7 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
67ea2686eed565e7112bf385e5eb223c4e4b2591c6f7457cf40306f023e0689c
|
|
BLAKE2b-256 checksum How to use checksums |
cf6948e13bc07668fc53efa3226d1b5269fa6cb02b89aa166ef347ae8b4c6c06
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.13.7
|