Skip to main content

gmpas

DOI tests PyPI python license

import gmpas

ds = gmpas.open_mpas("diag.2019-09-01_00.00.00.nc", mesh="maritime.region.nc")

ds.mpas.plot("mslp")        # cell field, filled Voronoi polygons
ds.mpas.plot("u")           # edge field, drawn on the cell faces themselves
ds.mpas.plot_mesh()         # where the mesh actually refines, in km

mesh= may be omitted when the file carries its own mesh information, or when a mesh file with a matching cell count sits beside it.

Installation

pip install gmpas            # core: geometry, caching, remap weights
pip install "gmpas[plot]"    # + matplotlib and cartopy, for plotting
conda env create -f environment.yml && conda activate gmpas && pip install -e . --no-deps

Mesh generation requires JIGSAW, MPI and PnetCDF.

gmpas --version

From a source install, pytest -q runs the test suite.

Full detail, including the extras and what each one pulls in: docs/installation.md.

Usage

gmpas info          history.2012-02-25_12.00.00.nc
gmpas plot          history.2012-02-25_12.00.00.nc precipw -o pw.png
gmpas view          /path/to/run/
gmpas remap         history.*.nc -o out/
gmpas prep view     mesh.nc
gmpas prep hfun     hfun.py --check
gmpas prep generate hfun.py -o mesh/     # needs $JIGSAWDIR and $MKGRIDFILE

Documentation

Why gmpas exists the problem with lat-lon tooling, and why this is fast
Installation conda, pip, extras, and the external programs
Command line every command and its flags
In a notebook the accessor, and using the pieces directly
Preprocessing prep view, prep hfun, prep generate — mesh design and JIGSAW
Conservative remapping the whole terminal workflow, and two MPAS traps
On a cluster port forwarding, and the two variables that matter
Configuration GMPAS_CACHE_DIR and GMPAS_DATA_DIR
Examples ready-to-edit hfun.py templates
Tests what the suite covers
Layout what lives in which module
Differences from the MCP server what changed on the way to a package
Status what is implemented and what is not

This document is generated using LLM (Claude)

Release files for gmpas 0.5.0

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

Source distribution (sdist)

Source distribution for gmpas 0.5.0
File Size Uploaded
gmpas-0.5.0.tar.gz 359.4 kB Details

Built distribution (wheel)

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

Total release size: 602.5 kB

Release files / gmpas-0.5.0.tar.gz

Download URL gmpas-0.5.0.tar.gz
Size 359.4 kB
Tags Source
SHA-256 checksum
How to use checksums
64922eb9025bddda71eb14046976de7b820c03e6951304a5f59d8b1b02c2a48d
BLAKE2b-256 checksum
How to use checksums
5198d5b4b4e86589be34c023b1d4434142d8f9f27b202520acf46328b7910536
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.14

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.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Sep 16, 2026.

Transparency log

Release files / gmpas-0.5.0-py3-none-any.whl

Download URL gmpas-0.5.0-py3-none-any.whl
Size 243.1 kB
Tags Python 3
SHA-256 checksum
How to use checksums
92835e5b067bd5f89d181b49ae9ff6a9675420ebefba45614f880dd3411f4d02
BLAKE2b-256 checksum
How to use checksums
84bab8fcca17d296366a337b4965e0a66b1b2ce88bcedc7cd6bc95e74cda2b65
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.14

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.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Sep 16, 2026.

Transparency log

Release history Release notifications | RSS feed

0.5.7

2 release files

0.5.6

2 release files

This release

0.5.0 This release

2 release files

0.4.9

2 release files

0.4.8

2 release files

0.4.7

2 release files

0.4.3

2 release files

0.4.2

2 release files

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