Skip to content

Commit cf61fb9

Browse files
committed
add note about xarray bridge
1 parent ab1110a commit cf61fb9

File tree

1 file changed

+11
-0
lines changed

1 file changed

+11
-0
lines changed

content/tutorials/numpy_integration/grass_numpy_integration.qmd

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,10 @@ description: >
88
Learn how to integrate NumPy arrays with GRASS tools
99
on an example using Landlab modeling framework.
1010
image: thumbnail.webp
11+
other-links:
12+
- text: "Check out new xarray-grass interface"
13+
href: "https://github.com/lrntct/xarray-grass"
14+
icon: link
1115
format:
1216
ipynb: default
1317
html:
@@ -237,6 +241,13 @@ grass_elevation[...] = elevation
237241
grass_elevation.write("elevation")
238242
```
239243

244+
::: {.callout-note title="What about N-dimensional arrays?"}
245+
246+
For 3D arrays, you can use [grass.script.array3d](https://grass.osgeo.org/grass-stable/manuals/libpython/grass.script.html#script.array.array3d) package.
247+
248+
For N-dimensional arrays, check out the new [xarray-grass](https://github.com/lrntct/xarray-grass) bridge developed by [Laurent Courty](https://github.com/lrntct) {{< fa rocket >}}
249+
:::
250+
240251
---
241252

242253
The development of this tutorial was supported by NSF Award #2322073, granted to Natrx, Inc.

0 commit comments

Comments
 (0)