Skip to content

Instantly share code, notes, and snippets.

View mlubej's full-sized avatar

Matic Lubej mlubej

  • EO Research Team @ Sinergise
  • Ljubljana, Slovenia
View GitHub Profile
@MonjaSebela
MonjaSebela / Classification.py
Last active August 19, 2019 13:54
Classification
//Bare soil index
BS = ((B11 + B04)-(B08 + B02))/((B11 + B04)+(B08 + B02))
// Vegetation index
NDVI = index (B08, B04)
// Water index
NDWI = (B03 - B08)/(B03 + B08)
if (NDWI > 0.2) {
return [0,0.6,1]
}
if (NDVI > 0.3){