Skip to content

Instantly share code, notes, and snippets.

@maximlamare
Last active January 3, 2022 13:14
Show Gist options
  • Save maximlamare/a32a95e54d558184243bfa162458a09d to your computer and use it in GitHub Desktop.
Save maximlamare/a32a95e54d558184243bfa162458a09d to your computer and use it in GitHub Desktop.
Example of an Evalscript returning B02
//VERSION=3
function setup() {
return {
input: ["B02"],
output: { bands: 1, sampleType: "AUTO" }
};
}
function evaluatePixel(sample) {
return [sample.B02];
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment