-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathScript.jar
More file actions
17 lines (17 loc) · 760 Bytes
/
Copy pathScript.jar
File metadata and controls
17 lines (17 loc) · 760 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
// Mix Leaf Area Index with Sentinel 2 Bands//
//Creat by: Dr.Hamid Rahimi//
var MixLAI = ((B08/(B04+B11))+(B08/(B04+B12)))/2.0 // calculate the index
if (MixLAI<0.0) return [0,0,0];
else if (MixLAI<0.25) return [0.95,0.95,0.8];
else if (MixLAI<0.5) return [0.93,0.91,0.71];
else if (MixLAI<0.75) return [0.87,0.85,0.61];
else if (MixLAI<1.0) return [0.57,0.75,0.32];
else if (MixLAI<1.5) return [0.44,0.64,0.25];
else if (MixLAI<2.0) return [0.31,0.54,0.18];
else if (MixLAI<2.5) return [0.19,0.43,0.11];
else if (MixLAI<3.0) return [0.57,0.75,0.32];
else if (MixLAI<3.5) return [0.44,0.64,0.25];
else if (MixLAI<4.0) return [0.31,0.54,0.18];
else if (MixLAI<4.5) return [0.19,0.43,0.11];
else if (MixLAI<5.0) return [0.06,0.33,0.04];
else return [0,0.15,0];