Make this Notebook Trusted to load map: File -> Trust Notebook
"
]
},
"metadata": {},
"execution_count": 13
}
],
"source": [
"#Add Google satellite basemap\n",
"basemap = { \n",
" 'Google Satellite': folium.TileLayer(\n",
" tiles = \\\n",
" 'https://mt1.google.com/vt/lyrs=s&x={x}&y={y}&z={z}',\n",
" attr = 'Google',\n",
" name = 'Google Satellite',\n",
" overlay = True,\n",
" control = True\n",
" )\n",
"}\n",
"\n",
"Map = folium.Map(\n",
" location=[5.1, 46.1], \n",
" width=600,\n",
" height=600,\n",
" zoom_start=6)\n",
"basemap['Google Satellite'].add_to(Map)\n",
"\n",
"#NDVI for analysis period \n",
"Map.add_ee_layer(analysis_period_NDVI,\n",
" {'min':0, \n",
" 'max':9000,\n",
" 'palette':palette}, \n",
" \"NDVI for analysis period\")\n",
"\n",
"#Historic NDVI aggregation \n",
"Map.add_ee_layer(historic_NDVI_images_year_aggregation\n",
" .median(),\n",
" {'min':0,\n",
" 'max':9000, \n",
" 'palette':palette},\n",
" \"Historic NDVI aggregation\")\n",
"\n",
"#Historic threshold \n",
"Map.add_ee_layer(historic_threshold,\n",
" {'min':0,\n",
" 'max':9000,\n",
" 'palette':palette},\n",
" \"Historic threshold\")\n",
"\n",
"#Add final bitmap to map \n",
"Map.add_ee_layer(bitmap,bitmap_params,\n",
" \"Agricultural drought bitmap\")\n",
"\n",
"Map.add_child(folium.LayerControl())\n",
"\n",
"Map"
]
}
],
"metadata": {
"colab": {
"collapsed_sections": [],
"name": "STRATA Agricultural Drought Indicator Code Example.ipynb",
"provenance": []
},
"kernelspec": {
"display_name": "Python 3",
"name": "python3"
},
"language_info": {
"name": "python"
}
},
"nbformat": 4,
"nbformat_minor": 0
}