Skip to content

Commit d250f00

Browse files
author
Monja Šebela
committed
Adding cloudless mosaic README file and ARVI img
1 parent 79611c5 commit d250f00

File tree

5 files changed

+43
-28
lines changed

5 files changed

+43
-28
lines changed

README.md

+2-1
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@ Dedicated to supplying data for [Copernicus services](http://www.esa.int/Our_Act
6262
- [MSI](sentinel-2/msi) - moisture index
6363
- [NDMI](sentinel-2/ndmi) - normalized difference moisture index
6464
- [NDWI](sentinel-2/ndwi) - normalized difference water index
65-
- [NDMI_stress](sentinel-2/ndmi_special) - normalized difference moisture index for crop moisture stress
65+
- [NDMI STRESS](sentinel-2/ndmi_special) - normalized difference moisture index for crop moisture stress
6666
- [NBR](sentinel-2/nbr) - normalized burn ratio
6767
- [NDII](sentinel-2/ndii) - normalized difference 819/1600 NDII
6868
- [NDCI](sentinel-2/ndci) - normalized difference chlorophyll index
@@ -83,6 +83,7 @@ Dedicated to supplying data for [Copernicus services](http://www.esa.int/Our_Act
8383
#### Cloud detection algorithms
8484
- [Cohen-Braaten-Yang cloud detection](sentinel-2/cby_cloud_detection/)
8585
- [Hollstein Clouds, Cirrus, Snow, Shadow, Water and Clear Sky Pixels detection](sentinel-2/hollstein)
86+
- [Cloudless Mosaic](sentinel-2/cloudless_mosaic)
8687

8788
#### Snow and glaciers algorithms
8889
- [Snow classifier](sentinel-2/snow_classifier/)

sentinel-2/arvi/README.md

+15-4
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# ARVI
1+
# Atmospherically Resistant Vegetation Index (ARVI)
22

33
<a href="#" id='togglescript'>Show</a> script or [download](script.js){:target="_blank"} it.
44
<div id='script_view' style="display:none">
@@ -8,11 +8,22 @@
88
</div>
99

1010
## Evaluate and visualize
11-
- [Sentinel Playground](https://apps.sentinel-hub.com/sentinel-playground/?source=S2&lat=43.514198796857976&lng=16.601028442382812&zoom=11&evalscripturl=https://raw.githubusercontent.com/sentinel-hub/custom-scripts/master/sentinel-2/arvi/script.js){:target="_blank"}
12-
- [EO Browser](http://apps.sentinel-hub.com/eo-browser/#lat=41.9&lng=12.5&zoom=10&datasource=Sentinel-2%20L1C&time=2017-10-08&preset=CUSTOM&layers=B01,B02,B03&evalscripturl=https://raw.githubusercontent.com/sentinel-hub/customScripts/master/sentinel-2/arvi/script.js){:target="_blank"}
13-
11+
- [Sentinel Playground](https://apps.sentinel-hub.com/sentinel-playground/?source=S2&lat=42.190118425644556&lng=11.9970703125&zoom=11&preset=CUSTOM&layers=B01,B02,B03&maxcc=6&gain=1.0&gamma=1.0&time=2018-05-01%7C2018-11-07&atmFilter=&showDates=false&evalscript=Ly8KLy8gQXRtb3NwaGVyaWNhbGx5IFJlc2lzdGFudCBWZWdldGF0aW9uIEluZGV4ICAgKGFiYnJ2LiBBUlZJKQovLwovLyBHZW5lcmFsIGZvcm11bGE6IChOSVIgLSBSRUQgLSB5ICogKFJFRCAtIEJMVUUpKS8gKE5JUiArIFJFRCAtIHkqKFJFRC1CTFVFKSkKLy8KLy8gVVJMIGh0dHBzOi8vd3d3LmluZGV4ZGF0YWJhc2UuZGUvZGIvc2ktc2luZ2xlLnBocD9zZW5zb3JfaWQ9OTYmcnNpbmRleF9pZD00Ci8vCgovLyBJbml0aWFsaXplIHBhcmFtZXRlcnMKbGV0IHkgPSAwLjEwNjsKbGV0IGluZGV4ID0gKEIwOSAtIEIwNCAtIHkgKiAoQjA0IC0gQjAyKSkgLyAoQjA5ICsgQjA0IC0geSAqIChCMDQgLSBCMDIpKTsKCnJldHVybltpbmRleF07){:target="_blank"}
12+
- [EO Browser](https://apps.sentinel-hub.com/eo-browser/?lat=42.3641&lng=12.1880&zoom=10&time=2017-10-08&preset=CUSTOM&datasource=Sentinel-2%20L1C&layers=B01,B02,B03&evalscript=Ly8KLy8gQXRtb3NwaGVyaWNhbGx5IFJlc2lzdGFudCBWZWdldGF0aW9uIEluZGV4ICAgKGFiYnJ2LiBBUlZJKQovLwovLyBHZW5lcmFsIGZvcm11bGE6IChOSVIgLSBSRUQgLSB5ICogKFJFRCAtIEJMVUUpKS8gKE5JUiArIFJFRCAtIHkqKFJFRC1CTFVFKSkKLy8KLy8gVVJMIGh0dHBzOi8vd3d3LmluZGV4ZGF0YWJhc2UuZGUvZGIvc2ktc2luZ2xlLnBocD9zZW5zb3JfaWQ9OTYmcnNpbmRleF9pZD00Ci8vCgovLyBJbml0aWFsaXplIHBhcmFtZXRlcnMKbGV0IHkgPSAwLjEwNjsKbGV0IGluZGV4ID0gKEIwOSAtIEIwNCAtIHkgKiAoQjA0IC0gQjAyKSkgLyAoQjA5ICsgQjA0IC0geSAqIChCMDQgLSBCMDIpKTsKCnJldHVybltpbmRleF07){:target="_blank"}
1413
## General description of the script
1514

1615
The ARVI is most useful in regions of high atmospheric aerosol content. It works by using reflectance measurements in the blue wavelengths to correct for atmospheric scattering effects that register in the red reflectance spectrum..
1716

17+
General formula:
18+
19+
**(NIR - RED - y * (RED - BLUE))/ (NIR + RED - y*(RED-BLUE))**
20+
1821
Values description: The range for an ARVI is -1 to 1 where green vegetation generally falls between values of 0.20 to 0.80.
22+
23+
## Description of representative images
24+
25+
The ARVI of Rome, Italy. Acquired on 08.10.2017, processed by Sentinel Hub.
26+
27+
![ARVI](fig/fig1.png)
28+
29+

sentinel-2/arvi/fig/fig1.png

1.17 MB
Loading

sentinel-2/arvi/script.js

+1-23
Original file line numberDiff line numberDiff line change
@@ -8,28 +8,6 @@
88

99
// Initialize parameters
1010
let y = 0.106;
11-
1211
let index = (B09 - B04 - y * (B04 - B02)) / (B09 + B04 - y * (B04 - B02));
13-
let min = -2.4;
14-
let max = 0.92;
15-
let zero = 0.0;
16-
17-
// colorBlend will return a color when the index is between min and max and white when it is less than min.
18-
// To see black when it is more than max, uncomment the last line of colorBlend.
19-
// The min/max values were computed automatically and may be poorly specified, feel free to change them to tweak the displayed range.
20-
// 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'.
21-
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];
2712

28-
return colorBlend(index, [min, min, zero, max],
29-
[
30-
underflow_color,
31-
low_color,
32-
zero_color, // divergent step at zero
33-
high_color,
34-
//overflow_color // uncomment to see overflows
35-
]);
13+
return[index];

sentinel-2/cloudless_mosaic/README.md

+25
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
# Cloudless mosaic
2+
3+
<a href="#" id='togglescript'>Show</a> script1 or [download](L2A-first_quartille.js){:target="_blank"} it.
4+
<div id='script_view' style="display:none">
5+
{% highlight javascript %}
6+
{% include_relative L2A-first_quartille.js %}
7+
{% endhighlight %}
8+
<a href="#" id='togglescript'>Show</a> script2 or [download](L2A-first_quartile_4bands_V2.js){:target="_blank"} it.
9+
<div id='script_view' style="display:none">
10+
{% highlight javascript %}
11+
{% include_relative L2A-first_quartile_4bands_V2.js %}
12+
{% endhighlight %}
13+
</div>
14+
15+
## General description of the script
16+
17+
The Cloudless mosaic script works on Sentinel-2 L2A data and requires scene classification (SCL) band.
18+
It takes one year of data, which is quite compute and time intensive, which is why it is recommended to run it on small area (e.g. 256x256 px).
19+
An example of the results is New Zealand's cloudless mosaic, available here: https://data.linz.govt.nz/layer/93652-nz-10m-satellite-imagery-2017/
20+
21+
For the output value for each pixel it uses the first quartile value of valid values, each band separately. If there are none it uses invalid values instead.
22+
When using SCL its very important to use nearest neighbor resampling with a resolution of about 20m/px or more.
23+
24+
The script is available in custom script Version-1 and Version-2.
25+

0 commit comments

Comments
 (0)