Skip to content

Instantly share code, notes, and snippets.

@mlubej
Last active May 4, 2020 12:41
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save mlubej/9fda13ec612dbc03483683f9d032ddff to your computer and use it in GitHub Desktop.
Save mlubej/9fda13ec612dbc03483683f9d032ddff to your computer and use it in GitHub Desktop.
//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