Last active
January 26, 2022 11:11
-
-
Save maximlamare/cade1d3f39f8d40aec39e23fea24a57c to your computer and use it in GitHub Desktop.
Example Evalscript with DN
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
//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