Skip to content

Commit

Permalink
Update workshop notebooks (gee-community#1694)
Browse files Browse the repository at this point in the history
  • Loading branch information
giswqs authored Sep 7, 2023
1 parent dbfb155 commit 1cfa23b
Show file tree
Hide file tree
Showing 6 changed files with 28 additions and 29 deletions.
6 changes: 3 additions & 3 deletions docs/workshops/City_Plus_2023.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -164,7 +164,7 @@
"\n",
"There are several ways to add basemaps to a map. You can specify the basemap to use in the `basemap` keyword argument when creating the map. Alternatively, you can add basemap layers to the map using the `add_basemap` method. Geemap has hundreds of built-in basemaps available that can be easily added to the map with only one line of code.\n",
"\n",
"Create a map by specifying the basemap to use as follows. For example, the `HYBRID` basemap represents the Google Satellite Hybrid basemap."
"Create a map by specifying the basemap to use as follows. For example, the `Esri.WorldImagery` basemap represents the Esri world imagery basemap."
]
},
{
Expand All @@ -173,7 +173,7 @@
"metadata": {},
"outputs": [],
"source": [
"Map = geemap.Map(basemap='HYBRID')\n",
"Map = geemap.Map(basemap='Esri.WorldImagery')\n",
"Map"
]
},
Expand Down Expand Up @@ -815,7 +815,7 @@
"outputs": [],
"source": [
"Map = geemap.Map()\n",
"Map.split_map(left_layer='Google Terrain', right_layer='OpenTopoMap')\n",
"Map.split_map(left_layer='Esri.WorldTopoMap', right_layer='OpenTopoMap')\n",
"Map"
]
},
Expand Down
16 changes: 8 additions & 8 deletions docs/workshops/G4G_2023.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -165,7 +165,7 @@
"\n",
"There are several ways to add basemaps to a map. You can specify the basemap to use in the `basemap` keyword argument when creating the map. Alternatively, you can add basemap layers to the map using the `add_basemap` method. Geemap has hundreds of built-in basemaps available that can be easily added to the map with only one line of code.\n",
"\n",
"Create a map by specifying the basemap to use as follows. For example, the `HYBRID` basemap represents the Google Satellite Hybrid basemap."
"Create a map by specifying the basemap to use as follows. For example, the `Esri.WorldImagery` basemap represents the Esri world imagery basemap."
]
},
{
Expand All @@ -174,7 +174,7 @@
"metadata": {},
"outputs": [],
"source": [
"Map = geemap.Map(basemap='HYBRID')\n",
"Map = geemap.Map(basemap='Esri.WorldImagery')\n",
"Map"
]
},
Expand Down Expand Up @@ -783,7 +783,7 @@
"outputs": [],
"source": [
"Map = geemap.Map(center=[40, -100], zoom=4)\n",
"Map.add_basemap('Google Hybrid')\n",
"Map.add_basemap('Esri.WorldImagery')\n",
"Map.add_basemap('NLCD 2019 CONUS Land Cover')\n",
"Map.add_legend(builtin_legend='NLCD', max_width='100px')\n",
"Map"
Expand All @@ -803,7 +803,7 @@
"outputs": [],
"source": [
"Map = geemap.Map(center=[40, -100], zoom=4)\n",
"Map.add_basemap('HYBRID')\n",
"Map.add_basemap('Esri.WorldImagery')\n",
"\n",
"nlcd = ee.Image('USGS/NLCD_RELEASES/2019_REL/NLCD/2019')\n",
"landcover = nlcd.select('landcover')\n",
Expand Down Expand Up @@ -861,7 +861,7 @@
"outputs": [],
"source": [
"Map = geemap.Map(center=[40, -100], zoom=4)\n",
"Map.add_basemap('Google Hybrid')\n",
"Map.add_basemap('Esri.WorldImagery')\n",
"\n",
"legend_dict = {\n",
" '11 Open Water': '466b9f',\n",
Expand Down Expand Up @@ -1981,7 +1981,7 @@
"outputs": [],
"source": [
"Map = geemap.Map()\n",
"Map.add_basemap('Google Hybrid')\n",
"Map.add_basemap('Esri.WorldImagery')\n",
"treeloss_year = dataset.select(['lossyear'])\n",
"treeLossVisParam = {'min': 0, 'max': 22, 'palette': ['yellow', 'red']}\n",
"layer_name = 'Tree loss year since 2000'\n",
Expand All @@ -2005,7 +2005,7 @@
"outputs": [],
"source": [
"Map = geemap.Map()\n",
"Map.add_basemap('Google Hybrid')\n",
"Map.add_basemap('Esri.WorldImagery')\n",
"treeloss = dataset.select(['loss']).selfMask()\n",
"treegain = dataset.select(['gain']).selfMask()\n",
"Map.addLayer(treeloss, {'palette': 'red'}, 'Tree loss')\n",
Expand Down Expand Up @@ -3139,7 +3139,7 @@
"name": "python",
"nbconvert_exporter": "python",
"pygments_lexer": "ipython3",
"version": "3.10.12"
"version": "3.10.8"
}
},
"nbformat": 4,
Expand Down
6 changes: 3 additions & 3 deletions docs/workshops/SciPy_2023.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -170,7 +170,7 @@
"\n",
"There are several ways to add basemaps to a map. You can specify the basemap to use in the `basemap` keyword argument when creating the map. Alternatively, you can add basemap layers to the map using the `add_basemap` method. Geemap has hundreds of built-in basemaps available that can be easily added to the map with only one line of code.\n",
"\n",
"Create a map by specifying the basemap to use as follows. For example, the `HYBRID` basemap represents the Google Satellite Hybrid basemap."
"Create a map by specifying the basemap to use as follows. For example, the `Esri.WorldImagery` basemap represents the Esri world imagery basemap."
]
},
{
Expand All @@ -179,7 +179,7 @@
"metadata": {},
"outputs": [],
"source": [
"Map = geemap.Map(basemap='HYBRID')\n",
"Map = geemap.Map(basemap='Esri.WorldImagery')\n",
"Map"
]
},
Expand Down Expand Up @@ -3144,7 +3144,7 @@
"name": "python",
"nbconvert_exporter": "python",
"pygments_lexer": "ipython3",
"version": "3.10.12"
"version": "3.10.8"
}
},
"nbformat": 4,
Expand Down
6 changes: 3 additions & 3 deletions examples/workshops/City_Plus_2023.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -164,7 +164,7 @@
"\n",
"There are several ways to add basemaps to a map. You can specify the basemap to use in the `basemap` keyword argument when creating the map. Alternatively, you can add basemap layers to the map using the `add_basemap` method. Geemap has hundreds of built-in basemaps available that can be easily added to the map with only one line of code.\n",
"\n",
"Create a map by specifying the basemap to use as follows. For example, the `HYBRID` basemap represents the Google Satellite Hybrid basemap."
"Create a map by specifying the basemap to use as follows. For example, the `Esri.WorldImagery` basemap represents the Esri world imagery basemap."
]
},
{
Expand All @@ -173,7 +173,7 @@
"metadata": {},
"outputs": [],
"source": [
"Map = geemap.Map(basemap='HYBRID')\n",
"Map = geemap.Map(basemap='Esri.WorldImagery')\n",
"Map"
]
},
Expand Down Expand Up @@ -815,7 +815,7 @@
"outputs": [],
"source": [
"Map = geemap.Map()\n",
"Map.split_map(left_layer='Google Terrain', right_layer='OpenTopoMap')\n",
"Map.split_map(left_layer='Esri.WorldTopoMap', right_layer='OpenTopoMap')\n",
"Map"
]
},
Expand Down
17 changes: 8 additions & 9 deletions examples/workshops/G4G_2023.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@
"cells": [
{
"cell_type": "markdown",
"id": "89a76753",
"metadata": {},
"source": [
"[![image](https://colab.research.google.com/assets/colab-badge.svg)](https://colab.research.google.com/github/gee-community/geemap/blob/master/docs/workshops/G4G_2023.ipynb)\n",
Expand Down Expand Up @@ -166,7 +165,7 @@
"\n",
"There are several ways to add basemaps to a map. You can specify the basemap to use in the `basemap` keyword argument when creating the map. Alternatively, you can add basemap layers to the map using the `add_basemap` method. Geemap has hundreds of built-in basemaps available that can be easily added to the map with only one line of code.\n",
"\n",
"Create a map by specifying the basemap to use as follows. For example, the `HYBRID` basemap represents the Google Satellite Hybrid basemap."
"Create a map by specifying the basemap to use as follows. For example, the `Esri.WorldImagery` basemap represents the Esri world imagery basemap."
]
},
{
Expand All @@ -175,7 +174,7 @@
"metadata": {},
"outputs": [],
"source": [
"Map = geemap.Map(basemap='HYBRID')\n",
"Map = geemap.Map(basemap='Esri.WorldImagery')\n",
"Map"
]
},
Expand Down Expand Up @@ -784,7 +783,7 @@
"outputs": [],
"source": [
"Map = geemap.Map(center=[40, -100], zoom=4)\n",
"Map.add_basemap('Google Hybrid')\n",
"Map.add_basemap('Esri.WorldImagery')\n",
"Map.add_basemap('NLCD 2019 CONUS Land Cover')\n",
"Map.add_legend(builtin_legend='NLCD', max_width='100px')\n",
"Map"
Expand All @@ -804,7 +803,7 @@
"outputs": [],
"source": [
"Map = geemap.Map(center=[40, -100], zoom=4)\n",
"Map.add_basemap('HYBRID')\n",
"Map.add_basemap('Esri.WorldImagery')\n",
"\n",
"nlcd = ee.Image('USGS/NLCD_RELEASES/2019_REL/NLCD/2019')\n",
"landcover = nlcd.select('landcover')\n",
Expand Down Expand Up @@ -862,7 +861,7 @@
"outputs": [],
"source": [
"Map = geemap.Map(center=[40, -100], zoom=4)\n",
"Map.add_basemap('Google Hybrid')\n",
"Map.add_basemap('Esri.WorldImagery')\n",
"\n",
"legend_dict = {\n",
" '11 Open Water': '466b9f',\n",
Expand Down Expand Up @@ -1982,7 +1981,7 @@
"outputs": [],
"source": [
"Map = geemap.Map()\n",
"Map.add_basemap('Google Hybrid')\n",
"Map.add_basemap('Esri.WorldImagery')\n",
"treeloss_year = dataset.select(['lossyear'])\n",
"treeLossVisParam = {'min': 0, 'max': 22, 'palette': ['yellow', 'red']}\n",
"layer_name = 'Tree loss year since 2000'\n",
Expand All @@ -2006,7 +2005,7 @@
"outputs": [],
"source": [
"Map = geemap.Map()\n",
"Map.add_basemap('Google Hybrid')\n",
"Map.add_basemap('Esri.WorldImagery')\n",
"treeloss = dataset.select(['loss']).selfMask()\n",
"treegain = dataset.select(['gain']).selfMask()\n",
"Map.addLayer(treeloss, {'palette': 'red'}, 'Tree loss')\n",
Expand Down Expand Up @@ -3140,7 +3139,7 @@
"name": "python",
"nbconvert_exporter": "python",
"pygments_lexer": "ipython3",
"version": "3.10.12"
"version": "3.10.8"
}
},
"nbformat": 4,
Expand Down
6 changes: 3 additions & 3 deletions examples/workshops/SciPy_2023.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -170,7 +170,7 @@
"\n",
"There are several ways to add basemaps to a map. You can specify the basemap to use in the `basemap` keyword argument when creating the map. Alternatively, you can add basemap layers to the map using the `add_basemap` method. Geemap has hundreds of built-in basemaps available that can be easily added to the map with only one line of code.\n",
"\n",
"Create a map by specifying the basemap to use as follows. For example, the `HYBRID` basemap represents the Google Satellite Hybrid basemap."
"Create a map by specifying the basemap to use as follows. For example, the `Esri.WorldImagery` basemap represents the Esri world imagery basemap."
]
},
{
Expand All @@ -179,7 +179,7 @@
"metadata": {},
"outputs": [],
"source": [
"Map = geemap.Map(basemap='HYBRID')\n",
"Map = geemap.Map(basemap='Esri.WorldImagery')\n",
"Map"
]
},
Expand Down Expand Up @@ -3144,7 +3144,7 @@
"name": "python",
"nbconvert_exporter": "python",
"pygments_lexer": "ipython3",
"version": "3.10.12"
"version": "3.10.8"
}
},
"nbformat": 4,
Expand Down

0 comments on commit 1cfa23b

Please sign in to comment.