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

True color product

//VERSION=3
function setup(){
  return{
    input: ["B02", "B03", "B04", "dataMask"],
    output: {bands: 4}
  }
}

function evaluatePixel(sample){
  // Set gain for visualisation
  let gain = 2.5;
  // Return RGB
  return [sample.B04 * gain, sample.B03 * gain, sample.B02 * gain, sample.dataMask];
}

Evaluate and Visualize

General description

The true color product maps Sentinel-2 band values B04, B03, and B02 which roughly correspond to red, green, and blue part of the spectrum, respectively, to R, G, and B components.

For Sentinel-2: BO4, B03, B02

For Landsat 4-5 TM: B03, B02, B01

For Landsat 7 ETM: B03, B02, B01

For Landsat 8: B04, B03, B02

For MODIS: B01, B04, B03

Description of representative images

True color visualization of Rome, on 8.10.2017.

True color visualization of Rome, on 8.10.2017.

References

  • Wikipedia, True color. Accessed October 10th 2017.