Polyhedral meshes on the unit sphere
Project description
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
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 sphedron-0.1.2.tar.gz.
File metadata
- Download URL: sphedron-0.1.2.tar.gz
- Upload date:
- Size: 32.0 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/2.3.2 CPython/3.13.11 Linux/6.12.74-gentoo-x86_64
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
23cca07cfd28c8cb7b996659e4e8a418bf2981cf88886b767b81e4f540254cfd
|
|
| MD5 |
6e11832fa2c0898975b3e6a6504e8bba
|
|
| BLAKE2b-256 |
623eb4d609a2870e05383a17a264ce7bf0cdac396309155e65589562f2942745
|
File details
Details for the file sphedron-0.1.2-py3-none-any.whl.
File metadata
- Download URL: sphedron-0.1.2-py3-none-any.whl
- Upload date:
- Size: 36.7 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/2.3.2 CPython/3.13.11 Linux/6.12.74-gentoo-x86_64
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
6f8d2b7f1b2dc60b62c9a00146bb4b0a3cc41fcbd3e279fdf59d8d08433a7e71
|
|
| MD5 |
babeca21cb11e67361c960bf56e88b90
|
|
| BLAKE2b-256 |
e96ced2656ae859647b5233184ffbc5d27c139c7f7712fbac5e819792386b357
|