Skip to content

Commit

Permalink
updated
Browse files Browse the repository at this point in the history
  • Loading branch information
zyang91 committed May 27, 2024
1 parent b54ae24 commit 4062d45
Show file tree
Hide file tree
Showing 2 changed files with 130 additions and 4 deletions.
127 changes: 123 additions & 4 deletions notes/lecture11.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@
},
{
"cell_type": "code",
"execution_count": 9,
"execution_count": 23,
"metadata": {},
"outputs": [
{
Expand Down Expand Up @@ -96,15 +96,15 @@
{
"data": {
"application/vnd.jupyter.widget-view+json": {
"model_id": "1d8d48138ef3439cb523bc8851595e4d",
"model_id": "16cb5e3aae78476fb7f5252a7abba3a4",
"version_major": 2,
"version_minor": 0
},
"text/plain": [
"Map(center=[40, -100], controls=(WidgetControl(options=['position', 'transparent_bg'], widget=SearchDataGUI(ch…"
]
},
"execution_count": 9,
"execution_count": 23,
"metadata": {},
"output_type": "execute_result"
}
Expand Down Expand Up @@ -134,7 +134,7 @@
},
{
"cell_type": "code",
"execution_count": 8,
"execution_count": 24,
"metadata": {},
"outputs": [
{
Expand Down Expand Up @@ -375,6 +375,125 @@
"layer =Map.find_layer('Landsat')\n",
"Map.remove_layer(layer)"
]
},
{
"cell_type": "code",
"execution_count": 25,
"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": "stdout",
"output_type": "stream",
"text": [
"The csv file has been saved to: c:\\Users\\zyang\\spatial_data_management\\notes\\samples.csv\n"
]
}
],
"source": [
"Map.extract_values_to_points('samples.csv')"
]
},
{
"cell_type": "code",
"execution_count": 28,
"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": "5346f7560b144f6eab147f7b8cce19ec",
"version_major": 2,
"version_minor": 0
},
"text/plain": [
"Map(center=[0, 0], controls=(WidgetControl(options=['position', 'transparent_bg'], widget=SearchDataGUI(childr…"
]
},
"execution_count": 28,
"metadata": {},
"output_type": "execute_result"
}
],
"source": [
"Map= geemap.Map()\n",
"Map.add_points_from_xy('samples.csv')\n",
"Map"
]
},
{
"cell_type": "code",
"execution_count": null,
"metadata": {},
"outputs": [],
"source": []
}
],
"metadata": {
Expand Down
7 changes: 7 additions & 0 deletions notes/samples.csv
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
id,longitude,latitude,B1,B2,B3,B4,B5,B7
1,39.6733703917656,-93.29589843750001,28,25,21,67,50,25
2,34.452218472826566,-101.38183593750001,32,31,35,61,76,51
3,41.83682786072714,-123.31054687500001,22,19,14,62,32,15
4,38.47939467327645,-120.93750000000001,30,30,35,62,70,40
5,31.203404950917395,-110.21484375,32,35,46,65,76,60
6,44.213709909702054,-113.02734375000001,31,30,32,51,59,41

0 comments on commit 4062d45

Please sign in to comment.