MCPcopy Create free account
hub / github.com/Thanas-R/Virdis / ndviLabel

Function ndviLabel

src/components/FieldDetailView.tsx:117–122  ·  view source on GitHub ↗
(val: number)

Source from the content-addressed store, hash-verified

115}
116
117function ndviLabel(val: number): string {
118 if (val > 0.6) return "Healthy";
119 if (val > 0.4) return "Moderate";
120 if (val > 0.2) return "Stressed";
121 return "Critical";
122}
123
124function getAqiLabel(aqi: number): { label: string; color: string } {
125 if (aqi <= 20) return { label: "Good", color: "#7BC75B" };

Callers 1

FieldDetailViewFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected