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.4.8

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.4.8
File Size Uploaded
gmpas-0.4.8.tar.gz 245.6 kB Details

Built distribution (wheel)

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

Total release size: 408.2 kB

Release files / gmpas-0.4.8.tar.gz

Download URL gmpas-0.4.8.tar.gz
Size 245.6 kB
Tags Source
SHA-256 checksum
How to use checksums
cbcaf44dbf0a7f1ab2c0316b302292c9ae53049d6b7077289ab4087495067a4f
BLAKE2b-256 checksum
How to use checksums
47fe6ae626a19a2ba3d04f6865fe03cec255fbcae6a9371b688486e16afc5bbd
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 14, 2026.

Transparency log

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

Download URL gmpas-0.4.8-py3-none-any.whl
Size 162.7 kB
Tags Python 3
SHA-256 checksum
How to use checksums
9cadcaafd61d5cd5001b99fd0ecabeb11c09de863c4a3925988604901b628203
BLAKE2b-256 checksum
How to use checksums
aebf8731b52819ec174a90f16814e437b49038526d9b6b2767fd8fbd236985a1
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 14, 2026.

Transparency log

Release history Release notifications | RSS feed

0.5.7

2 release files

0.5.6

2 release files

0.5.0

2 release files

0.4.9

2 release files

This release

0.4.8 This release

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