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.
开发工具可以做什么
- satellite bands (optical or SAR)
- stack: Stack all these types of bands
- xarray.DataArray and xarray.Dataset for raster data
- geopandas.GeoDataFrames for vector data (extents, footprints...)
实测星标增长
- 24小时
- 0
- 7天
- +1
- 15天
- +3
- 1个月
- 正在收集历史
各周期内的星标净变化,周期相互重叠,并非每日新增。缺失的测量保持空白。星标代表关注度,不代表软件质量。
README.md
原文
EOReader
EOReader is a remote-sensing open-source Python library reading optical and SAR constellations, loading and stacking bands, clouds, DEM and spectral indices in a sensor-agnostic way.
[!IMPORTANT] 💡 The goal of this library is to manage one satellite product at a time.
To handle more complicated sets of products (such as mosaics, pairs or time series), please consider usingEOSets.
🛰️ Managed constellations
Optical
SAR
🔮 Features
EOReader implements sensor-agnostic features:
load: Load many band types:- satellite bands (optical or SAR)
- index
- cloud bands
- DEM bands
stack: Stack all these types of bands
EOReader works mainly with:
xarray.DataArrayandxarray.Datasetfor raster datageopandas.GeoDataFramesfor vector data (extents, footprints...)
EOReader allows you to create internal STAC catalogues directly from raw data, as a STAC item can be derived from any EOReader product.
[!NOTE] 💡 EOReader handles data from the past!
Legacy formats are mostly supported and if not, they can be requested by creating an issue with thelegacy_formatlabel.
This is super useful if you need to create an internal STAC catalogue with old data.
🛠 Installation
Pip
You can install EOReader via pip:
pip install eoreader
EOReader mainly relies on geopandas, xarray and rasterio (through rioxarray).
Please look at the rasterio page to learn more about that.
Conda
You can install EOReader via conda:
conda config --env --set channel_priority strict
conda install -c conda-forge eoreader
⚡️ Quickstart
Optical
EOReader allows you to load and stack spectral bands, spectral indices, DEM and cloud bands agnostically from every handled optical constellation:
from eoreader.reader import Reader
from eoreader.bands import RED, GREEN, BLUE, NDVI, CLOUDS
# Sentinel-2 path
s2_path = "S2B_MSIL1C_20181126T022319_N0207_R103_T51PWM_20181126T050025.SAFE"
# Create the reader object and open satellite data
reader = Reader()
# The reader will recognize the constellation from its product structure
s2_prod = reader.open(s2_path)
# Load some bands and index
bands = s2_prod.load([NDVI, GREEN, CLOUDS])
# Create a stack with some bands
stack = s2_prod.stack([RED, GREEN, BLUE], stack_path="s2_rgb_stack.tif")
EOReader aligns spectral bands from every handled sensor to make any call to a band generic:
SAR
In the same way, you can import and stack radar bands from any handled SAR constellation, with the same pattern.
from eoreader.reader import Reader
from eoreader.bands import VV, VH, VV_DSPK, VH_DSPK
# Sentinel-1 GRD path
s1_path = "S1B_EW_GRDM_1SDH_20200422T080459_20200422T080559_021254_028559_784D.zip"
# Create the reader object and open satellite data
reader = Reader()
# The reader will recognize the constellation from its product structure
s1_prod = reader.open(s1_path)
# Load some SAR bands
bands = s1_prod.load([VV, VH])
# Create a stack with some bands
stack = s1_prod.stack([VV_DSPK, VH_DSPK], stack_path="s1_stack.tif")
[!WARNING] ⚠️SNAP and SAR
SAR products need
ESA SNAPfree software to be orthorectified and calibrated. Ensure that you have the folder containing yourgptexecutable in yourPATH.
📖 Documentation
The API documentation can be found here.
🔗 Examples
Available notebooks provided as examples:
- Why EOReader?: the motivation behind the library
Basics
- Basic tutorial: first steps: open a product, load and stack bands
- Optical data: spectral bands, indices, and cloud bands from optical constellations
- SAR data: radar bands with SNAP orthorectification
- VHR data: very high resolution sensors (Pleiades, WorldView, ...)
- Remove clouds: cloud masking from brightness temperature measurements
Advanced
- Sentinel-3 data: OLCI and SLSTR band specificities
- Water detection on multiple products: water extraction across several constellations over the same area
- Windowed Reading: read a subset of a product instead of full bands
- DEM: DEM bands (DEM, SLOPE, HILLSHADE) and orthorectification
- Exogenous data: collocate external data onto the product grid
- Custom stacks: read back stacks previously written by EOReader
- Methods to clean optical bands: cleaning methods and their time cost
- AWS storage: read products stored on AWS S3
- S3 Compatible Storage: read products from MinIO or other S3-compatible stores
Experimental
- Dask: lazy computation with dask-backed arrays
- STAC: create SpatioTemporal Asset Catalog items from products
📚 Context
EOReader was created by SERTIT to support Copernicus Emergency Management Service rapid mapping. See CONTEXT.md for the full story.
🎤 Communication
Talks
- GeoPython 2022 [ PDF ] [ YouTube ]
- Mentioned in [Live+]SIG 2022 by ESRI France (in French):
Enrichir ArcgisPro grâce à des processus personnalisés d'observation de la Terre[ PDF ] - Mentioned in GeoPython 2023 -
FLORIA, a custom python pipeline for urban flood extraction from SAR multi-sensors, supported by U-Net convolutional network. - Mentioned in EGU 2023 -
Cutting-edge developments in rapid mapping - FOSS4G 2023 [ PDF ] [ YouTube ]
Press Release
- ESA Success Story
- Used to extract water for assessing agriculture impacts after the Kakhovka Dam Collapse (cross-post from NASA Harvest and Planet)
Articles
Blog
- Introduction to EOReader
- EOReader: Remote sensing open-source python library
- The collapse of the Kakhovka dam seen from satellite imagery
🚀 Contributing
EOReader welcomes contributions, human-written or carefully reviewed AI-assisted:
- Humans: CONTRIBUTING.md: quick start, test suite, PR conventions
- Coding agents: AGENTS.md: hard limits, task navigation, verification & self-review
- Technical reference: ARCHITECTURE.md: architecture, modules, build & test, pitfalls
- AI-assisted contribution policy: AI_POLICY.md
- Task templates with AI-risk warnings: .github/templates/
📝 License
EOReader is licensed under Apache License v2.0. See LICENSE file for details.
🖋️ Authors
EOReader has been created by ICube-SERTIT.
🤝 Credits
EOReader is built on top of amazing libs, without which it couldn't have been coded:
探索相关项目
加载中…

