Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
32 changes: 22 additions & 10 deletions notebooks/part0_python_intro/10a_Rasterio_intro.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -411,6 +411,16 @@
"plt.colorbar();"
]
},
{
"cell_type": "markdown",
"id": "25d8b2e0-90b4-4a4c-b7b6-7cfa0fb8d01b",
"metadata": {},
"source": [
"**Looks the same! But notice the new units on the colobar scale.**\n",
"\n",
"Now let's save this raster to a new file."
]
},
{
"cell_type": "markdown",
"id": "88c7f772-9219-4be0-bbe6-791cfbb6ea0f",
Expand Down Expand Up @@ -450,16 +460,6 @@
"cbar.ax.set_yticklabels(['Low Elev. ', 'Mid Elev.', 'High Elev.']);"
]
},
{
"cell_type": "markdown",
"id": "25d8b2e0-90b4-4a4c-b7b6-7cfa0fb8d01b",
"metadata": {},
"source": [
"**Looks the same! But notice the new units on the colobar scale.**\n",
"\n",
"Now let's save this raster to a new file."
]
},
{
"cell_type": "markdown",
"id": "93db6aca-4edc-4f14-b673-dcd87d23844c",
Expand Down Expand Up @@ -815,6 +815,18 @@
"display_name": "Python 3 (ipykernel)",
"language": "python",
"name": "python3"
},
"language_info": {
"codemirror_mode": {
"name": "ipython",
"version": 3
},
"file_extension": ".py",
"mimetype": "text/x-python",
"name": "python",
"nbconvert_exporter": "python",
"pygments_lexer": "ipython3",
"version": "3.12.2"
}
},
"nbformat": 4,
Expand Down
24 changes: 12 additions & 12 deletions notebooks/part0_python_intro/solutions/10a_Rasterio_into.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -640,6 +640,16 @@
"plt.colorbar();"
]
},
{
"cell_type": "markdown",
"id": "25d8b2e0-90b4-4a4c-b7b6-7cfa0fb8d01b",
"metadata": {},
"source": [
"**Looks the same! But notice the new units on the colobar scale.**\n",
"\n",
"Now let's save this raster to a new file."
]
},
{
"cell_type": "markdown",
"id": "88c7f772-9219-4be0-bbe6-791cfbb6ea0f",
Expand Down Expand Up @@ -690,16 +700,6 @@
"cbar.ax.set_yticklabels(['Low Elev. ', 'Mid Elev.', 'High Elev.']);"
]
},
{
"cell_type": "markdown",
"id": "25d8b2e0-90b4-4a4c-b7b6-7cfa0fb8d01b",
"metadata": {},
"source": [
"**Looks the same! But notice the new units on the colobar scale.**\n",
"\n",
"Now let's save this raster to a new file."
]
},
{
"cell_type": "markdown",
"id": "93db6aca-4edc-4f14-b673-dcd87d23844c",
Expand Down Expand Up @@ -732,7 +732,7 @@
"\n",
"Geospatial coordinate reference systems are typically defined on a cartesian plane with the 0,0 origin in the bottom left. Raster data uses a different referencing system. Rows and columns with the 0,0 origin in the upper left and rows increase and you move down while the columns increase as you go right.\n",
"\n",
"![title](data/rasterio/xyrowcol.png)\n",
"![title](../data/rasterio/xyrowcol.png)\n",
"\n",
"Image from https://www.perrygeo.com/python-affine-transforms.html. More info on the Python [Affine](https://affine.readthedocs.io/en/latest/) library. "
]
Expand Down Expand Up @@ -1198,7 +1198,7 @@
"name": "python",
"nbconvert_exporter": "python",
"pygments_lexer": "ipython3",
"version": "3.12.11"
"version": "3.12.2"
}
},
"nbformat": 4,
Expand Down
Loading