UjjwalKGupta commited on
Commit
5e56dc9
1 Parent(s): 43ee3b6

Clip NDVI by Outer Buffer Boundary

Browse files
Files changed (1) hide show
  1. app.py +4 -3
app.py CHANGED
@@ -558,14 +558,15 @@ if "result" in st.session_state:
558
  vis_params = {'min': -0.1,
559
  'max': 0.6,
560
  'palette': ['#0000FF', '#FF0000', '#FFFF00', '#FFA500', '#00FE00', '#00A400', '#006D00']}
561
-
562
 
563
- m.add_layer(mosaic.select(veg_index), vis_params)
564
  # add colorbar
565
  # m.add_colorbar(colors=["#000000", "#00FF00"], vmin=0.0, vmax=1.0)
566
- add_geometry_to_maps([m])
567
  if veg_index!='NDVI':
 
568
  m.add_child(colormap)
 
569
  m.to_streamlit()
570
 
571
  for name, key in zip(
 
558
  vis_params = {'min': -0.1,
559
  'max': 0.6,
560
  'palette': ['#0000FF', '#FF0000', '#FFFF00', '#FFA500', '#00FE00', '#00A400', '#006D00']}
561
+ m.add_layer(mosaic.select(veg_index).clip(buffer_ee_geometry), vis_params )
562
 
 
563
  # add colorbar
564
  # m.add_colorbar(colors=["#000000", "#00FF00"], vmin=0.0, vmax=1.0)
565
+
566
  if veg_index!='NDVI':
567
+ m.add_layer(mosaic.select(veg_index), vis_params)
568
  m.add_child(colormap)
569
+ add_geometry_to_maps([m])
570
  m.to_streamlit()
571
 
572
  for name, key in zip(