Try the viewer in your browser — the real interface on a real MPAS run, with nothing to install.
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.7
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| gmpas-0.5.7.tar.gz | 418.1 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| gmpas-0.5.7-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 682.4 kB
Release files / gmpas-0.5.7.tar.gz
| Download URL | gmpas-0.5.7.tar.gz |
|---|---|
| Size | 418.1 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
5cd47c37a223dd28d37aefa203e8515f5ce52405856c520f952ccdc0d6a47219
|
|
BLAKE2b-256 checksum How to use checksums |
60f5f8793a5bdf5ba5e01f4fa2c371e9f841a9ed0b6c4df3dead2fff4418adf3
|
| 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 24, 2026.
Transparency logRelease files / gmpas-0.5.7-py3-none-any.whl
| Download URL | gmpas-0.5.7-py3-none-any.whl |
|---|---|
| Size | 264.3 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
549429f9690ab3932241145e62577b6307bd5d6a47549a61ba26fe390321680f
|
|
BLAKE2b-256 checksum How to use checksums |
d8a9d639ae5335dc7ae04477504ea109cb97cb8cd90274e67d0b11a29a63a840
|
| 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 24, 2026.
Transparency log