Skip to main content

s2_rut_python

Pure Python port of ESA's Sentinel-2 radiometric uncertainty tool.

s2_rut_python computes per-pixel radiometric uncertainties for Sentinel-2 Level 1C reflectance data, following the methodology of Gorrono et al. (2017). Outputs are stored in the obsarray uncertainty accessor format.

Warning: This software is in beta. Results should be used with caution. Please share any feedback via the issue tracker.

Usage

Virtual environment

It is always recommended to use a virtual environment for each Python project. Use your preferred environment manager, or create one with:

python -m venv venv

Activate it on Windows with venv\Scripts\activate, or on macOS/Linux with source venv/bin/activate.

Installation

Install the package and its core dependencies:

pip install -e .

Optional extras are available depending on your use case:

pip install -e ".[dev]"      # Development tools (ruff, mypy, pytest, …)
pip install -e ".[docs]"     # Documentation build (sphinx, …)

Development

Install the pre-commit hooks after cloning:

pre-commit install

When you commit, ruff will lint and format your code. If it makes corrections the commit will be aborted so you can review the changes — just commit again once you are happy.

Run the test suite with:

pytest

Compatibility

s2_rut_python requires Python 3.11 or later and is tested on Python 3.11, 3.12, and 3.13.

Licence

s2_rut_python is released under the GNU Lesser General Public License v3 (LGPLv3). See the LICENSE file for the full licence text.

Authors

s2_rut_python is developed and maintained by the MetEOR Toolkit Team.

Citations

Gorrono, J.; Fomferra, N.; Peters, M.; Gascon, F.; Underwood, C.I.; Fox, N.P.; Kirches, G.; Brockmann, C. A Radiometric Uncertainty Tool for the Sentinel 2 Mission. Remote Sens. 2017, 9, 178. https://doi.org/10.3390/rs9020178

Metadata

Release files for s2-rut-python 0.0.5

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for s2-rut-python 0.0.5
File Size Uploaded
s2_rut_python-0.0.5.tar.gz 9.5 MB Details

Built distribution (wheel)

Table of built distributions (wheels) for s2-rut-python 0.0.5
File Interpreter ABI Platform
s2_rut_python-0.0.5-py3-none-any.whl Python 3 none any Details

Total release size: 18.4 MB

Release files / s2_rut_python-0.0.5.tar.gz

Download URL s2_rut_python-0.0.5.tar.gz
Size 9.5 MB
Tags Source
SHA-256 checksum
How to use checksums
9c8bc227c10cd2361bc575a6ef379cb132401c2fe7b3268a1b8baaa3cad16045
BLAKE2b-256 checksum
How to use checksums
04174bd0730cb791233346884d499792e630e34f2d07184c42096623c782fec2
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/6.1.0 CPython/3.13.12

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.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Jun 7, 2026.

Transparency log

Release files / s2_rut_python-0.0.5-py3-none-any.whl

Download URL s2_rut_python-0.0.5-py3-none-any.whl
Size 8.9 MB
Tags Python 3
SHA-256 checksum
How to use checksums
cffbf4dadfa5ba9fd0f56736fbbd4c1b0599a526a94548db7e20cfe48b51785c
BLAKE2b-256 checksum
How to use checksums
ebdd3b3e4f7eacd50f25d2185faacd83fa98d422e92480fc2cdf401c4e13e611
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/6.1.0 CPython/3.13.12

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.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Jun 7, 2026.

Transparency log

Release history Release notifications | RSS feed

This release

0.0.5 This release

2 release files

0.0.4

2 release files

0.0.3

2 release files

0.0.2

2 release files

0.0.1

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page