Skip to main content
https://img.shields.io/github/actions/workflow/status/deltares/xugrid/ci.yml https://img.shields.io/codecov/c/github/deltares/xugrid.svg https://img.shields.io/badge/code%20style-black-000000.svg https://zenodo.org/badge/DOI/10.5281/zenodo.10534099.svg

See documentation.

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")
https://raw.githubusercontent.com/Deltares/xugrid/main/docs/_static/xugrid-demo.png

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

https://img.shields.io/github/actions/workflow/status/deltares/xugrid/ci.yml?style=flat-square

Release files for xugrid 0.15.3

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for xugrid 0.15.3
File Size Uploaded
xugrid-0.15.3.tar.gz 196.6 kB Details

Built distribution (wheel)

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

Total release size: 349.8 kB

Release files / xugrid-0.15.3.tar.gz

Download URL xugrid-0.15.3.tar.gz
Size 196.6 kB
Tags Source
SHA-256 checksum
How to use checksums
1096ef4c2df1b9360a41e39972d151b50de16531330ab909200a0ae4c7eab0e3
BLAKE2b-256 checksum
How to use checksums
cb304d5b538e5974278167a301f3c184acdd8f609adbf1e7ea32106f7b6a1095
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.12.13

Release files / xugrid-0.15.3-py3-none-any.whl

Download URL xugrid-0.15.3-py3-none-any.whl
Size 153.2 kB
Tags Python 3
SHA-256 checksum
How to use checksums
6afb89f9ac72ae2d3d0fde476d366e8eb112f448a1bc2313a5189ebff06074e1
BLAKE2b-256 checksum
How to use checksums
0770746ab7140121dcf04bade9ab7d2e65b6d5eb5b23bb7dc04b7ad22742ca0f
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.12.13

Release history Release notifications | RSS feed

This release

0.15.3 This release

2 release files

0.15.2

2 release files

0.15.1

2 release files

0.14.3

2 release files

0.14.2

2 release files

0.14.0

2 release files

0.13.0

2 release files

0.12.3

2 release files

0.12.2

2 release files

0.11.2

2 release files

0.11.1

2 release files

0.9.0

2 release files

0.8.1

2 release files

0.8.0

1 release file

0.7.1

1 release file

0.7.0

1 release file

0.6.5

1 release file

0.6.4

1 release file

0.6.3

1 release file

0.6.2

1 release file

0.6.1

1 release file

0.6.0

1 release file

0.5.0

1 release file

0.4.0

1 release file

0.3.0

1 release file

0.2.1

1 release file

0.2.0

1 release file

0.1.10

2 release files

0.1.9

2 release files

0.1.8

2 release files

0.1.7

1 release file

0.1.6

1 release file

0.1.5

1 release file

0.1.4

1 release file

0.1.3

1 release file

0.1.2

1 release file

0.1.1

1 release file

0.1.0

1 release file

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