Python utility code for handling spherical Voronoi Diagrams
Jupyter Notebook Python
Switch branches/tags
Nothing to show
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
docs
.gitignore
Delaunay_centroid_approach.ipynb
LICENSE
README.md
authors.txt
circumcircle.py
eme_testing.ipynb
requirements.txt -addition of requirements.txt file for sphinx readthedocs build process Nov 26, 2014
test_voronoi_utility.py
testing_spherical_Voronoi_code.ipynb Further fixes to spherical geometry, corrected Haversine distance, an… Jun 23, 2015
voronoi_utility.py

README.md

Voronoi diagrams on the surface of a Sphere

Update: Please use scipy 0.18 (scipy.spatial.SphericalVoronoi) for performing spherical Voronoi diagram calculations in Python -- the most robust version of the code is there, while this repo mostly exists for historical reasons and may contain bugs that have been patched by the collaborative work implementing the algorithm into scipy.

Note that the most robust version of this code is now in a scipy PR: https://github.com/scipy/scipy/pull/5232

Slides from PyData London 2015 presentation about this package: https://www.slideshare.net/slideshow/embed_code/key/1bKCEyHa789nBe

A Python module for obtaining Voronoi diagrams on the surfaces of spheres, including the calculation of Voronoi region surface areas. Applications may range from calculating area per lipid in spherical viruses to geographical parsing.

The documentation for the project is available here: http://py-sphere-voronoi.readthedocs.org/en/latest/voronoi_utility.html

This project is still in development and some of the algorithm weaknesses are highlighted in the above documentation.

Please cite: DOI

For contributions:

  • ensure most/all unit tests pass (run: nosetests)
  • ensure all doctests pass (run: python voronoi_utility.py)
  • if you import new modules, you may need to mock them in the Sphinx conf.py documentation file so that the docs are properly compiled by readthedocs
  • attempt to match the numpy documentation standard as closely as possible