98 timelapse fading
Uncomment the following line to install geemap if needed.
In [ ]:
Copied!
# !pip install geemap
# !pip install geemap
In [ ]:
Copied!
import ee
import geemap
import ee
import geemap
Add fading effect to existing GIF.
In [ ]:
Copied!
url = "https://i.imgur.com/ZWSZC5z.gif"
url = "https://i.imgur.com/ZWSZC5z.gif"
In [ ]:
Copied!
geemap.show_image(url, verbose=False)
geemap.show_image(url, verbose=False)
In [ ]:
Copied!
out_gif = "gif_fading.gif"
out_gif = "gif_fading.gif"
In [ ]:
Copied!
geemap.gif_fading(url, out_gif, verbose=False)
geemap.gif_fading(url, out_gif, verbose=False)
In [ ]:
Copied!
geemap.show_image(out_gif)
geemap.show_image(out_gif)
Create a timelapse from scratch and add fading effect.
In [ ]:
Copied!
Map = geemap.Map()
Map.add_basemap("HYBRID")
Map
Map = geemap.Map()
Map.add_basemap("HYBRID")
Map
Sierra Gorda and Spence copper mines, Chile
In [ ]:
Copied!
roi = ee.Geometry.Polygon(
[
[
[-69.315491, -22.837104],
[-69.315491, -22.751488],
[-69.190006, -22.751488],
[-69.190006, -22.837104],
[-69.315491, -22.837104],
]
]
)
roi = ee.Geometry.Polygon(
[
[
[-69.315491, -22.837104],
[-69.315491, -22.751488],
[-69.190006, -22.751488],
[-69.190006, -22.837104],
[-69.315491, -22.837104],
]
]
)
In [ ]:
Copied!
Map.addLayer(roi, {}, "ROI")
Map.centerObject(roi)
Map.addLayer(roi, {}, "ROI")
Map.centerObject(roi)
In [ ]:
Copied!
title = "Sierra Gorda copper mines, Chile"
out_gif = "timelapse.gif"
title = "Sierra Gorda copper mines, Chile"
out_gif = "timelapse.gif"
In [ ]:
Copied!
geemap.landsat_timelapse(
roi,
out_gif,
start_year=2004,
end_year=2010,
frames_per_second=1,
title=title,
fading=False,
)
geemap.landsat_timelapse(
roi,
out_gif,
start_year=2004,
end_year=2010,
frames_per_second=1,
title=title,
fading=False,
)
In [ ]:
Copied!
geemap.show_image(out_gif)
geemap.show_image(out_gif)
In [ ]:
Copied!
out_fading_gif = "timelapse_fading.gif"
out_fading_gif = "timelapse_fading.gif"
In [ ]:
Copied!
geemap.landsat_timelapse(
roi,
out_fading_gif,
start_year=2004,
end_year=2010,
frames_per_second=1,
title=title,
fading=True,
)
geemap.landsat_timelapse(
roi,
out_fading_gif,
start_year=2004,
end_year=2010,
frames_per_second=1,
title=title,
fading=True,
)
In [ ]:
Copied!
geemap.show_image(out_fading_gif)
geemap.show_image(out_fading_gif)