HyBRIS
This package offers functions and tools to download and handle Sentinel-1 and Sentinel-2 time series, and calculate hybrid indices.
Optical, radar, and hybrid indices to detect farming practices in Europe
Author: Paolo Dal Lago
Laboratory of Geo-Information Science and Remote Sensing (GRS), Wageningen University & Research
Please refer to DOI for more information: https://www.sciencedirect.com/science/article/pii/S0034425726003238
Install
Using pip:
pip install hybris
Or using pixi:
pixi add --pypi hybris
To download Sentinel-1 and -2 time series, Earth Engine must be installed. To install the Google Earth Engine api, and GeoPandas to use shp_to_ee with local shapefiles, install also the optional dependencies. Run:
pip install hybris[gee]
Or using pixi:
pixi add --pypi hybris[gee]
Requirements
Google Earth Engine
A Google Earth Engine project is needed to continue. You can follow https://courses.spatialthoughts.com/gee-sign-up.html to correctly set up your Google Earth Engine project.
Your project needs to be authenticated and initialized.
-
Google Earth Engine authentication https://developers.google.com/earth-engine/apidocs/ee-authenticate
-
Google Earth Engine initialization https://developers.google.com/earth-engine/apidocs/ee-initialize
or following the examples/download_ts_example.py.:
import hybris
# Make sure to insert your ee-project
ee = hybris.initialize_ee('ee-yourprojectname') #Insert the name of your existing ee-project
Sentinel-1 preprocessing package:
The Sentinel-1 preprocessing pipeline uses the gee_s1_ard Python API under the hood; see its instructions.
Quickstart
The example below reads prepared field-level CSV files, creates optical and radar indices, fuses them into a daily series, and detects farming events.
import hybris
bands_s2 = ["B1", "B2", "B3", "B4", "B5", "B6", "B7", "B8", "B8A", "B11", "B12"]
bands_s1 = ["VV", "VH", "angle"]
s2 = hybris.add_vis(hybris.openSentinel2file("examples/data/Sentinel2_example.csv", bands_s2))
s1 = hybris.add_vis_radar(hybris.openSentinel1file("examples/data/Sentinel1_example.csv", bands_s1))
hybrid = hybris.calculate_hybris_vectorized(s1, s2)
maxima = hybris.find_maxima(hybrid)
minima = hybris.find_minima(hybrid)
For a complete workflow including orbit selection, ground truth, and plots, run examples/hybris_example.py.
Method summary
The HyBRIS methodology combines one optical and one radar index into a daily, field-level time series. Here, Sentinel-2 observations of the Bare Soil Index (BSI) and Sentinel-1 VH/VV observations are normalized and aggregated with a temporally weighted mean within a +/-12-day window. Closer observations have greater influence, which helps bridge irregular acquisitions and sensor-specific gaps. A centered rolling mean is used alongside the unsmoothed series to detect local minima and maxima associated with sowing, harvest, and tillage.
The index is unitless and is intended to stabilize complementary signals, not to estimate a physically true variable. Because percentile normalization is computed over the selected observation period, the time range affects the index amplitude.
Repository layout
src/hybris/ Package implementation and public API
examples/ Runnable scripts and example input data
Dataset/ Research dataset and field-level time series
docs/ Figures and supporting documentation
tests/ Tests
Examples
Research paper dataset
More information
Citation
Paolo Dal Lago, Lammert Kooistra, Nandika Tsendbazar, Kirsten de Beurs, "Optical, radar, and hybrid indices to detect farming practices in Europe," Remote Sensing of Environment, volume 344, 2026, 115553, DOI: https://doi.org/10.1016/j.rse.2026.115553.
License
HyBRIS is released under the GNU Affero General Public License v3 or later (AGPL-3.0-or-later).
Acknowledgements
The Sentinel-1 ARD preprocessing is adapted from gee_s1_ard:
Source: https://github.com/adugnag/gee_s1_ard (python-api folder)
Author: Adugna Mullissa et al., MIT License — see their license.
Reference: Mullissa et al. (2021), https://doi.org/10.3390/rs13101954
Metadata
Release files for hybris 0.1.2
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| hybris-0.1.2.tar.gz | 325.8 kB | Without provenance | Details for hybris-0.1.2.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| hybris-0.1.2-py3-none-any.whl | Python 3 | none | any | Details for hybris-0.1.2-py3-none-any.whl |
Total release size: 377.7 kB
Release files / hybris-0.1.2.tar.gz
| Download URL | hybris-0.1.2.tar.gz |
|---|---|
| Size | 325.8 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
9727a3437020656177bfe04371ad8c7c2abd9998670fc48e1a5a0c33ca44ad41
|
|
BLAKE2b-256 checksum How to use checksums |
92300d5970b31596b0ae5bedfe466ba67f63fc9c84a4b0b672c8ec3aa41922e9
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/7.0.0 CPython/3.12.6
|
Release files / hybris-0.1.2-py3-none-any.whl
| Download URL | hybris-0.1.2-py3-none-any.whl |
|---|---|
| Size | 51.9 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
ffb5ab84acfa284edb74ca1df6b6e435be0724da1a3aac7619a843af29536495
|
|
BLAKE2b-256 checksum How to use checksums |
8151fb9a8bfa37adecf04b9948c8b3eb85fb5c3cdbc1937594786816143670c8
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/7.0.0 CPython/3.12.6
|
Security for hybris 0.1.2
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.