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.

The 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 straighforward to extend it to include other triangular/rectangular meshes.

You can find code examples here:

If you're looking to implement your own rectangle/triangle based mesh:

For the full documentation:

Requirements

  • python >= 3.10
  • numpy
  • scipy (nearest neighbor query)
  • trimesh (radius query)

Optional dependencies:

  • cartopy (plots)
  • shapely (land mask feature)

Install

To understand the inner workings of a mesh and how its refined, refer to Icosphere Mesh Documentation

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.0.tar.gz (23.1 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.0-py3-none-any.whl (28.3 kB view details)

Uploaded Python 3

File details

Details for the file sphedron-0.1.0.tar.gz.

File metadata

  • Download URL: sphedron-0.1.0.tar.gz
  • Upload date:
  • Size: 23.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/2.1.3 CPython/3.13.5 Linux/6.12.31-gentoo-x86_64

File hashes

Hashes for sphedron-0.1.0.tar.gz
Algorithm Hash digest
SHA256 80e2c853cc339015d949ab32c6f8bacfc0e3743a96bda0e18ba7252e2a31aea0
MD5 91194723225f4b3f7b796350604e4ad9
BLAKE2b-256 f956c197e5ee3a7aafa38d9ae8f353bb9ba1e9c3e5988f113b3be2ff5f2008f2

See more details on using hashes here.

File details

Details for the file sphedron-0.1.0-py3-none-any.whl.

File metadata

  • Download URL: sphedron-0.1.0-py3-none-any.whl
  • Upload date:
  • Size: 28.3 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/2.1.3 CPython/3.13.5 Linux/6.12.31-gentoo-x86_64

File hashes

Hashes for sphedron-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 67d2c85d441db49e35da332483399ae750e5a234454fb240bea09e01cf3d462e
MD5 8216a99d4d94f007380cbbc1843fb64a
BLAKE2b-256 d3a0c0ed5b8ffb32edb530d959090d7f66b4324bf1b57e9b109a10b51ed1b311

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