Skip to content

Instantly share code, notes, and snippets.

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