Belgium at 10 m resolution in July 2018

Using the new L3A product in Theia it is possible to make nice cloud-free mosaics from Sentinel-2 imagery. Here is an example for Belgium and the script to do it in your terminal. Click here to view and pan in full screen.

 

# download L3A images over Belgium

python theia_download.py -l 'Belgium' -d 2018-07-01 -f 2018-07-31 --level LEVEL3A -a config_theia.cfg

# unzip using GNU parallel

parallel unzip ::: SENTINEL2X_201807*zip

# make a mosaic of each band

# WARNING only works if all images have the same projection otherwise an extra step is required with gdalwarp

parallel gdalbuildvrt {}.vrt SENTINEL2X_201807*/*{}*.tif ::: B2 B3 B4

# stack the band mosaics

gdalbuildvrt -separate B432.vrt B4.vrt B3.vrt B2.vrt

# export as a RGB image at full resolution

gdal_translate -ot Byte -scale 0 2000 B432.vrt B432.tif

# Optionally clip the image using the polygon of the Belgium borders

gdalwarp -dstnodata 0 -q -cutline Belgium.kml -crop_to_cutline B432.tif B432_Belgium.tif

# make a tiled map to display in a browser

gdal2tiles.py -z 6-12 B432_Belgium.tif

NB) I used this command to generate the file Belgium.kml from the Eurostat Countries datasets:

ogr2ogr -f KML Belgium.kml -where "NAME_ENGL='Belgium'" CNTR_RG_01M_2016_4326.shp

Plus d'actualités

New clear-sky image of the Rasuwa rock-ice avalanche

On 08 Sep 2026, Sentinel-2 acquired a clear-sky image near the release area of the landslide which caused the catastrophic flood in Nepal. Using this image and a pre-event digital elevation model (Berthier 2026) we can analyze the upper part of the avalanche runout profile. The block of rock and ice was released near 5120 […]

How long is the cooling effect of a cloud shadow ?

How long does it take for the cannon barrel to cool down after firing a shell ? Fernand Raynaud => This quote is from a famous old French funny sketch by Fernand Raynaud, which was based on a question in a French manual for soldiers: the sketch is rather long, so I’ll give you the […]

Impact of the August 12, 2026 eclipse on photovoltaic electricity generation in Spain

Photovoltaic (PV) energy supplies more 20% of Spain’s total electricity, and this share hit a new high in July 2026 (28.3% of the nation’s monthly electricity mix). Some media outlets were concerned about the drop in photovoltaic power generation during the 12-Aug-2026 eclipse. Le Monde explained that « the drop is expected to be particularly pronounced […]

Rechercher