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

Function ndviColor

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

Source from the content-addressed store, hash-verified

108}
109
110function ndviColor(val: number): string {
111 if (val > 0.6) return "hsl(var(--field-green, 140 40% 40%))";
112 if (val > 0.4) return "#66bd63";
113 if (val > 0.2) return "#fee08b";
114 return "#d73027";
115}
116
117function ndviLabel(val: number): string {
118 if (val > 0.6) return "Healthy";

Callers 1

FieldDetailViewFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected