Created
January 25, 2022 10:04
-
-
Save maximlamare/612a268bbb004cc91817a21156710617 to your computer and use it in GitHub Desktop.
Example evalscript where the output is multiplied by 1000.
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: ["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