Xarray extension for unstructured grids
Project Links
Meta
Maintainer: Huite Bootsma
Requires Python: >=3.10
Classifiers
Development Status
- 3 - Alpha
Intended Audience
- Science/Research
License
- OSI Approved :: MIT License
Operating System
- OS Independent
Programming Language
- Python
- Python :: 3
- Python :: 3.10
- Python :: 3.11
- Python :: 3.12
- Python :: 3.13
- Python :: Implementation :: CPython
Topic
- Scientific/Engineering
Xarray extension to work with 2D unstructured grids, for data and topology stored according to UGRID conventions.
Processing structured data with xarray is convenient and efficient. The goal of Xugrid is to extend this ease to unstructured grids.
import matplotlib.pyplot as plt
import xugrid
# Get some sample data as a xugrid UgridDataArray
uda = xugrid.data.elevation_nl()
# Get a cross-section
section_y = 475_000.0
section = uda.ugrid.sel(y=section_y)
# Plot unstructured grid and cross section
fig, (ax0, ax1) = plt.subplots(figsize=(22.6, 10), ncols=2)
uda.ugrid.plot(ax=ax0, vmin=-20, vmax=90, cmap="terrain")
ax0.axhline(y=section_y, color="red")
section.plot(ax=ax1, x="mesh2d_face_x")
Installation
Install via conda from the conda-forge channel:
conda install -c conda-forge xugrid
Or from the Python Package Index:
pip install xugrid
Documentation
0.15.3
Jun 19, 2026
0.15.2
Apr 20, 2026
0.15.1
Mar 30, 2026
0.15.0
Mar 06, 2026
0.14.3
Nov 11, 2025
0.14.2
Jul 15, 2025
0.14.1
May 08, 2025
0.14.0
Apr 30, 2025
0.13.0
Apr 16, 2025
0.12.4
Mar 05, 2025
0.12.3
Feb 17, 2025
0.12.2
Jan 31, 2025
0.12.1
Sep 09, 2024
0.12.0
Sep 03, 2024
0.11.2
Aug 16, 2024
0.11.1
Aug 13, 2024
0.11.0
Aug 05, 2024
0.10.0
May 01, 2024
0.9.0
Feb 15, 2024
0.8.1
Jan 19, 2024
0.8.0
Dec 11, 2023
0.7.1
Nov 17, 2023
0.7.0
Oct 19, 2023
0.6.5
Sep 30, 2023
0.6.4
Aug 22, 2023
0.6.3
Aug 12, 2023
0.6.2
Jul 26, 2023
0.6.1
Jul 07, 2023
0.6.0
Jul 05, 2023
0.5.0
May 25, 2023
0.4.0
May 05, 2023
0.3.0
Mar 14, 2023
0.2.1
Feb 06, 2023
0.2.0
Jan 19, 2023
0.1.10
Dec 14, 2022
0.1.9
Dec 13, 2022
0.1.8
Dec 13, 2022
0.1.7
Sep 06, 2022
0.1.6
Sep 02, 2022
0.1.5
Aug 22, 2022
0.1.4
Aug 16, 2022
0.1.3
Dec 23, 2021
0.1.2
Dec 23, 2021
0.1.1
Dec 22, 2021
0.1.0
Dec 17, 2021