Skip to content

Commit

Permalink
Add aspect to the Getting Started guide
Browse files Browse the repository at this point in the history
Resolves #134
  • Loading branch information
wkearn committed Jan 24, 2025
1 parent d484348 commit fd5b131
Showing 1 changed file with 23 additions and 0 deletions.
23 changes: 23 additions & 0 deletions docs/tutorial/grid.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,29 @@
"plt.colorbar(im0);"
]
},
{
"cell_type": "markdown",
"id": "7f9ec466-881c-402f-8867-f17646c88776",
"metadata": {},
"source": [
"## Aspect\n",
"\n",
"Aspect determines the exposition of a slope."
]
},
{
"cell_type": "code",
"execution_count": null,
"id": "225f9afa-6965-40a1-b76b-2efd88244109",
"metadata": {},
"outputs": [],
"source": [
"asp = dem.aspect()\n",
"fig1, ax1 = plt.subplots(1,1)\n",
"im1 = ax1.imshow(asp, cmap=\"viridis\", vmin=0,vmax=360)\n",
"plt.colorbar(im1)"
]
},
{
"cell_type": "markdown",
"id": "51f5b1fc-077f-41f6-81cd-44c2ad4fea16",
Expand Down

0 comments on commit fd5b131

Please sign in to comment.