Thermal Visualization

//VERSION=3
let minVal = -50;
let maxVal = 50;

let viz = ColorRampVisualizer.createBlueRed(minVal, maxVal);

function evaluatePixel(samples) {
    let val = samples.ThermalInfrared1;
    val = viz.process(val);
    val.push(samples.dataMask);
    return val;
}

function setup() {
  return {
    input: [{
      bands: [
        "ThermalInfrared1",
        "dataMask"
      ]
    }],
    output: {
      bands: 4
    }
  }
}

Evaluate and Visualize

Description

This thermal visualization is based on band ThermalInfrared1. At the central wavelength of 10895 nm it measures in the thermal infrared, or TIR. Instead of measuring the temperature of the air, like weather stations do, band ThermalInfrared1 reports on the ground itself, which is often much hotter.

Description of representative images

HLS thermal visualization of Rome. Acquired on 2020-07-30, processed by Sentinel Hub.

HLS