giswqs commited on
Commit
d87ad52
·
1 Parent(s): 292cf56

Fixed MODIS LST bug

Browse files
Files changed (1) hide show
  1. apps/timelapse.py +11 -5
apps/timelapse.py CHANGED
@@ -923,9 +923,15 @@ def app():
923
  loop=0,
924
  )
925
 
926
- geemap.reduce_gif_size(out_gif)
927
 
928
- empty_text.text(
929
- "Right click the GIF to save it to your computer👇"
930
- )
931
- empty_image.image(out_gif)
 
 
 
 
 
 
 
923
  loop=0,
924
  )
925
 
926
+ if os.path.exists(out_gif):
927
 
928
+ geemap.reduce_gif_size(out_gif)
929
+
930
+ empty_text.text(
931
+ "Right click the GIF to save it to your computer👇"
932
+ )
933
+ empty_image.image(out_gif)
934
+ else:
935
+ st.error(
936
+ "Something went wrong. You probably requested too much data. Try reducing the ROI or timespan."
937
+ )