sertit/eoreader
Remote-sensing opensource python library reading optical and SAR sensors, loading and stacking bands, clouds, DEM and spectral indices in a sensor-agnostic way.
EOReader — What It Is
EOReader is a free, open-source Python library for working with satellite imagery. It lets you read data from many different Earth-observation satellites and treat them all the same way, regardless of which satellite produced the data.
What It Does
EOReader reads satellite products (the files a satellite mission delivers), then lets you:
- Load bands — the individual image layers of a satellite product, such as color bands (red, green, blue), radar bands, cloud masks, elevation data (DEM), or computed spectral indices like NDVI (a vegetation-health measure).
- Stack bands — combine several bands into a single multi-layer image file.
- Create STAC catalogs — organize raw satellite data into a standard catalog format (STAC) that makes the data easier to search and manage.
It works with one satellite product at a time. For more complex setups like mosaics, pairs, or time series, the README points to a companion library called EOSets.
Supported Satellites
EOReader handles two main families of satellite data:
- Optical satellites (images in visible light and similar wavelengths): Sentinel-2, Sentinel-3, Landsat (1–9), PlanetScope, Pleiades, SPOT, WorldView, GeoEye, and others.
- SAR satellites (radar imaging): Sentinel-1, TerraSAR-X, RADARSAT, ICEYE, SAOCOM, Capella, and others.
It also supports legacy formats — older data formats from the past — which is useful when working with historical archives.
Key Design Idea: Sensor-Agnostic
The core idea is that you write your code once, and it works no matter which satellite the data came from. For example, asking for the "green" band works the same way whether the data is from Sentinel-2 or Landsat — EOReader handles the mapping behind the scenes.
How It Works
- The library identifies which satellite produced a given product by looking at the product's file structure.
- For raster (image) data, it uses
xarrayandrioxarray; for vector data (like footprints and extents), it usesgeopandas. - SAR data requires extra software: radar products need ESA SNAP (a free program) installed and accessible on your system, because SAR data must be orthorectified (geometrically corrected) and calibrated before use.
Installation
Two ways:
- pip:
pip install eoreader - conda:
conda install -c conda-forge eoreader
Dependencies
EOReader is built on top of several well-known Python libraries: geopandas, rasterio, xarray, rioxarray, and awesome-spectral-indices/spyndex (for spectral index calculations).
Who Made It and Why
EOReader was created by ICube-SERTIT, a research group in France, to support the Copernicus Emergency Management Service — a European program that uses satellite data for rapid disaster mapping (e.g., floods, earthquakes). It has been used in real emergency responses, including assessing agricultural damage after the Kakhovka Dam collapse in 2023.
License
Apache License v2.0 — free to use, modify, and distribute.
Documentation and Examples
The full API documentation is available at eoreader.readthedocs.io, and the project provides many example notebooks covering basics (opening a product, loading bands), advanced topics (water detection, cloud removal, reading from cloud storage like AWS S3), and experimental features (lazy computation with Dask, STAC catalog creation).
Contributing
The project welcomes contributions from humans and AI-assisted contributors, with separate guidelines for each (CONTRIBUTING.md for humans, AGENTS.md for coding agents, and an AI policy document).
Related
- Project
- Project
- Project
- Project
- Project