百科.dev
全部条目在线工具AI 编程趋势榜开源项目技术资讯提交条目
登录
< 返回工具列表
X

xugrid

> 编程语言
开源

Xarray 和非结构化网格

100 stars0 点赞0 次浏览
访问官网GitHub

工具介绍

Xarray 和非结构化网格

Xugrid

.. image:: https://img.shields.io/endpoint?url=https://raw.githubusercontent.com/Deltares/xugrid/main/docs/_static/badge_deltares.json :target: https://www.deltares.nl/en .. image:: https://img.shields.io/github/actions/workflow/status/deltares/xugrid/ci.yml :target: https://github.com/deltares/xugrid/actions?query=workflows%3Aci .. image:: https://img.shields.io/codecov/c/github/deltares/xugrid.svg :target: https://app.codecov.io/gh/deltares/xugrid .. image:: https://img.shields.io/badge/code%20style-black-000000.svg :target: https://github.com/psf/black .. image:: https://zenodo.org/badge/DOI/10.5281/zenodo.10663502.svg :target: https://doi.org/10.5281/zenodo.10663502

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.

.. code:: python

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")

.. image:: https://raw.githubusercontent.com/Deltares/xugrid/main/docs/_static/xugrid-demo.png :target: https://github.com/deltares/xugrid

Installation

Install via conda from the conda-forge channel:

.. code:: console

conda install -c conda-forge xugrid

Or from the Python Package Index:

.. code:: console

pip install xugrid

Documentation

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

Issues· 76 开放

查看全部 Issues在 GitHub 打开

暂无开放 Issues,或尚未同步最近议题。

> 标签

Python

暂无评论,来聊聊你的看法吧

> 工具信息

发布日期2026年8月1日
最后更新2026年9月18日
分类编程语言
定价开源

> 相关工具

T
TypeScript
JavaScript 的超集,为前端与全栈提供静态类型
P
Python
通用编程语言,广泛用于 Web、数据与 AI
G
Go
Google 推出的简洁高效系统语言