Skip to main content

PyEarthMesh

PyEarthMesh is a lightweight mesh generation and manipulation package for Earth science applications.

Every hiker/camper would love to have a leatherman pocket knife around because it is lightweight, versatile and reliable, sometimes life saving.

This is why I developed PyEarth, a lightweight Python package to support various Earth science tasks. I use it in my daily work, and nearly all my research papers use it in some way.

Note: PyEarth has been restructured and is now part of the PyEarthSuite ecosystem. To keep each package lightweight and focused, PyEarth has been split into several specialized packages:

  • pyearth (this package) - Core GIS operations, spatial toolbox, and system utilities
  • pyearthviz - 2D visualization utilities
  • pyearthviz3d - 3D visualization with GeoVista
  • pyearthriver - River network graph algorithms and data structures
  • pyearthmesh - Mesh generation and manipulation tools
  • pyearthhelp - Helper utilities for data access (NWIS, NLDI, GSIM) and HPC operations

This modular approach allows you to install only what you need while maintaining the ability to use all packages together.

Dependency

PyEarthMesh depends on the following packages:

Required:

Because PyEarthMesh relies on many APIs from PyEarth, it requires PyEarth to be installed. Other than that, additional dependencies maybe required based on the specific functionalities you intend to use:

  1. dggrid - For DGGRID mesh generation
  2. dggal - For DGGS mesh manipulation
  3. jigsaw and MPAS-tools - For MPAS mesh generation and manipulation

Documentation

Please refer to the documentation for details on how to get started using the PyEarth package.

Installation

The most easy way to install PyEarthMesh is via conda.

# Install from conda (recommended)
conda install pyearthmesh -c conda-forge

Content

PyEarthMesh provides general-purpose functions organized into several categories:

1. Structured Meshes

  • Square: Projected coordinate handling, grid generation, coordinate reprojection
  • LatLon: Longitude/latitude grid generation, coordinate reprojection
  • Hexagon: Projected hexagon grid generation, coordinate reprojection
  • Triangular: Projected triangular grid generation, coordinate reprojection
  • DGGRID: DGGS grid generation, coordinate reprojection
  • Healpix: Healpix grid generation, coordinate reprojection

2. Unstructured Meshes

  • TIN: Traiangular Irregular Network generation, manipulation, and analysis
  • MPAS: Model for Prediction Across Scales mesh generation, manipulation, and analysis

PyEarthMesh is part of the PyEarthSuite ecosystem, which includes several specialized packages:

Acknowledgment

This research was supported as part of the Next Generation Ecosystem Experiments-Tropics, funded by the U.S. Department of Energy, Office of Science, Office of Biological and Environmental Research at Pacific Northwest National Laboratory. The study was also partly supported by U.S. Department of Energy Office of Science Biological and Environmental Research through the Earth and Environmental System Modeling program as part of the Energy Exascale Earth System Model (E3SM) project.

License

Copyright © 2022, Battelle Memorial Institute

  1. Battelle Memorial Institute (hereinafter Battelle) hereby grants permission to any person or entity lawfully obtaining a copy of this software and associated documentation files (hereinafter "the Software") to redistribute and use the Software in source and binary forms, with or without modification. Such person or entity may use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software and may permit others to do so, subject to the following conditions:
  • Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimers.

  • Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following disclaimer in the documentation and/or other materials provided with the distribution.

  • Other than as used herein, neither the name Battelle Memorial Institute or Battelle may be used in any form whatsoever without the express written consent of Battelle.

  1. THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL BATTELLE OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.

References

Several publications describe the algorithms used in PyEarth in detail. If you make use of PyEarth in your work, please consider including a reference to the following:

PyEarth is also supporting several other Python packages/projects, including:

Metadata

Release files for pyearthmesh 0.1.2

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for pyearthmesh 0.1.2
File Size Uploaded Provenance Actions
pyearthmesh-0.1.2.tar.gz 161.9 kB Without provenance Details for pyearthmesh-0.1.2.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for pyearthmesh 0.1.2
File Interpreter ABI Platform Actions
pyearthmesh-0.1.2-py3-none-any.whl Python 3 none any Details for pyearthmesh-0.1.2-py3-none-any.whl

Total release size: 369.2 kB

Release files / pyearthmesh-0.1.2.tar.gz

Download URL pyearthmesh-0.1.2.tar.gz
Size 161.9 kB
Tags Source
SHA-256 checksum
How to use checksums
faadf4626243876d78e1bd26fa942554c80e06bd8fab1b0db59e3b6cc98b0fc8
BLAKE2b-256 checksum
How to use checksums
fc091f442b65b02c9ef6a64de9e130f5de67165d2d536cda1f29b9d7c6c3660b
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.11.18

Release files / pyearthmesh-0.1.2-py3-none-any.whl

Download URL pyearthmesh-0.1.2-py3-none-any.whl
Size 207.3 kB
Tags Python 3
SHA-256 checksum
How to use checksums
e2da57b525e474c1867245a82bbadbc4b4538c955cbdfb2efb7d06c2a47d58a0
BLAKE2b-256 checksum
How to use checksums
796a9f7be8ad0833257d7445b0837017396372c14666d59af148919fc216fff7
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.11.18

Security for pyearthmesh 0.1.2

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page