Skip to content

Commit

Permalink
better markdown for rasterization
Browse files Browse the repository at this point in the history
  • Loading branch information
philipc2 committed Dec 10, 2023
1 parent d75cc51 commit 933ad62
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 4 deletions.
6 changes: 5 additions & 1 deletion notebooks/03-uxarray-vis/03-polygons.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -232,7 +232,11 @@
"source": [
"## Rasterized Polygon Plots\n",
"\n",
"For larger datasets and for obtaining quicker visualizations, we can rasterize each polygon to obtain a Raster of our geometries.\n"
"Instead of plotting the geometry of each polygon directly, we can rasterize our set of polygons to obtain a raster plot.\n",
"\n",
":::{remember}\n",
"A raster plot of any set of geometric elements (in this case Polygons) renders each data into a regularly shaped array as opposed to rendering each shape directly.\n",
":::\n"
],
"metadata": {
"collapsed": false
Expand Down
12 changes: 9 additions & 3 deletions notebooks/03-uxarray-vis/04-points.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,9 @@
{
"cell_type": "markdown",
"source": [
"Since data variables are typically mapped to either nodes, edges, or faces, one can visualize these by using the data to shade the coordinate points of each element. \n"
"Since data variables are typically mapped to either nodes, edges, or faces, one can visualize these by using the data to shade the coordinate points of each element. \n",
"\n",
"This notebook showcases how to visualize data variables as points."
],
"metadata": {
"collapsed": false
Expand Down Expand Up @@ -98,7 +100,7 @@
{
"cell_type": "markdown",
"source": [
"We can plot each shaded data point using the latitude and longitude of either the nodes, edge centers, or face centers. Since \"bottomDepth\" is a face-centered variable, it is plotted with the node coordinates."
"We can plot each shaded data point using the latitude and longitude of either the nodes, edge centers, or face centers. Since ``bottomDepth`` is a face-centered variable, it is plotted using the node coordinates (i.e. ``node_lon`` and ``node_lat``)"
],
"metadata": {
"collapsed": false
Expand Down Expand Up @@ -133,7 +135,11 @@
"source": [
"## Rasterized Point Plots\n",
"\n",
"Instead of plotting each point, we can rasterize our set of points."
"Instead of plotting the geometry of each point directly, we can rasterize our set of points to obtain a raster plot.\n",
"\n",
":::{remember}\n",
"A raster plot of any set of geometric elements (in this case Points) renders each data into a regularly shaped array as opposed to rendering each shape directly.\n",
":::"
],
"metadata": {
"collapsed": false
Expand Down

0 comments on commit 933ad62

Please sign in to comment.