English | Deutsch

Land surface temperature (Sentinel-3)

How hot is the ground? The land surface temperature (LST) is the temperature of the surface that the satellite sees: roofs, asphalt, soil and the tops of plants. It is not the air temperature that a weather report gives, and it can be much higher than the air in the sun and lower at night.

At a glance

Download function

download_land_surface_temperature(), short download_lst

Plot function

plot_land_surface_temperature(), short plot_lst

Source

Sentinel-3 SLSTR Level-2 (collection SENTINEL3_SLSTR_L2_LST), band LST

Pixel size

1 km

Result

one band of floating-point numbers in Kelvin (subtract 273.15 for degrees Celsius)

Clouds

no cloud masking: the mean contains every observation that the backend delivers

Period

mean of all observations of temporal_extent

Example

from cdec import download_lst, plot_lst

spatial_extent = {"west": 8.721771, "south": 53.025027, "east": 8.904419, "north": 53.114965}  # Bremen
temporal_extent = ["2024-06-01", "2024-07-01"]  # June 2024, the end date is not included

path = download_lst("data/lst_bremen.tif", spatial_extent, temporal_extent)
plot_lst(path)
Land surface temperature of Bremen in June 2024 as large blocks, between 279 and 283 Kelvin, warmer in the city centre.

Bremen, June 2024, in Kelvin. Contains modified Copernicus Sentinel data 2024.

Things to know

  • A coarse grid. One pixel is about 1 km wide. The area of the example (12 by 10 km) has only 21 by 11 pixels, and the plot shows them as blocks. This data type is meant for large areas and regional patterns, not for single streets.

  • Check the numbers. The example has a mean of 281 K, which is 8 degrees Celsius. That is cold for a June day. Because nothing is masked, the mean may include cloudy observations (the cloud top is cold) and night-time observations. Do not read the result as the air temperature of a June day.

  • Same range for comparisons. The plot colours follow the smallest and largest value of the image. To compare two maps give both the same vmin and vmax in Kelvin (Compare images).

  • The file uses longitude and latitude (EPSG:4326).

See also

Clouds and masking, Choose the period

Download

cdec.download_land_surface_temperature(file_path, spatial_extent, temporal_extent, *, create_cog=True, overview_resampling='average')[source]

Short alias: download_lst

Download mean land surface temperature data from Sentinel-3.

The function loads the LST band from the SENTINEL3_SLSTR_L2_LST openEO collection and calculates the temporal mean for the requested period. Values in the resulting raster are stored in Kelvin. No cloud masking is applied: the mean contains every observation the backend delivers.

Parameters:
  • file_path (str | Path) – Destination path of the GeoTIFF file. Missing parent directories are created automatically.

  • spatial_extent (SpatialExtent) – Area to download: an openEO bounding-box dictionary such as {"west": 8.7, "south": 53.0, "east": 8.9, "north": 53.1} (degrees, WGS 84), a Shapely geometry, or the path to a GeoJSON file.

  • temporal_extent (TemporalExtent) – Start and end of the requested period, e.g. ["2024-06-01", "2024-07-01"]. The end date itself is not included, so this example covers all of June.

  • create_cog (bool) – If True, write a Cloud Optimized GeoTIFF. If False, keep a regular GeoTIFF.

  • overview_resampling (OverviewResampling) – Resampling method used to build COG overview levels. "average" is a suitable default for continuous temperature data.

Returns:

Absolute path of the GeoTIFF that was written. The file has one band of floating-point numbers (float32): the land surface temperature in Kelvin (subtract 273.15 for degrees Celsius). Pixels without data are NaN, which the file declares as its no-data value. The coordinate system is geographic (EPSG:4326, degrees); the pixel size is 0.0089 degrees, about 1 km.

Return type:

Path

Plot

cdec.plot_land_surface_temperature(file_path, *, ax=None, title=None, cmap='inferno', vmin=None, vmax=None, colorbar=True, show=None)[source]

Short alias: plot_lst

Draw the temperature of download_land_surface_temperature.

The values are in Kelvin (0 degrees Celsius = 273.15 K), as downloaded; nothing is converted. The colour map goes from dark (cold) to bright (warm). The range follows the values of this image, so the same colour can mean different temperatures in two images. To compare images, give both the same vmin and vmax.

Parameters:
  • file_path (str | Path) – The GeoTIFF written by download_lst.

  • ax (Axes | None) – A matplotlib Axes to draw into. None creates a new figure.

  • title (str | None) – Title of the plot. Default: “Land surface temperature”. Use "" for no title.

  • cmap (str) – Name of a matplotlib colour map.

  • vmin (float | None) – Values at the two ends of the colour map, in Kelvin. None takes the smallest and largest value of the image.

  • vmax (float | None) – Values at the two ends of the colour map, in Kelvin. None takes the smallest and largest value of the image.

  • colorbar (bool) – Draw a colour bar.

  • show (bool | None) – Call plt.show() at the end. The default (None) shows the figure only if this function created it.

Returns:

The axes with the plot, for further changes.

Return type:

matplotlib.axes.Axes

Raises:

ValueError – If the file does not have exactly one band.