Cynthium
Scientific desktop application for lunar rover traversal planning and terrain analysis, focused on the lunar south pole.
Cynthium enables loading lunar elevation data (20 m/px LOLA/LRO GeoTIFFs), defining rover traversal paths, and computing terrain statistics along those paths. It is designed for scientific use cases where map resolution, numerical accuracy, and reproducibility are critical.
Note: Cynthium is in beta. Things may break, change, or be missing. If something doesn't work or you have an idea, open an issue at github.com/osh3276/cynthium/issues.
Features
- Multi-dimensional Visualization: 2D map views and 3D terrain visualisation using GeoTIFF data (LOLA / LRO). Cursor tooltip shows raster values under the mouse.
- Layer Manager: Checkable, reorderable map layers — elevation, slope, hillshade, solar illumination (monthly/daily avg), meteor flux/number (monthly/daily avg), temperature (summer/winter seasonal), and permanently shaded regions. Automatic refresh on preset change.
- Waypoint Management: Editable waypoint table with coordinate cells and per-waypoint pause durations. Waypoints update live on the map.
- Advanced Pathfinding: A* or Dijkstra over a 16-connected grid, considering terrain slope, solar illumination, meteor flux, and temperature. Weighted cost or minimax strategy. Optional 4× bicubic upsampling for 5 m/px effective resolution.
- Rover Simulation: 4-wheel skid-steer model with stop-pivot-go navigation, PID speed controller, resistive motor model (back-EMF + Coulomb friction), and battery drain (motor power + idle draw). Configurable mass, power, friction, wheel geometry, motor torque, damping, and more.
- Battery Simulation: Motor power consumption and constant idle drain modelled over the full traverse, with remaining charge and total energy consumed in results.
- Illumination Analysis: Sun position calculation and shadow mapping for specific lunar dates and times using NASA SPICE.
- Site Management: Automated handling of lunar site rasters and data products. Data auto-downloads via pooch on first use.
- Data Export: Export manual paths, autopaths, simulation statistics, and full session settings for external analysis.
- Custom Data Import: Import GeoTIFF rasters with CRS validation, or load custom sites directly through the file picker.
Architecture
The application is organised into subpackages under cynthium.app:
| Package | Responsibility |
|---|---|
engine |
Core algorithms: pathfinding (A*, Dijkstra), illumination (sun position, shadows), rover simulation (4WD skid-steer, PID control, resistive motor model, battery drain). |
services |
High-level orchestration: site raster management, autopath validation loop, simulation lifecycle. |
ui |
PySide6 GUI: 2D map and 3D terrain views, sidebar panels, rover settings dialog, simulation results panel. |
io |
GeoTIFF reading, CSV/JSON export. |
config |
Application configuration, data paths, site presets. |
data |
Pooch-based file registry with SHA256 hashes for auto-download from GitHub releases. |
utils |
Logging and general utilities. |
Installation
Prerequisites
- Python 3.12 or newer.
- A working C/C++ compiler toolchain (required by
rasterio).
Install from source
git clone https://github.com/osh3276/cynthium.git
cd cynthium
pip install -e .
Key dependencies: PySide6, numpy, rasterio, pyqtgraph,
PyVista, spiceypy, scipy, pooch, pyproj.
Usage
Launch Cynthium:
cynthium
Or:
python -m cynthium
The main window opens with a sidebar on the left, a 2D map view in the centre, and a menu bar at the top.
Workflow
- Load a Site — Select a preset lunar site (e.g. Haworth, Shackleton rim, Nobile rim 1). A 20 m/px elevation tile loads with colour-mapped display.
- Select a Map Layer — Use the layer manager to toggle layers and switch between elevation, slope, illumination, temperature, meteor maps.
- Plan a Path — Place waypoints on the map. Click Autopath to find the optimal route (A*/Dijkstra). Tune pathfinding weights for slope, sun, meteor flux, and temperature. Editable waypoint table with per-waypoint pause durations.
- Configure the Rover — Select a preset (Curiosity, Perseverance, Apollo LRV, or Artemis SR) or open Tools → Rover Settings to adjust all parameters: mass, power, friction, rolling resistance, wheel radius, motor torque, track width, wheelbase, battery capacity, motor RPM, cruise speed, wheel inertia, motor damping, Coulomb friction, and idle drain.
- Run a Simulation — Hit Run Simulation to execute a 4-wheel skid-steer traverse with stop-pivot-go navigation, PID speed control, resistive motor model, and battery drain. Results (Path/Slope/Environment tabs) include distance, velocity, traversal time (including pauses), solar energy, battery stats, max climbable slope, and failure point.
- Inspect in 3D — Switch to the 3D Terrain View tab to see the path draped over the digital elevation model.
- Export Results — Save paths, simulation stats, or full session settings as CSV/JSON.
Troubleshooting
No path found / path too short The start or goal may be on an untraversable pixel (e.g. a shadowed crater interior). Try moving the points to a ridge or sunlit area.
Rover gets stuck on a seemingly gentle slope Max climbable slope considers three limits: traction (μ − Crr), power (P/(v·m·g)), and torque (T/(r·m·g)). Increase μ, reduce mass, increase power, or increase motor torque.
Data files not found
Cynthium will attempt to download missing files via pooch on first use.
Ensure you have an internet connection for the initial fetch.
Related Work
SEXTANT is a MATLAB-based tool with similar capabilities. Cynthium aims to provide an open-source Python alternative with a focus on extensibility, high performance, and modern GIS compatibility.
Metadata
Release files for cynthium 1.0.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| cynthium-1.0.0.tar.gz | 79.9 kB | Without provenance | Details for cynthium-1.0.0.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| cynthium-1.0.0-py3-none-any.whl | Python 3 | none | any | Details for cynthium-1.0.0-py3-none-any.whl |
Total release size: 177.0 kB
Release files / cynthium-1.0.0.tar.gz
| Download URL | cynthium-1.0.0.tar.gz |
|---|---|
| Size | 79.9 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
293775a439ddef3a36162180ab9f7171323a18ff096a93ff66c0f6f49dbbb486
|
|
BLAKE2b-256 checksum How to use checksums |
028546fa3a0f8e58f1cf288fc07b81afa4eb4156da97d257807b425b5a7686a8
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.12.3
|
Release files / cynthium-1.0.0-py3-none-any.whl
| Download URL | cynthium-1.0.0-py3-none-any.whl |
|---|---|
| Size | 97.1 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
93966e7dfc97e0a6a987f6905762bd9f40e825f60231e9ff1b118a95366eb9fc
|
|
BLAKE2b-256 checksum How to use checksums |
d4d19d99047b672905ab45e35d1e15268513d751b738f923df3d2703137af408
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.12.3
|
Security for cynthium 1.0.0
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.