Skip to content

Commit ee031da

Browse files
committed
Major update of indexdb formulas
1 parent d926d1f commit ee031da

File tree

197 files changed

+2744
-1750
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

197 files changed

+2744
-1750
lines changed

sentinel-2/indexdb/id_1.js

+14-9
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,23 @@
1-
// Alteration
2-
// URL http://www.indexdatabase.de/db/si-single.php?rsindex_id=1=&sensor_id=96
1+
//
2+
// Alteration (abbrv. )
3+
//
4+
// General formula: [1600:1700] / [2145:2185]
5+
//
6+
// URL https://www.indexdatabase.de/db/si-single.php?sensor_id=96&rsindex_id=1
7+
//
38

4-
let index = (B11)/(B12);
5-
let min = 0.059;
6-
let max = 17.387;
9+
let index = B11 / B12;
10+
let min = 0.058;
11+
let max = 17.114;
712

813
// colorBlend will return a color when the index is between min and max and white when it is less than min.
914
// To see black when it is more than max, uncomment the last line of colorBlend.
1015
// The min/max values were computed automatically and may be poorly specified, feel free to change them to tweak the displayed range.
1116

12-
var underflow_color = [1, 1, 1];
13-
var low_color = [208/255, 88/255, 126/255];
14-
var high_color = [241/255, 234/255, 200/255];
15-
var overflow_color = [0, 0, 0];
17+
let underflow_color = [1, 1, 1];
18+
let low_color = [208/255, 88/255, 126/255];
19+
let high_color = [241/255, 234/255, 200/255];
20+
let overflow_color = [0, 0, 0];
1621

1722
return colorBlend(index, [min, min, max],
1823
[

sentinel-2/indexdb/id_104.js

+18-10
Original file line numberDiff line numberDiff line change
@@ -1,21 +1,29 @@
1-
// Weighted Difference Vegetation Index
2-
// URL http://www.indexdatabase.de/db/si-single.php?rsindex_id=104=&sensor_id=96
1+
//
2+
// Weighted Difference Vegetation Index (abbrv. WDVI)
3+
//
4+
// General formula: NIR - a * RED
5+
//
6+
// URL https://www.indexdatabase.de/db/si-single.php?sensor_id=96&rsindex_id=104
7+
//
38

4-
let index = B09-B8A*B05;
5-
let min = -0.071;
6-
let max = 0.38;
9+
// Initialize parameters
10+
let a = 0.460;
11+
12+
let index = B08 - a * B04;
13+
let min = -0.242;
14+
let max = 0.371;
715
let zero = 0.0;
816

917
// colorBlend will return a color when the index is between min and max and white when it is less than min.
1018
// To see black when it is more than max, uncomment the last line of colorBlend.
1119
// The min/max values were computed automatically and may be poorly specified, feel free to change them to tweak the displayed range.
1220
// This index crosses zero, so a diverging color map is used. To tweak the value of the break in the color map, change the variable 'zero'.
1321

14-
var underflow_color = [1, 1, 1];
15-
var low_color = [208/255, 88/255, 126/255];
16-
var high_color = [241/255, 234/255, 200/255];
17-
var zero_color = [0, 147/255, 146/255];
18-
var overflow_color = [0, 0, 0];
22+
let underflow_color = [1, 1, 1];
23+
let low_color = [208/255, 88/255, 126/255];
24+
let high_color = [241/255, 234/255, 200/255];
25+
let zero_color = [0, 147/255, 146/255];
26+
let overflow_color = [0, 0, 0];
1927

2028
return colorBlend(index, [min, min, zero, max],
2129
[

sentinel-2/indexdb/id_109.js

+15-10
Original file line numberDiff line numberDiff line change
@@ -1,21 +1,26 @@
1-
// Leaf Chlorophyll Index
2-
// URL http://www.indexdatabase.de/db/si-single.php?rsindex_id=109=&sensor_id=96
1+
//
2+
// Leaf Chlorophyll Index (abbrv. LCI)
3+
//
4+
// General formula: ([850]-[710])/([850]+[680])
5+
//
6+
// URL https://www.indexdatabase.de/db/si-single.php?sensor_id=96&rsindex_id=109
7+
//
38

4-
let index = (B08-B05)/(B08+B04);
5-
let min = -2.76;
6-
let max = 0.737;
9+
let index = (B08 - B05) / (B08 + B04);
10+
let min = -2.798;
11+
let max = 0.735;
712
let zero = 0.0;
813

914
// colorBlend will return a color when the index is between min and max and white when it is less than min.
1015
// To see black when it is more than max, uncomment the last line of colorBlend.
1116
// The min/max values were computed automatically and may be poorly specified, feel free to change them to tweak the displayed range.
1217
// This index crosses zero, so a diverging color map is used. To tweak the value of the break in the color map, change the variable 'zero'.
1318

14-
var underflow_color = [1, 1, 1];
15-
var low_color = [208/255, 88/255, 126/255];
16-
var high_color = [241/255, 234/255, 200/255];
17-
var zero_color = [0, 147/255, 146/255];
18-
var overflow_color = [0, 0, 0];
19+
let underflow_color = [1, 1, 1];
20+
let low_color = [208/255, 88/255, 126/255];
21+
let high_color = [241/255, 234/255, 200/255];
22+
let zero_color = [0, 147/255, 146/255];
23+
let overflow_color = [0, 0, 0];
1924

2025
return colorBlend(index, [min, min, zero, max],
2126
[

sentinel-2/indexdb/id_11.js

+15-10
Original file line numberDiff line numberDiff line change
@@ -1,21 +1,26 @@
1-
// Coloration Index
2-
// URL http://www.indexdatabase.de/db/si-single.php?rsindex_id=11=&sensor_id=96
1+
//
2+
// Coloration Index (abbrv. CI)
3+
//
4+
// General formula: (RED - BLUE) / RED
5+
//
6+
// URL https://www.indexdatabase.de/db/si-single.php?sensor_id=96&rsindex_id=11
7+
//
38

4-
let index = (B05-B01)/(B05);
5-
let min = -16.381;
6-
let max = 0.943;
9+
let index = (B04 - B02) / B04;
10+
let min = -16.29;
11+
let max = 0.941;
712
let zero = 0.0;
813

914
// colorBlend will return a color when the index is between min and max and white when it is less than min.
1015
// To see black when it is more than max, uncomment the last line of colorBlend.
1116
// The min/max values were computed automatically and may be poorly specified, feel free to change them to tweak the displayed range.
1217
// This index crosses zero, so a diverging color map is used. To tweak the value of the break in the color map, change the variable 'zero'.
1318

14-
var underflow_color = [1, 1, 1];
15-
var low_color = [208/255, 88/255, 126/255];
16-
var high_color = [241/255, 234/255, 200/255];
17-
var zero_color = [0, 147/255, 146/255];
18-
var overflow_color = [0, 0, 0];
19+
let underflow_color = [1, 1, 1];
20+
let low_color = [208/255, 88/255, 126/255];
21+
let high_color = [241/255, 234/255, 200/255];
22+
let zero_color = [0, 147/255, 146/255];
23+
let overflow_color = [0, 0, 0];
1924

2025
return colorBlend(index, [min, min, zero, max],
2126
[

sentinel-2/indexdb/id_110.js

+15-10
Original file line numberDiff line numberDiff line change
@@ -1,21 +1,26 @@
1-
// Modified Simple Ratio 670,800
2-
// URL http://www.indexdatabase.de/db/si-single.php?rsindex_id=110=&sensor_id=96
1+
//
2+
// Modified Simple Ratio 670,800 (abbrv. MSR670)
3+
//
4+
// General formula: (800nm/670nm-1)/sqrt(800nm/670nm+1)
5+
//
6+
// URL https://www.indexdatabase.de/db/si-single.php?sensor_id=96&rsindex_id=110
7+
//
38

4-
let index = ((B08)/(B04)-1)/(Math.sqrt((B08)/(B04)+1));
5-
let min = -0.917;
6-
let max = 3.792;
9+
let index = (B08 / B04 - 1.0) / Math.sqrt(B08 / B04 + 1.0);
10+
let min = -0.915;
11+
let max = 3.78;
712
let zero = 0.0;
813

914
// colorBlend will return a color when the index is between min and max and white when it is less than min.
1015
// To see black when it is more than max, uncomment the last line of colorBlend.
1116
// The min/max values were computed automatically and may be poorly specified, feel free to change them to tweak the displayed range.
1217
// This index crosses zero, so a diverging color map is used. To tweak the value of the break in the color map, change the variable 'zero'.
1318

14-
var underflow_color = [1, 1, 1];
15-
var low_color = [208/255, 88/255, 126/255];
16-
var high_color = [241/255, 234/255, 200/255];
17-
var zero_color = [0, 147/255, 146/255];
18-
var overflow_color = [0, 0, 0];
19+
let underflow_color = [1, 1, 1];
20+
let low_color = [208/255, 88/255, 126/255];
21+
let high_color = [241/255, 234/255, 200/255];
22+
let zero_color = [0, 147/255, 146/255];
23+
let overflow_color = [0, 0, 0];
1924

2025
return colorBlend(index, [min, min, zero, max],
2126
[

sentinel-2/indexdb/id_12.js

+13-8
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,23 @@
1-
// Simple Ratio NIR/RED Difference Vegetation Index, Vegetation Index Number (VIN)
2-
// URL http://www.indexdatabase.de/db/si-single.php?rsindex_id=12=&sensor_id=96
1+
//
2+
// Simple Ratio NIR/RED Difference Vegetation Index, Vegetation Index Number (VIN) (abbrv. DVI)
3+
//
4+
// General formula: NIR / RED
5+
//
6+
// URL https://www.indexdatabase.de/db/si-single.php?sensor_id=96&rsindex_id=12
7+
//
38

4-
let index = (B09)/(B05);
9+
let index = B08 / B04;
510
let min = 0.059;
6-
let max = 17.353;
11+
let max = 17.171;
712

813
// colorBlend will return a color when the index is between min and max and white when it is less than min.
914
// To see black when it is more than max, uncomment the last line of colorBlend.
1015
// The min/max values were computed automatically and may be poorly specified, feel free to change them to tweak the displayed range.
1116

12-
var underflow_color = [1, 1, 1];
13-
var low_color = [208/255, 88/255, 126/255];
14-
var high_color = [241/255, 234/255, 200/255];
15-
var overflow_color = [0, 0, 0];
17+
let underflow_color = [1, 1, 1];
18+
let low_color = [208/255, 88/255, 126/255];
19+
let high_color = [241/255, 234/255, 200/255];
20+
let overflow_color = [0, 0, 0];
1621

1722
return colorBlend(index, [min, min, max],
1823
[

sentinel-2/indexdb/id_123.js

+13-8
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,23 @@
1-
// Simple Ratio 800/550
2-
// URL http://www.indexdatabase.de/db/si-single.php?rsindex_id=123=&sensor_id=96
1+
//
2+
// Simple Ratio 800/550 (abbrv. SR800/550)
3+
//
4+
// General formula: 800nm/550nm
5+
//
6+
// URL https://www.indexdatabase.de/db/si-single.php?sensor_id=96&rsindex_id=123
7+
//
38

4-
let index = (B08)/(B03);
9+
let index = B08 / B03;
510
let min = 0.058;
6-
let max = 16.86;
11+
let max = 17.188;
712

813
// colorBlend will return a color when the index is between min and max and white when it is less than min.
914
// To see black when it is more than max, uncomment the last line of colorBlend.
1015
// The min/max values were computed automatically and may be poorly specified, feel free to change them to tweak the displayed range.
1116

12-
var underflow_color = [1, 1, 1];
13-
var low_color = [208/255, 88/255, 126/255];
14-
var high_color = [241/255, 234/255, 200/255];
15-
var overflow_color = [0, 0, 0];
17+
let underflow_color = [1, 1, 1];
18+
let low_color = [208/255, 88/255, 126/255];
19+
let high_color = [241/255, 234/255, 200/255];
20+
let overflow_color = [0, 0, 0];
1621

1722
return colorBlend(index, [min, min, max],
1823
[

sentinel-2/indexdb/id_125.js

+14-9
Original file line numberDiff line numberDiff line change
@@ -1,21 +1,26 @@
1-
// Wide Dynamic Range Vegetation Index
2-
// URL http://www.indexdatabase.de/db/si-single.php?rsindex_id=125=&sensor_id=96
1+
//
2+
// Wide Dynamic Range Vegetation Index (abbrv. WDRVI)
3+
//
4+
// General formula: (0.1*NIR-RED)/(0.1*NIR+RED)
5+
//
6+
// URL https://www.indexdatabase.de/db/si-single.php?sensor_id=96&rsindex_id=125
7+
//
38

4-
let index = (0.1*B09-B05)/(0.1*B09+B05);
9+
let index = (0.1 * B08 - B04) / (0.1 * B08 + B04);
510
let min = -0.988;
6-
let max = 0.256;
11+
let max = 0.263;
712
let zero = 0.0;
813

914
// colorBlend will return a color when the index is between min and max and white when it is less than min.
1015
// To see black when it is more than max, uncomment the last line of colorBlend.
1116
// The min/max values were computed automatically and may be poorly specified, feel free to change them to tweak the displayed range.
1217
// This index crosses zero, so a diverging color map is used. To tweak the value of the break in the color map, change the variable 'zero'.
1318

14-
var underflow_color = [1, 1, 1];
15-
var low_color = [208/255, 88/255, 126/255];
16-
var high_color = [241/255, 234/255, 200/255];
17-
var zero_color = [0, 147/255, 146/255];
18-
var overflow_color = [0, 0, 0];
19+
let underflow_color = [1, 1, 1];
20+
let low_color = [208/255, 88/255, 126/255];
21+
let high_color = [241/255, 234/255, 200/255];
22+
let zero_color = [0, 147/255, 146/255];
23+
let overflow_color = [0, 0, 0];
1924

2025
return colorBlend(index, [min, min, zero, max],
2126
[

sentinel-2/indexdb/id_128.js

+15-10
Original file line numberDiff line numberDiff line change
@@ -1,21 +1,26 @@
1-
// Chlorophyll Index Green
2-
// URL http://www.indexdatabase.de/db/si-single.php?rsindex_id=128=&sensor_id=96
1+
//
2+
// Chlorophyll Index Green (abbrv. CIgreen)
3+
//
4+
// General formula: NIR/GREEN-1
5+
//
6+
// URL https://www.indexdatabase.de/db/si-single.php?sensor_id=96&rsindex_id=128
7+
//
38

4-
let index = (B09)/(B03)-1;
5-
let min = -0.942;
6-
let max = 16.427;
9+
let index = B08 / B03 - 1.0;
10+
let min = -0.941;
11+
let max = 16.117;
712
let zero = 0.0;
813

914
// colorBlend will return a color when the index is between min and max and white when it is less than min.
1015
// To see black when it is more than max, uncomment the last line of colorBlend.
1116
// The min/max values were computed automatically and may be poorly specified, feel free to change them to tweak the displayed range.
1217
// This index crosses zero, so a diverging color map is used. To tweak the value of the break in the color map, change the variable 'zero'.
1318

14-
var underflow_color = [1, 1, 1];
15-
var low_color = [208/255, 88/255, 126/255];
16-
var high_color = [241/255, 234/255, 200/255];
17-
var zero_color = [0, 147/255, 146/255];
18-
var overflow_color = [0, 0, 0];
19+
let underflow_color = [1, 1, 1];
20+
let low_color = [208/255, 88/255, 126/255];
21+
let high_color = [241/255, 234/255, 200/255];
22+
let zero_color = [0, 147/255, 146/255];
23+
let overflow_color = [0, 0, 0];
1924

2025
return colorBlend(index, [min, min, zero, max],
2126
[

sentinel-2/indexdb/id_130.js

+15-10
Original file line numberDiff line numberDiff line change
@@ -1,21 +1,26 @@
1-
// Visible Atmospherically Resistant Indices RedEdge
2-
// URL http://www.indexdatabase.de/db/si-single.php?rsindex_id=130=&sensor_id=96
1+
//
2+
// Visible Atmospherically Resistant Indices RedEdge (abbrv. VARIrededge)
3+
//
4+
// General formula: ( [700:710]- [620:680] ) / ( [700:710]+ [620:680] )
5+
//
6+
// URL https://www.indexdatabase.de/db/si-single.php?sensor_id=96&rsindex_id=130
7+
//
38

4-
let index = (B05-B04)/(B05+B04);
5-
let min = -0.889;
6-
let max = 0.888;
9+
let index = (B05 - B04) / (B05 + B04);
10+
let min = -0.89;
11+
let max = 0.89;
712
let zero = 0.0;
813

914
// colorBlend will return a color when the index is between min and max and white when it is less than min.
1015
// To see black when it is more than max, uncomment the last line of colorBlend.
1116
// The min/max values were computed automatically and may be poorly specified, feel free to change them to tweak the displayed range.
1217
// This index crosses zero, so a diverging color map is used. To tweak the value of the break in the color map, change the variable 'zero'.
1318

14-
var underflow_color = [1, 1, 1];
15-
var low_color = [208/255, 88/255, 126/255];
16-
var high_color = [241/255, 234/255, 200/255];
17-
var zero_color = [0, 147/255, 146/255];
18-
var overflow_color = [0, 0, 0];
19+
let underflow_color = [1, 1, 1];
20+
let low_color = [208/255, 88/255, 126/255];
21+
let high_color = [241/255, 234/255, 200/255];
22+
let zero_color = [0, 147/255, 146/255];
23+
let overflow_color = [0, 0, 0];
1924

2025
return colorBlend(index, [min, min, zero, max],
2126
[

sentinel-2/indexdb/id_131.js

+15-10
Original file line numberDiff line numberDiff line change
@@ -1,21 +1,26 @@
1-
// Chlorophyll IndexRedEdge
2-
// URL http://www.indexdatabase.de/db/si-single.php?rsindex_id=131=&sensor_id=96
1+
//
2+
// Chlorophyll IndexRedEdge (abbrv. CIrededge)
3+
//
4+
// General formula: NIR/rededge-1
5+
//
6+
// URL https://www.indexdatabase.de/db/si-single.php?sensor_id=96&rsindex_id=131
7+
//
38

4-
let index = (B09)/(B05)-1;
5-
let min = -0.941;
6-
let max = 16.34;
9+
let index = B08 / B05 - 1.0;
10+
let min = -0.942;
11+
let max = 16.266;
712
let zero = 0.0;
813

914
// colorBlend will return a color when the index is between min and max and white when it is less than min.
1015
// To see black when it is more than max, uncomment the last line of colorBlend.
1116
// The min/max values were computed automatically and may be poorly specified, feel free to change them to tweak the displayed range.
1217
// This index crosses zero, so a diverging color map is used. To tweak the value of the break in the color map, change the variable 'zero'.
1318

14-
var underflow_color = [1, 1, 1];
15-
var low_color = [208/255, 88/255, 126/255];
16-
var high_color = [241/255, 234/255, 200/255];
17-
var zero_color = [0, 147/255, 146/255];
18-
var overflow_color = [0, 0, 0];
19+
let underflow_color = [1, 1, 1];
20+
let low_color = [208/255, 88/255, 126/255];
21+
let high_color = [241/255, 234/255, 200/255];
22+
let zero_color = [0, 147/255, 146/255];
23+
let overflow_color = [0, 0, 0];
1924

2025
return colorBlend(index, [min, min, zero, max],
2126
[

0 commit comments

Comments
 (0)