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 if (val > 0.4) return "#66bd63";
116 if (val > 0.2) return "#fee08b";
117 return "#d73027";
118}
119
120function ndviLabel(val: number): string {
121 if (val > 0.6) return "Healthy";
122 if (val > 0.4) return "Moderate";
123 if (val > 0.2) return "Stressed";
124 return "Critical";
125}

Callers 1

FieldDetailViewFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected