Skip to content

Instantly share code, notes, and snippets.

@maximlamare
Created January 25, 2022 10:04
Show Gist options
  • Save maximlamare/612a268bbb004cc91817a21156710617 to your computer and use it in GitHub Desktop.
Save maximlamare/612a268bbb004cc91817a21156710617 to your computer and use it in GitHub Desktop.
Example evalscript where the output is multiplied by 1000.
//VERSION=3
function setup() {
return {
input: ["B02"],
output: { bands: 1, sampleType: "UINT16" }
};
}
const f = 10000;
function evaluatePixel(sample) {
return [f * sample.B02];
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment