Landsat 4-5 TM Thermal Visualization

//VERSION=3
//This script was converted from v1 to v3 using the converter API

const blue_red = [
  [223, 0x003d99],
  [253, 0x2e82ff],  
  [263, 0x80b3ff],
  [272, 0xe0edff],
  [273, 0xffffff],
  [274, 0xfefce7],
  [283, 0xFDE191],
  [293, 0xf69855],
  [303, 0xec6927],
  [323, 0xaa2d1d],
  [363, 0x650401],
  [373, 0x3d0200],
];

const viz = new ColorRampVisualizer(blue_red);

function evaluatePixel(samples) {
  let val = samples.B06;
  return viz.process(val);
}

function setup() {
  return {
    input: [{
      bands: [
        "B06"
      ]
    }],
    output: {
      bands: 3
    }
  }
}

Evaluate and visualize

Description

This thermal visualization is based on band 6. At the central wavelength of 11040 nm it measures in the thermal infrared, or TIR. Instead of measuring the temperature of the air, like weather stations do, band 6 reports on the ground itself, which is often much hotter. Thermal band 10 is useful in providing surface temperatures and is collected with a 120-meter resolution, resampled to 30 meterss.

Description of representative images

Landsat 4-5 TM thermal visualization of Rome. Acquired on 2011-11-11, processed by Sentinel Hub.

L8 NDVI