forked from sentinel-hub/custom-scripts
-
Notifications
You must be signed in to change notification settings - Fork 0
/
id_1.js
24 lines (20 loc) · 885 Bytes
/
id_1.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
// Alteration
// This is an auto-generated script. Double checking the source information with the URL below is recommended.
// URL http://www.indexdatabase.de/db/si-single.php?rsindex_id=1=&sensor_id=14
let index = (B06)/(B07);
let min = 0.058;
let max = 17.108;
// colorBlend will return a color when the index is between min and max and white when it is less than min.
// To see black when it is more than max, uncomment the last line of colorBlend.
// The min/max values were computed automatically and may be poorly specified, feel free to change them to tweak the displayed range.
var underflow_color = [1, 1, 1];
var low_color = [208/255, 88/255, 126/255];
var high_color = [241/255, 234/255, 200/255];
var overflow_color = [0, 0, 0];
return colorBlend(index, [min, min, max],
[
underflow_color,
low_color,
high_color,
//overflow_color // uncomment to see overflows
]);