Last active
May 4, 2020 12:41
-
-
Save mlubej/9fda13ec612dbc03483683f9d032ddff to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
//VERSION=3 | |
function setup() { | |
return { | |
input: ["B04", "B08", "CLM"], | |
output: { bands: 2 } | |
}; | |
} | |
function evaluatePixel(sample) { | |
let ndvi = index(sample.B08, sample.B04); | |
return [ndvi, sample.CLM]; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment