ESA Scene Classification Actual Values

Hi Everyone
I am trying to get Scene Classification map actual values to download as an analytical .tif using this code from an earlier post on this question but cannot get the code working. Is anyone able to help?


function setup() {
   return {
    input: ["SCL"],
    output: { bands: 1, sampleType: "UINT8" }

function evaluatePixel(samples) {
  return [samples.SCL]

Hi @ivars.reinfelds ,

I guess you’re trying to download images via EO Browser. The script looks fine to me and you can use it to download SCL actual values. Simply select TIFF (8-bit) for the image format and the custom layer and you should get the TIFF with actual SCL value.

EO Browser displays your layer black because it interprets it as 8-bit grayscale images. The SCL band has values from 0 to 11, which is expected to be totally black as a 8-bit grayscale image has values from 0 to 255.