Normalised Difference Snow Index, NDSI Show Script Download Script
//VERSION=3 (auto-converted from 1)
// Normalised Difference Snow Index
// Source: https://earth.esa.int/web/sentinel/technical-guides/sentinel-2-msi/level-2a/algorithm
// values above 0.42 are usually snow
let viz = new Identity ();
function evaluatePixel ( samples ) {
let val = index ( samples . B03 , samples . B11 );
return viz . process ( val );
}
function setup () {
return {
input : [{
bands : [
" B03 " ,
" B11 "
]
}],
output : { bands : 1 }
}
}
Evaluate and visualize General description of the script The Sentinel-2 normalized difference snow index is a ratio of two bands: one in the VIR (Band 3) and one in the SWIR (Band 11). Values above 0.42 are usually snow. More info here.
Description of representative images The NDSI script applied to Klagenfurt, Austria.