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.6

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.6
File Size Uploaded Provenance Actions
s2_rut_python-0.0.6.tar.gz 9.5 MB With provenance Details for s2_rut_python-0.0.6.tar.gz

Built distribution (wheel)

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

Total release size: 18.4 MB

Release files / s2_rut_python-0.0.6.tar.gz

Download URL s2_rut_python-0.0.6.tar.gz
Size 9.5 MB
Tags Source
SHA-256 checksum
How to use checksums
0eff0afaf140bd68d7c42ecfc263936af0efed80606478ab6f34f0017ada7087
BLAKE2b-256 checksum
How to use checksums
481ecdd9de8f2edfb3f9bc9fba19fc71eb474ebf77e90ba82a5d173d8855cf65
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

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 Nov 24, 2026.

Transparency log

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

Download URL s2_rut_python-0.0.6-py3-none-any.whl
Size 8.9 MB
Tags Python 3
SHA-256 checksum
How to use checksums
fe98f2926bb58a71bd77d041049981d11ab34cc03476c743547e0ebac97dbba2
BLAKE2b-256 checksum
How to use checksums
0f2c5fdbdd2975d16ebfee27a8a253c457e1587ee18711c20216a0d6955ea8da
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

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 Nov 24, 2026.

Transparency log

Security for s2-rut-python 0.0.6

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.

Full provenance

Both files in this release have been uploaded with provenance metadata.

Select from 2 files

Attestation for s2_rut_python-0.0.6.tar.gz

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 Nov 24, 2026.

Transparency log

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.

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