mapflow creates geographic plots and video animations directly from
xarray.DataArray objects. It detects common
coordinate names, understands CRS metadata, includes world borders, and streams lazily backed animation frames to
keep memory use bounded.
Installation
Install the Python package from PyPI:
python -m pip install mapflow
Or from conda-forge, which also installs FFmpeg:
conda install -c conda-forge mapflow
Creating animations requires the ffmpeg executable on PATH. Static plots do not require FFmpeg.
Quick start
import xarray as xr
from mapflow import animate, plot_da
ds = xr.tutorial.open_dataset("era5-2mt-2019-03-uk.grib")
temperature = ds["t2m"]
plot_da(temperature.isel(time=0))
animate(temperature.isel(time=slice(120)), "temperature.mp4", video_width=1280)
The documentation covers static plots, scalar animations, vector-field quiver
plots, CRS handling, color normalization, and the reusable PlotModel and Animation classes.
Development
git clone https://github.com/CyrilJl/mapflow.git
cd mapflow
uv sync --group dev
uv run pytest
uv run ruff check .
uv run ruff format --check .
See CONTRIBUTING.md for the full contribution and release checks. Changes are documented in CHANGELOG.md.
License
Licensed under the Apache License 2.0.
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file mapflow-0.3.1.tar.gz.
File metadata
- Download URL: mapflow-0.3.1.tar.gz
- Upload date:
- Size: 2.1 MB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via:
twine/7.0.0 CPython/3.13.14
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
89ee96c7ca6d6ea450bf90b062d4873abc6e85e879f067244b7b5d1106217506
|
|
| MD5 |
d528b84a5f239d680b4ec7dc365445dc
|
|
| BLAKE2b-256 |
0e3897b0f2a6c29074489b2bfcf0dbf5f055df1100a5e063a9bd2f90e77a8f96
|
Provenance
The following attestation bundles were made for mapflow-0.3.1.tar.gz:
Publisher:
pypi.yaml on CyrilJl/mapflow
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
mapflow-0.3.1.tar.gz -
Subject digest:
89ee96c7ca6d6ea450bf90b062d4873abc6e85e879f067244b7b5d1106217506 - Sigstore transparency entry: 2345860338
- Sigstore integration time:
-
Permalink:
CyrilJl/mapflow@38678923c12df3d456a7962441749cfeead2d4cc -
Branch / Tag:
refs/tags/v0.3.1 - Owner: https://github.com/CyrilJl
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
pypi.yaml@38678923c12df3d456a7962441749cfeead2d4cc -
Trigger Event:
push
-
Statement type:
File details
Details for the file mapflow-0.3.1-py3-none-any.whl.
File metadata
- Download URL: mapflow-0.3.1-py3-none-any.whl
- Upload date:
- Size: 2.1 MB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via:
twine/7.0.0 CPython/3.13.14
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
3c3556ebb259402e0000f01524495d141ebacf3aa95e3017965601fd303c2cfe
|
|
| MD5 |
84e4e24b756ff370b597a2a75aca5491
|
|
| BLAKE2b-256 |
6724fb0262ea7f8e4c74ac2c8f06416b59add93a8edc84f0e69caf0e679a16bb
|
Provenance
The following attestation bundles were made for mapflow-0.3.1-py3-none-any.whl:
Publisher:
pypi.yaml on CyrilJl/mapflow
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
mapflow-0.3.1-py3-none-any.whl -
Subject digest:
3c3556ebb259402e0000f01524495d141ebacf3aa95e3017965601fd303c2cfe - Sigstore transparency entry: 2345860394
- Sigstore integration time:
-
Permalink:
CyrilJl/mapflow@38678923c12df3d456a7962441749cfeead2d4cc -
Branch / Tag:
refs/tags/v0.3.1 - Owner: https://github.com/CyrilJl
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
pypi.yaml@38678923c12df3d456a7962441749cfeead2d4cc -
Trigger Event:
push
-
Statement type: