Skip to content

Commit 349141d

Browse files
authored
A bit more explanation about zonal wind (#1353)
1 parent d244fa1 commit 349141d

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

examples/netcdf/src/index.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,13 +16,13 @@ const winds = FileAttachment("navy_winds_2.nc").arrayBuffer().then((data) => new
1616

1717
Now `winds` is a promise to a `NetCDFReader`. (Promises are implicitly awaited across code blocks, so we don’t need to explicitly `await` below.)
1818

19-
We can inspect the metadata of the NetCDF file via the `header` property. The `header.dimensions` tells us the grid resolution, while the `header.variables` tells us what values are stored in the grid. `UWND` is zonal wind, while `VWND` is meridional wind; that’s latitudinal and longitudinal, respectively.
19+
We can inspect the metadata of the NetCDF file via the `header` property. The `header.dimensions` tells us the grid resolution, while the `header.variables` tells us what values are stored in the grid. `UWND` is the [zonal](https://en.wikipedia.org/wiki/Zonal_and_meridional_flow) component of the wind, while `VWND` is its meridional component.
2020

2121
```js echo
2222
winds.header
2323
```
2424

25-
Now let’s visualize the zonal wind using a raster plot. The values are represented as a one-dimensional array of numbers, which we can use as the raster mark’s data; but we also need to specify the `width` and `height` of the grid. Since wind values can be both positive and negative, we can use the `rdbu` diverging color scheme.
25+
Now let’s visualize the zonal wind component using a raster plot. The values are represented as a one-dimensional array of numbers, which we can use as the raster mark’s data; but we also need to specify the `width` and `height` of the grid. Since values can be both <span style="border-bottom: solid 2px #a51b2c">negative</span> (westward wind) and <span style="border-bottom: solid 2px #1e5f9d">positive</span> (eastward), we can use the `rdbu` diverging color scheme.
2626

2727
```js echo
2828
Plot.plot({

0 commit comments

Comments
 (0)