Skip to content

Commit fd1fa4b

Browse files
committed
cool image
1 parent 24b8be1 commit fd1fa4b

File tree

3 files changed

+10
-6
lines changed

3 files changed

+10
-6
lines changed
36.6 KB
Loading

content/tutorials/numpy_integration/grass_numpy_integration.qmd

Lines changed: 10 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -252,6 +252,13 @@ grass_elevation[...] = elevation
252252
grass_elevation.write("elevation")
253253
```
254254

255+
::: {.callout-note title="What about N-dimensional arrays?"}
256+
257+
For 3D arrays, you can use [grass.script.array3d](https://grass.osgeo.org/grass-stable/manuals/libpython/grass.script.html#script.array.array3d) package.
258+
259+
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 >}}
260+
:::
261+
255262
Let's visualize the new GRASS elevation map with streams by setting its color
256263
scheme to `srtm_percent` and rendering it in 3D using the
257264
[grass.jupyter.Map3D](https://grass.osgeo.org/grass-stable/manuals/libpython/grass.jupyter.html?highlight=map3d#module-grass.jupyter.map3d) class:
@@ -273,14 +280,11 @@ elevation_3dmap.render(
273280
elevation_3dmap.show()
274281
```
275282

276-
![Resulting elevation with streams in 3D](thumbnail.webp)
277-
278-
::: {.callout-note title="What about N-dimensional arrays?"}
283+
![Resulting elevation with streams in 3D](elevation_3d.webp)
279284

280-
For 3D arrays, you can use [grass.script.array3d](https://grass.osgeo.org/grass-stable/manuals/libpython/grass.script.html#script.array.array3d) package.
285+
And now let's augment it with [Nano Banana AI](https://nanobanana.ai/):
281286

282-
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 >}}
283-
:::
287+
![AI edited landscape](thumbnail.webp)
284288

285289
---
286290

23.7 KB
Loading

0 commit comments

Comments
 (0)