Skip to content

Instantly share code, notes, and snippets.

@maximlamare
Created November 15, 2021 17:51
Show Gist options
  • Save maximlamare/81bfb116c3b6f3d54c7eeb67be8d143e to your computer and use it in GitHub Desktop.
Save maximlamare/81bfb116c3b6f3d54c7eeb67be8d143e to your computer and use it in GitHub Desktop.
Example evalscript for a single Sentinel-2 band query
//VERSION=3
function setup() {
return {
input: ["B02"],
output: { bands: 1, sampleType: "INSERT-HERE" }
};
}
function evaluatePixel(sample) {
return [sample.B02];
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment