Uncomment the following line to install geemap if needed.
# !pip install geemap
import ee
import geemap
If run into errors, uncomment the following line to update the package and restart the kernel to take effect.
# geemap.update_package()
Map = geemap.Map()
Map
Create a region of interest.
region = ee.Geometry.Polygon(
[
[
[-99.101934, 47.12745],
[-99.101934, 47.156232],
[-99.033441, 47.156232],
[-99.033441, 47.12745],
[-99.101934, 47.12745],
]
]
)
Map.addLayer(region)
Map.centerObject(region)
Create a timeseries
collection = geemap.naip_timeseries(region, RGBN=True)
images = collection.toList(collection.size())
Get image dates
dates = geemap.image_dates(collection).getInfo()
size = images.size().getInfo()
Add images to the map
for i in range(size):
image = ee.Image(images.get(i))
Map.addLayer(image, {"bands": ["N", "R", "G"]}, dates[i][:4])
Create s timelapse
timelapse = geemap.naip_timelapse(
region, out_gif="naip.gif", bands=["N", "R", "G"], frames_per_second=3, mp4=True
)
geemap.show_image(timelapse)