Add Avg Index
Browse files
app.py
CHANGED
|
@@ -838,7 +838,7 @@ def compute_index_histogram(file_url: str, index_name: str, start_date: str, end
|
|
| 838 |
|
| 839 |
# Use median composite to avoid cloud spikes
|
| 840 |
# mosaic = collection.median()
|
| 841 |
-
mosaic = collection.
|
| 842 |
mean_val = mosaic.reduceRegion(
|
| 843 |
reducer=ee.Reducer.mean(),
|
| 844 |
geometry=ee_geometry,
|
|
|
|
| 838 |
|
| 839 |
# Use median composite to avoid cloud spikes
|
| 840 |
# mosaic = collection.median()
|
| 841 |
+
mosaic = collection.qualityMosaic(index_name)
|
| 842 |
mean_val = mosaic.reduceRegion(
|
| 843 |
reducer=ee.Reducer.mean(),
|
| 844 |
geometry=ee_geometry,
|