Last active
October 14, 2024 04:51
-
-
Save giswqs/fb930e533bddb8fc0bb4458cc2730578 to your computer and use it in GitHub Desktop.
Timelapse of Hurricane Milton
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"cells": [ | |
{ | |
"cell_type": "markdown", | |
"metadata": {}, | |
"source": [ | |
"Create satellite timelapse animations of Hurricane Milton using Earth Engine and geemap" | |
] | |
}, | |
{ | |
"cell_type": "code", | |
"execution_count": 1, | |
"metadata": {}, | |
"outputs": [], | |
"source": [ | |
"import ee\n", | |
"import geemap" | |
] | |
}, | |
{ | |
"cell_type": "code", | |
"execution_count": null, | |
"metadata": {}, | |
"outputs": [], | |
"source": [ | |
"m = geemap.Map(center=[40, -100], zoom=4)\n", | |
"m" | |
] | |
}, | |
{ | |
"cell_type": "markdown", | |
"metadata": {}, | |
"source": [ | |
"Draw a rectange on the map above. " | |
] | |
}, | |
{ | |
"cell_type": "code", | |
"execution_count": null, | |
"metadata": {}, | |
"outputs": [], | |
"source": [ | |
"roi = m.user_roi\n", | |
"if roi is None:\n", | |
" roi = ee.Geometry.BBox(-98.1738, 18.0623, -76.8164, 31.6534)\n", | |
"start_date = \"2024-10-09T12:00:00\"\n", | |
"end_date = \"2024-10-09T22:00:00\"\n", | |
"data = \"GOES-16\"\n", | |
"scan = \"full_disk\"" | |
] | |
}, | |
{ | |
"cell_type": "code", | |
"execution_count": null, | |
"metadata": {}, | |
"outputs": [], | |
"source": [ | |
"timelapse = geemap.goes_timelapse(\n", | |
" roi, \"Hurricane_Milton.gif\", start_date, end_date, data, scan, framesPerSecond=5, overlay_data=\"us_states\"\n", | |
")\n", | |
"geemap.show_image(timelapse)" | |
] | |
} | |
], | |
"metadata": { | |
"kernelspec": { | |
"display_name": "geo", | |
"language": "python", | |
"name": "python3" | |
}, | |
"language_info": { | |
"codemirror_mode": { | |
"name": "ipython", | |
"version": 3 | |
}, | |
"file_extension": ".py", | |
"mimetype": "text/x-python", | |
"name": "python", | |
"nbconvert_exporter": "python", | |
"pygments_lexer": "ipython3", | |
"version": "3.11.8" | |
} | |
}, | |
"nbformat": 4, | |
"nbformat_minor": 2 | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment