Skip to content

Commit 3098f05

Browse files
authored
Merge pull request #181 from ntdosch/main
move misplaced markdown cell, fix path to embedded image in solutions…
2 parents e7ee8fa + ac41b75 commit 3098f05

2 files changed

Lines changed: 34 additions & 22 deletions

File tree

notebooks/part0_python_intro/10a_Rasterio_intro.ipynb

Lines changed: 22 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -411,6 +411,16 @@
411411
"plt.colorbar();"
412412
]
413413
},
414+
{
415+
"cell_type": "markdown",
416+
"id": "25d8b2e0-90b4-4a4c-b7b6-7cfa0fb8d01b",
417+
"metadata": {},
418+
"source": [
419+
"**Looks the same! But notice the new units on the colobar scale.**\n",
420+
"\n",
421+
"Now let's save this raster to a new file."
422+
]
423+
},
414424
{
415425
"cell_type": "markdown",
416426
"id": "88c7f772-9219-4be0-bbe6-791cfbb6ea0f",
@@ -450,16 +460,6 @@
450460
"cbar.ax.set_yticklabels(['Low Elev. ', 'Mid Elev.', 'High Elev.']);"
451461
]
452462
},
453-
{
454-
"cell_type": "markdown",
455-
"id": "25d8b2e0-90b4-4a4c-b7b6-7cfa0fb8d01b",
456-
"metadata": {},
457-
"source": [
458-
"**Looks the same! But notice the new units on the colobar scale.**\n",
459-
"\n",
460-
"Now let's save this raster to a new file."
461-
]
462-
},
463463
{
464464
"cell_type": "markdown",
465465
"id": "93db6aca-4edc-4f14-b673-dcd87d23844c",
@@ -815,6 +815,18 @@
815815
"display_name": "Python 3 (ipykernel)",
816816
"language": "python",
817817
"name": "python3"
818+
},
819+
"language_info": {
820+
"codemirror_mode": {
821+
"name": "ipython",
822+
"version": 3
823+
},
824+
"file_extension": ".py",
825+
"mimetype": "text/x-python",
826+
"name": "python",
827+
"nbconvert_exporter": "python",
828+
"pygments_lexer": "ipython3",
829+
"version": "3.12.2"
818830
}
819831
},
820832
"nbformat": 4,

notebooks/part0_python_intro/solutions/10a_Rasterio_into.ipynb

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -640,6 +640,16 @@
640640
"plt.colorbar();"
641641
]
642642
},
643+
{
644+
"cell_type": "markdown",
645+
"id": "25d8b2e0-90b4-4a4c-b7b6-7cfa0fb8d01b",
646+
"metadata": {},
647+
"source": [
648+
"**Looks the same! But notice the new units on the colobar scale.**\n",
649+
"\n",
650+
"Now let's save this raster to a new file."
651+
]
652+
},
643653
{
644654
"cell_type": "markdown",
645655
"id": "88c7f772-9219-4be0-bbe6-791cfbb6ea0f",
@@ -690,16 +700,6 @@
690700
"cbar.ax.set_yticklabels(['Low Elev. ', 'Mid Elev.', 'High Elev.']);"
691701
]
692702
},
693-
{
694-
"cell_type": "markdown",
695-
"id": "25d8b2e0-90b4-4a4c-b7b6-7cfa0fb8d01b",
696-
"metadata": {},
697-
"source": [
698-
"**Looks the same! But notice the new units on the colobar scale.**\n",
699-
"\n",
700-
"Now let's save this raster to a new file."
701-
]
702-
},
703703
{
704704
"cell_type": "markdown",
705705
"id": "93db6aca-4edc-4f14-b673-dcd87d23844c",
@@ -732,7 +732,7 @@
732732
"\n",
733733
"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",
734734
"\n",
735-
"![title](data/rasterio/xyrowcol.png)\n",
735+
"![title](../data/rasterio/xyrowcol.png)\n",
736736
"\n",
737737
"Image from https://www.perrygeo.com/python-affine-transforms.html. More info on the Python [Affine](https://affine.readthedocs.io/en/latest/) library. "
738738
]
@@ -1198,7 +1198,7 @@
11981198
"name": "python",
11991199
"nbconvert_exporter": "python",
12001200
"pygments_lexer": "ipython3",
1201-
"version": "3.12.11"
1201+
"version": "3.12.2"
12021202
}
12031203
},
12041204
"nbformat": 4,

0 commit comments

Comments
 (0)