Skip to content

Commit

Permalink
updated
Browse files Browse the repository at this point in the history
  • Loading branch information
zyang91 committed Jun 2, 2024
1 parent ad50ba7 commit 3f2d958
Showing 1 changed file with 136 additions and 0 deletions.
136 changes: 136 additions & 0 deletions notes/lecture17.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,142 @@
"ee.Initialize()"
]
},
{
"cell_type": "markdown",
"metadata": {},
"source": [
"# Mapping available Landsat image collections"
]
},
{
"cell_type": "code",
"execution_count": 2,
"metadata": {},
"outputs": [
{
"data": {
"text/html": [
"\n",
" <style>\n",
" .geemap-dark {\n",
" --jp-widgets-color: white;\n",
" --jp-widgets-label-color: white;\n",
" --jp-ui-font-color1: white;\n",
" --jp-layout-color2: #454545;\n",
" background-color: #383838;\n",
" }\n",
"\n",
" .geemap-dark .jupyter-button {\n",
" --jp-layout-color3: #383838;\n",
" }\n",
"\n",
" .geemap-colab {\n",
" background-color: var(--colab-primary-surface-color, white);\n",
" }\n",
"\n",
" .geemap-colab .jupyter-button {\n",
" --jp-layout-color3: var(--colab-primary-surface-color, white);\n",
" }\n",
" </style>\n",
" "
],
"text/plain": [
"<IPython.core.display.HTML object>"
]
},
"metadata": {},
"output_type": "display_data"
},
{
"name": "stderr",
"output_type": "stream",
"text": [
"c:\\Users\\zyang\\miniconda3\\envs\\geo\\Lib\\site-packages\\ee\\deprecation.py:204: DeprecationWarning: \n",
"\n",
"Attention required for LANDSAT/LC08/C01/T1_TOA! You are using a deprecated asset.\n",
"To ensure continued functionality, please update it by July 1, 2024.\n",
"Learn more: https://developers.google.com/earth-engine/landsat_c1_to_c2\n",
"\n",
" warnings.warn(warning, category=DeprecationWarning)\n"
]
}
],
"source": [
"collection= ee.ImageCollection('LANDSAT/LC08/C01/T1_TOA')\n",
"image= geemap.image_count(collection, region= None, start_date= '2021-01-01', end_date= '2022-01-01', clip= False)"
]
},
{
"cell_type": "code",
"execution_count": 4,
"metadata": {},
"outputs": [
{
"data": {
"text/html": [
"\n",
" <style>\n",
" .geemap-dark {\n",
" --jp-widgets-color: white;\n",
" --jp-widgets-label-color: white;\n",
" --jp-ui-font-color1: white;\n",
" --jp-layout-color2: #454545;\n",
" background-color: #383838;\n",
" }\n",
"\n",
" .geemap-dark .jupyter-button {\n",
" --jp-layout-color3: #383838;\n",
" }\n",
"\n",
" .geemap-colab {\n",
" background-color: var(--colab-primary-surface-color, white);\n",
" }\n",
"\n",
" .geemap-colab .jupyter-button {\n",
" --jp-layout-color3: var(--colab-primary-surface-color, white);\n",
" }\n",
" </style>\n",
" "
],
"text/plain": [
"<IPython.core.display.HTML object>"
]
},
"metadata": {},
"output_type": "display_data"
},
{
"data": {
"application/vnd.jupyter.widget-view+json": {
"model_id": "db8e1f8833d84dab92a4661922b3de76",
"version_major": 2,
"version_minor": 0
},
"text/plain": [
"Map(center=[0, 0], controls=(WidgetControl(options=['position', 'transparent_bg'], widget=SearchDataGUI(childr…"
]
},
"execution_count": 4,
"metadata": {},
"output_type": "execute_result"
}
],
"source": [
"m= geemap.Map()\n",
"vis={\n",
" 'min': 0,\n",
" 'max': 60,\n",
" 'palette': 'coolwarm'\n",
"}\n",
"m.addLayer(image, vis, 'Image Count')\n",
"m.add_colorbar(vis, label= 'Lansat Image Count')\n",
"\n",
"countries= ee.FeatureCollection(geemap.examples.get_ee_path('countries'))\n",
"style= { 'color': '00000088', 'width': 1 , 'fillColor': '00000000'}\n",
"m.addLayer(countries.style(**style), {}, 'Countries')\n",
"m"
]
},
{
"cell_type": "code",
"execution_count": null,
Expand Down

0 comments on commit 3f2d958

Please sign in to comment.