update app.py
Browse files
app.py
CHANGED
@@ -99,7 +99,7 @@ if index_choice == 'Custom Formula':
|
|
99 |
# Step 6: Calculate and Display Results based on selected index or formula
|
100 |
if sub_selection and st.button("Calculate Index"):
|
101 |
# Use the selected dataset from the main and sub-selection as an ImageCollection
|
102 |
-
collection = ee.ImageCollection(sub_selection).filterDate('2020-01-01', '2020-1-31')
|
103 |
image = collection.first() # Using the first image in the collection as an example
|
104 |
|
105 |
result_image = None
|
|
|
99 |
# Step 6: Calculate and Display Results based on selected index or formula
|
100 |
if sub_selection and st.button("Calculate Index"):
|
101 |
# Use the selected dataset from the main and sub-selection as an ImageCollection
|
102 |
+
collection = ee.ImageCollection(data[main_selection]["sub_options"][sub_selection]).filterDate('2020-01-01', '2020-1-31')
|
103 |
image = collection.first() # Using the first image in the collection as an example
|
104 |
|
105 |
result_image = None
|