Merge branch 'main' of https://huggingface.co/spaces/IITGN-GFD/NDVI_PERG into main
Browse files
app.py
CHANGED
@@ -270,7 +270,7 @@ def get_dem_slope_maps(buffer_ee_geometry):
|
|
270 |
'{}-{} m'.format(min_value+tick_size, min_value+2*tick_size): '#00FF00',
|
271 |
'{}-{} m'.format(min_value+2*tick_size, min_value+3*tick_size): '#FFFF00',
|
272 |
'{}-{} m'.format(min_value+3*tick_size, max_value): '#FF0000'},
|
273 |
-
position='bottomright')
|
274 |
|
275 |
# Create the map for Slope
|
276 |
slope_map = gee_folium.Map(controls={'scale':'bottomleft'})
|
@@ -300,7 +300,7 @@ def get_dem_slope_maps(buffer_ee_geometry):
|
|
300 |
'{}-{} deg'.format(min_value+tick_size, min_value+2*tick_size): '#00FF00',
|
301 |
'{}-{} deg'.format(min_value+2*tick_size, min_value+3*tick_size): '#FFFF00',
|
302 |
'{}-{} deg'.format(min_value+3*tick_size, max_value): '#FF0000'},
|
303 |
-
position='bottomright')
|
304 |
return dem_map, slope_map
|
305 |
|
306 |
|
@@ -684,7 +684,7 @@ if "result" in st.session_state:
|
|
684 |
'0.4-0.5: Dense ({}%)'.format(formatted_histogram[5]): '#00A400',
|
685 |
'>0.5: Very Dense ({}%)'.format(formatted_histogram[6]): '#006D00',
|
686 |
},
|
687 |
-
position='bottomright')
|
688 |
ndvi_vis_params = {'min': -0.1,
|
689 |
'max': 0.6,
|
690 |
'palette': ['#0000FF', '#FF0000', '#FFFF00', '#FFA500', '#00FE00', '#00A400', '#006D00']}
|
|
|
270 |
'{}-{} m'.format(min_value+tick_size, min_value+2*tick_size): '#00FF00',
|
271 |
'{}-{} m'.format(min_value+2*tick_size, min_value+3*tick_size): '#FFFF00',
|
272 |
'{}-{} m'.format(min_value+3*tick_size, max_value): '#FF0000'},
|
273 |
+
position='bottomright', draggable=False)
|
274 |
|
275 |
# Create the map for Slope
|
276 |
slope_map = gee_folium.Map(controls={'scale':'bottomleft'})
|
|
|
300 |
'{}-{} deg'.format(min_value+tick_size, min_value+2*tick_size): '#00FF00',
|
301 |
'{}-{} deg'.format(min_value+2*tick_size, min_value+3*tick_size): '#FFFF00',
|
302 |
'{}-{} deg'.format(min_value+3*tick_size, max_value): '#FF0000'},
|
303 |
+
position='bottomright', draggable=False)
|
304 |
return dem_map, slope_map
|
305 |
|
306 |
|
|
|
684 |
'0.4-0.5: Dense ({}%)'.format(formatted_histogram[5]): '#00A400',
|
685 |
'>0.5: Very Dense ({}%)'.format(formatted_histogram[6]): '#006D00',
|
686 |
},
|
687 |
+
position='bottomright', draggable=False)
|
688 |
ndvi_vis_params = {'min': -0.1,
|
689 |
'max': 0.6,
|
690 |
'palette': ['#0000FF', '#FF0000', '#FFFF00', '#FFA500', '#00FE00', '#00A400', '#006D00']}
|