Sphedron: Polyhedral meshes on the sphere
A python package for creating refinable polyhedral meshes on the sphere. The refinement is either rectangle or triangle based.
This was developed as a component of Graph Neural Networks (GNN) for Geospatial ML projects, and it's designed with that in mind.
The package implements:
- Icosphere
- Octasphere
- Cubesphere
- Uniform Latitude/Longitude
It is also straightforward to extend it to include other triangular/rectangular meshes.
You can find code examples in the examples/ folder.
To understand the inner workings of a mesh and how it is refined, refer to the Icosphere tutorial.
Requirements
- python >= 3.10
- numpy
- scipy (nearest neighbor query)
- trimesh (radius query)
Optional dependencies:
- cartopy (plots)
- shapely (land mask feature)
Install
pip install .
Using notebooks in ReadTheDocs
This project's Sphinx docs can render Jupyter notebooks via nbsphinx.
- Notebook sources live under
docs/source/notebooks/(copied fromexamples/as needed). - The docs build defaults to not executing notebooks (it renders the saved inputs/outputs).
- To execute notebooks locally during a Sphinx build:
SPHEDRON_DOCS_EXECUTE_NOTEBOOKS=auto
Metadata
Release files for sphedron 0.1.2
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 |
|---|---|---|---|---|
| sphedron-0.1.2.tar.gz | 32.0 kB | Without provenance | Details for sphedron-0.1.2.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| sphedron-0.1.2-py3-none-any.whl | Python 3 | none | any | Details for sphedron-0.1.2-py3-none-any.whl |
Total release size: 68.6 kB
Release files / sphedron-0.1.2.tar.gz
| Download URL | sphedron-0.1.2.tar.gz |
|---|---|
| Size | 32.0 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
23cca07cfd28c8cb7b996659e4e8a418bf2981cf88886b767b81e4f540254cfd
|
|
BLAKE2b-256 checksum How to use checksums |
623eb4d609a2870e05383a17a264ce7bf0cdac396309155e65589562f2942745
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
poetry/2.3.2 CPython/3.13.11 Linux/6.12.74-gentoo-x86_64
|
Release files / sphedron-0.1.2-py3-none-any.whl
| Download URL | sphedron-0.1.2-py3-none-any.whl |
|---|---|
| Size | 36.7 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
6f8d2b7f1b2dc60b62c9a00146bb4b0a3cc41fcbd3e279fdf59d8d08433a7e71
|
|
BLAKE2b-256 checksum How to use checksums |
e96ced2656ae859647b5233184ffbc5d27c139c7f7712fbac5e819792386b357
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
poetry/2.3.2 CPython/3.13.11 Linux/6.12.74-gentoo-x86_64
|
Security for sphedron 0.1.2
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.