Skip to content

Commit

Permalink
bnds figures: corrected wrong indices
Browse files Browse the repository at this point in the history
  • Loading branch information
Daniel Neumann authored and erget committed Jul 22, 2020
1 parent e35a8fd commit 8f38ab8
Show file tree
Hide file tree
Showing 3 changed files with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ch07.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ If adjacent intervals are contiguous, the shared endpoint must be represented in
+
[[img-bnd_1d_coords, figure 1]]
[.text-center]
.Order of **`lonbnd(i,0)`** and **`lonbnd(i,1)`** as well as of **`latbnd(i,0)`** and **`latbnd(i,1)`** in the case of one-dimensional horizontal coordinate axes. Tuples **`(lon(i,j),lat(i,j))`** represent grid cell centers. The four grid cell vertices are given by **`(lonbnd(i,j,0),latbnd(i,j,0))`**, **`(lonbnd(i,j,1),latbnd(i,j,0))`**, **`(lonbnd(i,j,1),latbnd(i,j,1))`** and **`(lonbnd(i,j,0),latbnd(i,j,1))`**.
.Order of **`lonbnd(i,0)`** and **`lonbnd(i,1)`** as well as of **`latbnd(i,0)`** and **`latbnd(i,1)`** in the case of one-dimensional horizontal coordinate axes. Tuples **`(lon(i),lat(j))`** represent grid cell centers. The four grid cell vertices are given by **`(lonbnd(i,0),latbnd(j,0))`**, **`(lonbnd(i,1),latbnd(j,0))`**, **`(lonbnd(i,1),latbnd(j,1))`** and **`(lonbnd(i,0),latbnd(j,1))`**.
image::images/order_horizontal_bounds__1D_coord_variables.png[,50%,pdfwidth=50vw,align="center"]

Bounds for 2-D coordinate variables with 4-sided cells:: In the case where the horizontal grid is described by two-dimensional auxiliary coordinate variables in latitude **`lat(n,m)`** and longitude **`lon(n,m)`**, and the associated cells are four-sided, then the boundary variables are given in the form **`latbnd(n,m,4)`** and **`lonbnd(n,m,4)`**, where the trailing index runs over the four vertices of the cells. Let us call the side of cell **`(j,i)`** facing cell **`(j,i-1)`** the "**`i-1`**" side, the side facing cell **`(j,i+1)`** the "**`i+1`**" side, and similarly for "**`j-1`**" and "**`j+1`**". Then we can refer to the vertex formed by sides **`i-1`** and **`j-1`** as **`(j-1,i-1)`**. With this notation, the four vertices are indexed as follows: **`0=(j-1,i-1)`**, **`1=(j-1,i+1)`**, **`2=(j+1,i+1)`**, **`3=(j+1,i-1)`**.
Expand Down
Binary file modified images/order_horizontal_bounds__1D_coord_variables.pdf
Binary file not shown.
Binary file modified images/order_horizontal_bounds__1D_coord_variables.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit 8f38ab8

Please sign in to comment.