Xarray extension for unstructured grids
Project description
This is a work in progress. 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")
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
Project details
Release history Release notifications | RSS feed
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 xugrid-0.15.0.tar.gz.
File metadata
- Download URL: xugrid-0.15.0.tar.gz
- Upload date:
- Size: 193.0 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.12.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
7ca0e19a81d1f5ec9d57f70086c92efdd2efb93943cbb1fab18b293885294ebb
|
|
| MD5 |
652f64b6aa08daf0d45da67ca1ef1479
|
|
| BLAKE2b-256 |
bf38053d9d506dfcccd7541d3e6a2d8b8616eb20ab4adc2b015e8685ee814eb6
|
File details
Details for the file xugrid-0.15.0-py3-none-any.whl.
File metadata
- Download URL: xugrid-0.15.0-py3-none-any.whl
- Upload date:
- Size: 151.5 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.12.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
94f35d261978f02c4f2fa38321c420eb22a6211f75fa5a11f768573432c49442
|
|
| MD5 |
63cb874a40c3b7dea25a1cb3b16e749d
|
|
| BLAKE2b-256 |
dad4dfa0030423d06e9d82950bda1da02f9c4af6a66fc44b843851208626e835
|