Skip to main content Link Menu Expand (external link) Document Search Copy Copied

True Color

//VERSION=3

function setup() {
  return {
    input: ["Red", "Green", "Blue", "dataMask"],
    output: { bands: 4 }
  };
}

function evaluatePixel(sample) {
  return [2.5 * sample.Red, 2.5 * sample.Green, 2.5 * sample.Blue, sample.dataMask];
}

Evaluate and visualize

Description

HLS true color composite uses visible light bands red, green and blue in the corresponding red, green and blue color channels, resulting in a natural colored product, that is a good representation of the Earth as humans would see it naturally.

Description of representative images

HLS true color composite of Rome. Acquired on 2022-07-24, processed by Sentinel Hub.

HLS