×
Ing. David Moravec, Ph.D.
Osobní stránky
banner

Sentinel playground

Sentinel playground web page:

https://apps.sentinel-hub.com/sentinel-playground/

Sample script for water quality:

// setting up indexes
var GNDVI = index(B08, B03);    
var CDOM = 20*(B03/B04);
var Chla = 4000*(B05-((B04+B06)/2));
var Turb = 20*(B03/B01);
var TrueColor = [B04*2.5, B03*2.5, B02*2.5];


// Setting up colour scale
var Scale = [0,50,100];
var ColorScale =
  [
   [0,0,1],
   [0,1,0],
   [1,0,0]
  ];


// Creation of Image
if (GNDVI>0) {
return TrueColor;
} else {
return colorBlend(Chla, Scale, ColorScale);
}