Timelapse images and GIFs are all black
James-S-Santangelo opened this issue · 3 comments
Environment Information
Please run the following code on your computer and share the output with us so that we can better debug your issue:
import geemap
geemap.Report()
Description
Describe what you were trying to get done.
Tell us what happened, what went wrong, and what you expected to happen.
I'm trying to create a timelapse GIF for a particular region, but all the images are showing up black on the map (see below). I am able to add a timelapse to the map, but cannot generate the images to create a GIF.
What I Did
Paste the command(s) you ran and the output.
If there was a crash, please include the traceback here.
Here is the code I ran to generate the above figure:
roi = Map.draw_last_feature
collection = geemap.landsat_timeseries(
roi=roi, start_year=1984, end_year=2019, start_date="01-01", end_date="12-31"
)
first_image = collection.first()
vis = {"bands": ["Blue", "Red", "Green"], "min": 0, "max": 4000, "gamma": [1,1,1]}
Map.addLayer(first_image, vis, "First image")
Note that the following code works and generates a timelapse:
label = "Urban Growth in Ottawa, Canada"
Map.add_landsat_ts_gif(
label=label,
start_year=1984,
bands=["Red", "Green", "Blue"],
font_color="white",
frames_per_second=2,
progress_bar_color="blue",
)
Any idea what might be happening? Thanks!
It is reflectance data, the value range should be 0-1. Change max from 4000 to 1 or smaller
Set an even smaller max value, e.g., 0.4. It should become brighter