Spaces:
Sleeping
Sleeping
Commit ·
07c8371
1
Parent(s): a66f549
Add expanded metrics: biomass, leaf_health, heat_stress, stress_pattern
Browse files
app.py
CHANGED
|
@@ -82,16 +82,20 @@ PIXELWISE_METRICS = {
|
|
| 82 |
'soil_fertility': 'SFI',
|
| 83 |
'soil_salinity': 'SASI',
|
| 84 |
'greenness': 'NDVI',
|
|
|
|
| 85 |
'nitrogen_level': 'NDRE',
|
| 86 |
'photosynthetic_capacity': 'PRI',
|
|
|
|
| 87 |
}
|
| 88 |
|
| 89 |
-
# Metrics that require CNN+Clustering+LLM
|
| 90 |
LLM_METRICS = {
|
| 91 |
'pest_risk': {'primary_index': 'NDVI', 'use_stress': True},
|
| 92 |
'disease_risk': {'primary_index': 'PSRI', 'use_stress': True},
|
| 93 |
'nutrient_stress': {'primary_index': 'GNDVI', 'use_stress': True},
|
| 94 |
'stress_zones': {'primary_index': 'NDVI', 'use_stress': True},
|
|
|
|
|
|
|
| 95 |
}
|
| 96 |
|
| 97 |
ALL_METRICS = list(PIXELWISE_METRICS.keys()) + list(LLM_METRICS.keys())
|
|
|
|
| 82 |
'soil_fertility': 'SFI',
|
| 83 |
'soil_salinity': 'SASI',
|
| 84 |
'greenness': 'NDVI',
|
| 85 |
+
'biomass': 'EVI',
|
| 86 |
'nitrogen_level': 'NDRE',
|
| 87 |
'photosynthetic_capacity': 'PRI',
|
| 88 |
+
'leaf_health': 'GNDVI',
|
| 89 |
}
|
| 90 |
|
| 91 |
+
# Metrics that require CNN+Clustering+LLM reasoning
|
| 92 |
LLM_METRICS = {
|
| 93 |
'pest_risk': {'primary_index': 'NDVI', 'use_stress': True},
|
| 94 |
'disease_risk': {'primary_index': 'PSRI', 'use_stress': True},
|
| 95 |
'nutrient_stress': {'primary_index': 'GNDVI', 'use_stress': True},
|
| 96 |
'stress_zones': {'primary_index': 'NDVI', 'use_stress': True},
|
| 97 |
+
'heat_stress': {'primary_index': 'NDVI', 'use_stress': True},
|
| 98 |
+
'stress_pattern': {'primary_index': 'NDVI', 'use_stress': True},
|
| 99 |
}
|
| 100 |
|
| 101 |
ALL_METRICS = list(PIXELWISE_METRICS.keys()) + list(LLM_METRICS.keys())
|