From geodataframe to mesh
.. image:: https://img.shields.io/github/workflow/status/deltares/pandamesh/ci?style=flat-square :target: https://github.com/deltares/pandamesh/actions?query=workflows%3Aci .. image:: https://img.shields.io/codecov/c/github/deltares/pandamesh.svg?style=flat-square :target: https://app.codecov.io/gh/deltares/pandamesh .. image:: https://img.shields.io/badge/code%20style-black-000000.svg?style=flat-square :target: https://github.com/psf/black
This package translates geospatial vector data, presented as
GeoDataFrames_, to unstructured meshes using the open source high quality
- Christophe Geuzaine and Jean-François Remacle's
- Jonathan Shewchuk's
utilizing the respective Python API's, available at:
For completeness, the source code of both projects can be found at:
- https://gitlab.onelab.info/gmsh/gmsh, under
These APIs are wrapped in two lightweight classes:
pandamesh.GmshMesher. Both are initialized with a GeoDataFrame defining
the geometry features of the mesh. During initialization, geometries are
checked for overlaps and intersections, as the mesh generators cannot deal with
these. Generated meshes are returned as two numpy arrays: the coordinates of
the vertices, and the connectivity of the mesh faces to these vertices (as is
usual_ for many unstructured grid representations).
GeoPandas is not suited for geometries that "wrap around" around the world. Consequently, this package cannot generate meshes for e.g. a sphere.
.. code:: console
pip install pandamesh
.. image:: https://img.shields.io/github/workflow/status/deltares/pandamesh/docs?style=flat-square :target: https://deltares.github.io/pandamesh/
.. _geopandas: https://geopandas.org/ .. _GeoDataFrames: https://geopandas.org/en/stable/docs/reference/api/geopandas.GeoDataFrame.html .. _Gmsh: https://gmsh.info/ .. _Triangle: https://www.cs.cmu.edu/~quake/triangle.html .. _usual: https://ugrid-conventions.github.io/ugrid-conventions/
Release history Release notifications | RSS feed
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Hashes for pandamesh-0.1.0-py3-none-any.whl