Skip to main content
mapflow logo

mapflow

PyPI version Conda version CI Documentation Status License

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)
Example mapflow plot

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

mapflow-0.3.1.tar.gz (2.1 MB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

mapflow-0.3.1-py3-none-any.whl (2.1 MB view details)

Uploaded Python 3

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

Hashes for mapflow-0.3.1.tar.gz
Algorithm Hash digest
SHA256 89ee96c7ca6d6ea450bf90b062d4873abc6e85e879f067244b7b5d1106217506
MD5 d528b84a5f239d680b4ec7dc365445dc
BLAKE2b-256 0e3897b0f2a6c29074489b2bfcf0dbf5f055df1100a5e063a9bd2f90e77a8f96

See more details on using hashes here.

Provenance

The following attestation bundles were made for mapflow-0.3.1.tar.gz:

Publisher: pypi.yaml on CyrilJl/mapflow

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

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

Hashes for mapflow-0.3.1-py3-none-any.whl
Algorithm Hash digest
SHA256 3c3556ebb259402e0000f01524495d141ebacf3aa95e3017965601fd303c2cfe
MD5 84e4e24b756ff370b597a2a75aca5491
BLAKE2b-256 6724fb0262ea7f8e4c74ac2c8f06416b59add93a8edc84f0e69caf0e679a16bb

See more details on using hashes here.

Provenance

The following attestation bundles were made for mapflow-0.3.1-py3-none-any.whl:

Publisher: pypi.yaml on CyrilJl/mapflow

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Release history Release notifications | RSS feed

This release

0.3.1 This release

2 files

0.3.0

2 files

0.2.14

2 files

0.2.13

2 files

0.2.12

2 files

0.2.11

2 files

0.2.10

2 files

0.2.9

2 files

0.2.8

2 files

0.2.7

2 files

0.2.6

2 files

0.2.5

2 files

0.2.4

2 files

0.2.3

2 files

0.2.2

2 files

0.2.1

2 files

0.2.0

2 files

0.1.0

2 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