Skip to content

Commit 6988f12

Browse files
authored
Add files via upload
1 parent 96d586c commit 6988f12

File tree

3 files changed

+686
-0
lines changed

3 files changed

+686
-0
lines changed
Lines changed: 187 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,187 @@
1+
{
2+
"cells": [
3+
{
4+
"cell_type": "markdown",
5+
"metadata": {},
6+
"source": [
7+
"# Create annual composite of Landsat imagery\n",
8+
"\n",
9+
"Use the drawing tools to create an region of interest"
10+
]
11+
},
12+
{
13+
"cell_type": "code",
14+
"execution_count": 1,
15+
"metadata": {},
16+
"outputs": [],
17+
"source": [
18+
"import ee\n",
19+
"import geemap"
20+
]
21+
},
22+
{
23+
"cell_type": "code",
24+
"execution_count": 2,
25+
"metadata": {},
26+
"outputs": [
27+
{
28+
"data": {
29+
"application/vnd.jupyter.widget-view+json": {
30+
"model_id": "00dc6cf59d6e4c68a19bb2588bb36b87",
31+
"version_major": 2,
32+
"version_minor": 0
33+
},
34+
"text/plain": [
35+
"Map(center=[40, -100], controls=(WidgetControl(options=['position'], widget=HBox(children=(ToggleButton(value=…"
36+
]
37+
},
38+
"metadata": {},
39+
"output_type": "display_data"
40+
}
41+
],
42+
"source": [
43+
"Map = geemap.Map()\n",
44+
"Map"
45+
]
46+
},
47+
{
48+
"cell_type": "code",
49+
"execution_count": 5,
50+
"metadata": {},
51+
"outputs": [],
52+
"source": [
53+
"region = Map.draw_last_feature\n",
54+
"roi=region.geometry()"
55+
]
56+
},
57+
{
58+
"cell_type": "code",
59+
"execution_count": 6,
60+
"metadata": {},
61+
"outputs": [],
62+
"source": [
63+
"landsat_ts = geemap.landsat_timeseries(roi=roi, start_year=1984, end_year=2019, start_date='01-01', end_date='12-31')"
64+
]
65+
},
66+
{
67+
"cell_type": "code",
68+
"execution_count": 7,
69+
"metadata": {},
70+
"outputs": [],
71+
"source": [
72+
"layer_names = ['Landsat ' + str(year) for year in range(1984, 2020)]"
73+
]
74+
},
75+
{
76+
"cell_type": "code",
77+
"execution_count": 8,
78+
"metadata": {},
79+
"outputs": [],
80+
"source": [
81+
"landsat_vis = {\n",
82+
" 'min': 0,\n",
83+
" 'max': 4000,\n",
84+
" 'gamma': [1, 1, 1],\n",
85+
" 'bands': ['Red', 'Green','Blue']}"
86+
]
87+
},
88+
{
89+
"cell_type": "code",
90+
"execution_count": 9,
91+
"metadata": {},
92+
"outputs": [
93+
{
94+
"data": {
95+
"application/vnd.jupyter.widget-view+json": {
96+
"model_id": "19343ce5459b4569b211decc9f7ce221",
97+
"version_major": 2,
98+
"version_minor": 0
99+
},
100+
"text/plain": [
101+
"Map(center=[-11.100357408142367, -61.74819949999997], controls=(WidgetControl(options=['position'], widget=Dro…"
102+
]
103+
},
104+
"metadata": {},
105+
"output_type": "display_data"
106+
}
107+
],
108+
"source": [
109+
"Map = geemap.Map()\n",
110+
"Map.ts_inspector(left_ts=landsat_ts, right_ts=landsat_ts, left_names=layer_names, right_names=layer_names, left_vis=landsat_vis, right_vis=landsat_vis)\n",
111+
"Map.centerObject(roi, zoom=8)\n",
112+
"Map"
113+
]
114+
},
115+
{
116+
"cell_type": "code",
117+
"execution_count": null,
118+
"metadata": {},
119+
"outputs": [],
120+
"source": []
121+
}
122+
],
123+
"metadata": {
124+
"hide_input": false,
125+
"kernelspec": {
126+
"display_name": "Python 3",
127+
"language": "python",
128+
"name": "python3"
129+
},
130+
"language_info": {
131+
"codemirror_mode": {
132+
"name": "ipython",
133+
"version": 3
134+
},
135+
"file_extension": ".py",
136+
"mimetype": "text/x-python",
137+
"name": "python",
138+
"nbconvert_exporter": "python",
139+
"pygments_lexer": "ipython3",
140+
"version": "3.8.5"
141+
},
142+
"toc": {
143+
"base_numbering": 1,
144+
"nav_menu": {},
145+
"number_sections": true,
146+
"sideBar": true,
147+
"skip_h1_title": true,
148+
"title_cell": "Table of Contents",
149+
"title_sidebar": "Table of Contents",
150+
"toc_cell": false,
151+
"toc_position": {},
152+
"toc_section_display": true,
153+
"toc_window_display": true
154+
},
155+
"varInspector": {
156+
"cols": {
157+
"lenName": 16,
158+
"lenType": 16,
159+
"lenVar": 40
160+
},
161+
"kernels_config": {
162+
"python": {
163+
"delete_cmd_postfix": "",
164+
"delete_cmd_prefix": "del ",
165+
"library": "var_list.py",
166+
"varRefreshCmd": "print(var_dic_list())"
167+
},
168+
"r": {
169+
"delete_cmd_postfix": ") ",
170+
"delete_cmd_prefix": "rm(",
171+
"library": "var_list.r",
172+
"varRefreshCmd": "cat(var_dic_list()) "
173+
}
174+
},
175+
"types_to_exclude": [
176+
"module",
177+
"function",
178+
"builtin_function_or_method",
179+
"instance",
180+
"_Feature"
181+
],
182+
"window_display": false
183+
}
184+
},
185+
"nbformat": 4,
186+
"nbformat_minor": 4
187+
}

0 commit comments

Comments
 (0)