Skip to content

Instantly share code, notes, and snippets.

@giswqs
Created October 10, 2020 15:08
Show Gist options
  • Save giswqs/365ff6914011fcd7e60326499765ff91 to your computer and use it in GitHub Desktop.
Save giswqs/365ff6914011fcd7e60326499765ff91 to your computer and use it in GitHub Desktop.
ndwi_timeseries.ipynb
Display the source blob
Display the rendered blob
Raw
{
"cells": [
{
"metadata": {
"trusted": true
},
"cell_type": "code",
"source": "import ee\nimport geemap",
"execution_count": 1,
"outputs": []
},
{
"metadata": {},
"cell_type": "markdown",
"source": "Install the development version from GitHub"
},
{
"metadata": {
"trusted": true
},
"cell_type": "code",
"source": "# geemap.update_package()",
"execution_count": 2,
"outputs": []
},
{
"metadata": {
"scrolled": false,
"trusted": true
},
"cell_type": "code",
"source": "Map = geemap.Map()\nMap",
"execution_count": 3,
"outputs": [
{
"output_type": "display_data",
"data": {
"text/plain": "Map(center=[40, -100], controls=(WidgetControl(options=['position'], widget=HBox(children=(ToggleButton(value=…",
"application/vnd.jupyter.widget-view+json": {
"version_major": 2,
"version_minor": 0,
"model_id": "f139646aa59840628ef0d6a670fa899b"
}
},
"metadata": {}
}
]
},
{
"metadata": {},
"cell_type": "markdown",
"source": "Use the Drawing Tools to draw a rectangle around Hesaraghatta Lake."
},
{
"metadata": {
"trusted": true
},
"cell_type": "code",
"source": "Map.setCenter( 77.490202, 13.157374, 12)",
"execution_count": 4,
"outputs": []
},
{
"metadata": {
"trusted": true
},
"cell_type": "code",
"source": "Map.add_landsat_ts_gif(label= 'Hesaraghatta Lake', nd_bands=['Green', 'SWIR1'], nd_palette=['black', 'blue'], start_year=2000, start_date='01-01', end_date='12-31', frames_per_second=5)",
"execution_count": 5,
"outputs": [
{
"output_type": "stream",
"text": "Generating URL...\nDownloading GIF image from https://earthengine.googleapis.com/v1alpha/projects/earthengine-legacy/videoThumbnails/76390b2ca325aa20c92e55364cad2004-7dea14f0bce802cd7ce6befe14f64e64:getPixels\nPlease wait ...\nThe GIF image has been saved to: /home/qiusheng/Downloads/landsat_ts_mal.gif\nGenerating URL...\nDownloading GIF image from https://earthengine.googleapis.com/v1alpha/projects/earthengine-legacy/videoThumbnails/69ea408b48480395186532d8d8053fa1-aee2d6c4140ac0cded9e89d32117728e:getPixels\nPlease wait ...\nThe GIF image has been saved to: /home/qiusheng/Downloads/landsat_ts_mal_nd.gif\nAdding animated text to GIF ...\nAdding GIF to the map ...\nThe timelapse has been added to the map.\n",
"name": "stdout"
}
]
}
],
"metadata": {
"hide_input": false,
"kernelspec": {
"name": "python3",
"display_name": "Python 3",
"language": "python"
},
"language_info": {
"name": "python",
"version": "3.8.2",
"mimetype": "text/x-python",
"codemirror_mode": {
"name": "ipython",
"version": 3
},
"pygments_lexer": "ipython3",
"nbconvert_exporter": "python",
"file_extension": ".py"
},
"toc": {
"nav_menu": {},
"number_sections": true,
"sideBar": true,
"skip_h1_title": true,
"base_numbering": 1,
"title_cell": "Table of Contents",
"title_sidebar": "Table of Contents",
"toc_cell": false,
"toc_position": {},
"toc_section_display": true,
"toc_window_display": true
},
"varInspector": {
"window_display": false,
"cols": {
"lenName": 16,
"lenType": 16,
"lenVar": 40
},
"kernels_config": {
"python": {
"library": "var_list.py",
"delete_cmd_prefix": "del ",
"delete_cmd_postfix": "",
"varRefreshCmd": "print(var_dic_list())"
},
"r": {
"library": "var_list.r",
"delete_cmd_prefix": "rm(",
"delete_cmd_postfix": ") ",
"varRefreshCmd": "cat(var_dic_list()) "
}
},
"types_to_exclude": [
"module",
"function",
"builtin_function_or_method",
"instance",
"_Feature"
]
},
"gist": {
"id": "",
"data": {
"description": "ndwi_timeseries.ipynb",
"public": true
}
}
},
"nbformat": 4,
"nbformat_minor": 4
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment