Skip to content

Home

A python Earth Observation toolbox

Conda Version Conda Downloads

EO-Tools is a pure python toolbox that is currently able to search, download and process Sentinel-1 InSAR pairs, geocode and apply terrain correction to Sentinel-1 SLC products, download and mosaic Sentinel-2 tiles and download various publicly available DEM (Digital Elevation Models). The S1 processor can compute phase, amplitude and coherence in the SAR geometry and reproject them in a geographic coordinate system. Example notebooks demonstrating the different features are located in the notebooks-cf folder of the github repository.

Examples

Here are examples of EO-Tools outputs showing a Sentinel-1 dual-polarization amplitude color composite, interferometric phase, coherence and single-polarization amplitude over Erta Ale,

Sentinel-1 dual-polarization amplitude color composite over Erta Ale. Sentinel-1 VV interferometric phase over Erta Ale.
Sentinel-1 VV coherence over Erta Ale. Sentinel-1 single-polarization amplitude over Erta Ale.

a demonstration of placing Earth observation data in geographic context by cropping Sentinel-1 amplitude and coherence and Sentinel-2 RGB imagery to arbitrary polygons, shown here using Berlin's boundary alongside OpenStreetMap,

Four-panel comparison over Berlin: Sentinel-1 amplitude (top left), Sentinel-1 coherence (top right), Sentinel-2 RGB (bottom left) and OpenStreetMap (bottom right).

and a comparison of Beta nought calibration (left) and radiometric terrain flattening (right) in Sentinel-1 dual-polarization color composites, showcasing both dual-pol visualization and terrain normalization.

Sentinel-1 dual-polarization color composite with Beta nought calibration. Sentinel-1 dual-polarization color composite with radiometric terrain flattening.

Watch the Sentinel-1 partial-product video demo for an example of downloading and processing only the bursts intersecting an area of interest. Click the preview to watch on YouTube.

Watch the Sentinel-1 partial-product video demo on YouTube.

New

Sentinel-1 processing is faster through shared geometry across polarizations, optimized interpolation kernels, shared computation of InSAR outputs, and fewer intermediate compression steps. See the processing optimization notes for details.

New Lanczos and truncated sinc interpolation kernels are available for SLC coregistration in the InSAR pipeline, with Lanczos now the default. Precomputed lookup tables avoid direct evaluation of kernel weights during remapping, keeping these higher-order kernels efficient.

Upgrading from an earlier release? Geocoding LUTs describe geometry and are shared across polarizations. They now use lut_iw{iw}.tif filenames. Regenerate your processing outputs, or manually rename one existing LUT per IW before reusing them with skip_preprocessing=True. See the breaking changes and migration instructions, including changes for custom preprocessing and geocoding workflows.

Features

Category Features
Sentinel-1 InSAR Compute phase, coherence and amplitudes with TOPS deramping, DEM-assisted coregistration, optional Enhanced Spectral Diversity and burst stitching. Process individual bursts or full products, with optional AOI clipping.
Sentinel-1 calibration and geocoding Geocode SLC amplitudes with Beta or Sigma Nought calibration or radiometric terrain normalization. Build custom pipelines in SAR geometry and geocode their outputs using LUTs.
Sentinel-1 polarimetry Compute dual-polarization H-Alpha decomposition and polarimetric covariance elements.
Sentinel-1 partial products Download only consecutive SLC bursts intersecting an AOI, reducing download size and storage. SAFE-like .partial.SAFE products retain their AOI and available bursts, subswaths and polarizations, and work with the InSAR, SLC, H-Alpha and covariance processors.
Sentinel-2 Geocode and mosaic tiles, write individual bands and create color composites such as natural color, CIR and SWIR.
DEM Download, mosaic, crop and upsample publicly available elevation models for an AOI.
Output and visualization Write geocoded Cloud Optimized GeoTIFFs (COGs); display local and remote rasters on Folium maps through TiTiler in the Docker environment, or plot them with xarray in conda notebooks.
Discovery and download Search catalogs and download full products with EODAG; explore product footprints on a Folium map.

Start with the partial-product download tutorial and partial-product processing tutorial, or browse the example notebooks in notebooks/ (Docker) and notebooks-cf/ (conda).

Install & quick start

  • The package comes in two flavors
    • A conda package that contains the main functionality (Sentinel-1 InSAR, Sentinel-2 tile mosaic and DEM download)
    • A docker version (for more advanced users) that additonally works with a TiTiler server for interactive visualization in the notebooks
  • It is recommended to first create a conda environment to avoid package conflicts
  • You need to have conda installed (or mamba / micromamba)
  • Then the package can be installed with these commands (replace conda by mamba or micromamba if needed):
conda create -n eo_tools
conda activate eo_tools
conda install conda-forge::eo-tools 

Docker install

  • It works as a dev container for VSCode.
    • Clone the github repository into the location of your choice.
    • Volumes paths can (and should) be changed in docker-compose.yml.
    • After opening the main directory, VSCode should detect the devcontainer file and ask to build the container. Once the container is running, the example notebooks in the notebooks directory can be used.
  • Alternatively, it should also be possible to start the container from the main directory with docker-compose up -d in a terminal and attach to the container with any editor supporting docker.

Getting started

  • Please make sure jupyter is installed in your environment
  • Example jupyter notebooks demonstrate the different features
  • For conda use the notebooks in the notebooks-cf directory of the github repository
  • For docker use the notebooks in the notebooks directory of the github repository
  • To be able to download products with EODAG on Copernicus Dataspace, a file named eodag_config.yaml containing credentials must be created. The file eodag_config_example.yml located in the repository root directory may be used for this purpose. Feel free to copy, rename and edit this file with your credentials. It is recommended to store the file in a secure location outside of the local repository.

Documentation

Documentation is available on Read the Docs.

Notice

  • This project was originally forked from: https://github.com/eo2cube/s1_processor/, however since 99% of the code is now original, I have detached the fork.
  • Visualization functions are using TiTiler https://developmentseed.org/titiler/
  • Full-product discovery and download use EODAG https://github.com/CS-SI/eodag
  • Sentinel-1 partial-product discovery and download use the Copernicus Data Space Ecosystem STAC and S3 services

Some example notebooks for the conda version

Some examples can be viewed here: