Esmaeilkiani commited on
Commit
8d91969
1 Parent(s): 9b9cf2a

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +6 -6
app.py CHANGED
@@ -59,7 +59,7 @@ def calculate_ndre(coordinates, start_date, end_date):
59
  st.title("Farm Parameter Prediction App")
60
 
61
  # User input
62
- selected_farm = st.selectbox("Select Farm", farm_names)
63
  farm_age = st.number_input("Farm Age (years)", min_value=0)
64
  farm_variety = st.text_input("Farm Variety")
65
  start_date = st.date_input("Start Date")
@@ -79,11 +79,11 @@ if st.button("Calculate NDRE and Show Map"):
79
  Map = geemap.Map()
80
  Map.centerObject(ee.Geometry.Point(coordinates), 12)
81
 
82
- # Add NDRE layer
83
- #This part requires more detailed specification of the image and display parameters.
84
- #Example (Adapt according to your NDRE image and color scheme)
85
- #vis_params = {'min': 0, 'max': 1, 'palette': ['blue', 'green', 'yellow', 'red']}
86
- #Map.addLayer(ndre_image, vis_params, 'NDRE')
87
 
88
  #Display Map
89
  Map.to_streamlit(height=500)
 
59
  st.title("Farm Parameter Prediction App")
60
 
61
  # User input
62
+ selected_farm = st.selectbox("Select Farm", Farm)
63
  farm_age = st.number_input("Farm Age (years)", min_value=0)
64
  farm_variety = st.text_input("Farm Variety")
65
  start_date = st.date_input("Start Date")
 
79
  Map = geemap.Map()
80
  Map.centerObject(ee.Geometry.Point(coordinates), 12)
81
 
82
+ Add NDRE layer
83
+ This part requires more detailed specification of the image and display parameters.
84
+ Example (Adapt according to your NDRE image and color scheme)
85
+ vis_params = {'min': 0, 'max': 1, 'palette': ['blue', 'green', 'yellow', 'red']}
86
+ Map.addLayer(ndre_image, vis_params, 'NDRE')
87
 
88
  #Display Map
89
  Map.to_streamlit(height=500)