Skip to main content

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 from examples/ 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


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

sphedron-0.1.2.tar.gz (32.0 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

sphedron-0.1.2-py3-none-any.whl (36.7 kB view details)

Uploaded Python 3

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

Hashes for sphedron-0.1.2.tar.gz
Algorithm Hash digest
SHA256 23cca07cfd28c8cb7b996659e4e8a418bf2981cf88886b767b81e4f540254cfd
MD5 6e11832fa2c0898975b3e6a6504e8bba
BLAKE2b-256 623eb4d609a2870e05383a17a264ce7bf0cdac396309155e65589562f2942745

See more details on using hashes here.

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

Hashes for sphedron-0.1.2-py3-none-any.whl
Algorithm Hash digest
SHA256 6f8d2b7f1b2dc60b62c9a00146bb4b0a3cc41fcbd3e279fdf59d8d08433a7e71
MD5 babeca21cb11e67361c960bf56e88b90
BLAKE2b-256 e96ced2656ae859647b5233184ffbc5d27c139c7f7712fbac5e819792386b357

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page