Skip to main content
radcalnet_oc

PyPI Python CI Documentation License LUT DOI

radcalnet_oc

Simulation of the top-of-atmosphere signal above AERONET-OC sites, for the calibration and validation (Cal/Val) of passive optical satellite sensors over ocean and coastal waters.

radcalnet_oc propagates the water-leaving radiance measured at the surface, typically by AERONET-OC stations, up to the top of the atmosphere (TOA). It accounts for gaseous absorption, Rayleigh and aerosol scattering (OPAC aerosol models) and the reflection of the sky by the wind-roughened sea surface, from radiative transfer look-up tables:

$$ R_{toa}(\lambda) = T_g^{\downarrow} T_g^{\uparrow} \left[ \pi, R_{rs}(\lambda), T^{\downarrow}(\lambda), t^{\uparrow}(\lambda) + R_{atm}(\lambda) \right] $$

The simulated hyperspectral TOA reflectance (350–2500 nm) is then convolved with the spectral responses of the satellite bands (Sentinel-2, Sentinel-3, Landsat...) for comparison with the satellite data.

Propagation of the AERONET-OC measurements from the surface to the top of atmosphere and comparison with satellite data

📖 Documentation: https://radcalnet-oc.readthedocs.io (methods, processing chain, tutorials, API reference).

Installation

Python >= 3.10 is required (3.10, 3.11 and 3.12 tested), e.g. in a conda environment:

conda create -n radcalnet_oc python=3.12
conda activate radcalnet_oc
pip install radcalnet_oc

or from a clone of this repository: pip install .

Look-up table

The radiative transfer TOA look-up table (toa_lut_opac_wind_v3.nc, about 900 MB) is not part of the package. It is downloaded from Zenodo (checksum verified) the first time the look-up tables are loaded, into ~/.local/share/radcalnet_oc/lut by default. It is the look-up table of GRS: if you already have it, point radcalnet_oc to its folder instead.

radcalnet_oc_config                         # configuration in use and LUT check
radcalnet_oc_config --download              # download the LUT now (e.g. before working offline)
radcalnet_oc_config --init /path/to/lut     # use an existing LUT folder (e.g. the GRS one)

The LUT folder can also be set with the environment variable RADCALNET_OC_DATA_ROOT, and the automatic download switched off with RADCALNET_OC_NO_DOWNLOAD=1. Without the full look-up table, a light version shipped with the package is used, with a lower accuracy.

Quick start

Command line

radcalnet_oc AAOT_input.nc --vza 0,10 --azi 90 --bands 443,490,560,665,865 --fwhm 20

The input is a NetCDF time series of surface measurements (Rrs, sza, day_of_year, aot550, pressure, tcwv, tco3, tcno2...; see the usage page). The output holds the TOA reflectance Rtoa, the atmosphere reflectance Ratm, the irradiances Ed and E0, and their band averages with --bands. Run radcalnet_oc --help for all the options.

Python

import numpy as np
import xarray as xr
from importlib.resources import files
import radcalnet_oc as radoc

# example input shipped with the package
input_db = xr.open_dataset(files('radcalnet_oc.data.template') / 'template_clear_water.nc')

# viewing geometry of the satellite
vza = xr.DataArray([0., 10.], coords={'vza': [0., 10.]}, dims='vza')
azi = xr.DataArray([90.], coords={'azi': [90.]}, dims='azi')

process = radoc.Process(input_db=input_db, vza=vza, azi=azi)
process.execute()
Rtoa = process.radcalnet_db.Rtoa

# band-averaged TOA reflectance
spectral = radoc.Spectral(central_wl=np.array([443., 490., 560., 665., 865.]), fwhm=20.)
Rtoa_bands = spectral.convolve2(Rtoa).Rtoa

Development

pip install -e ".[dev]"
pytest

The unit tests use the light look-up table of the package and never download the full one. See CONTRIBUTING.md for the tests, the look-up tables and the release recipe, and CHANGELOG.md for the version history.

License

Apache License 2.0, see LICENSE.

Author

Tristan Harmel (tristan.harmel@gmail.com)

Metadata

Release files for radcalnet-oc 1.0.2

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

Source distribution (sdist)

Source distribution for radcalnet-oc 1.0.2
File Size Uploaded Provenance Actions
radcalnet_oc-1.0.2.tar.gz 14.0 MB With provenance Details for radcalnet_oc-1.0.2.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for radcalnet-oc 1.0.2
File Interpreter ABI Platform Actions
radcalnet_oc-1.0.2-py3-none-any.whl Python 3 none any Details for radcalnet_oc-1.0.2-py3-none-any.whl

Total release size: 28.0 MB

Release files / radcalnet_oc-1.0.2.tar.gz

Download URL radcalnet_oc-1.0.2.tar.gz
Size 14.0 MB
Tags Source
SHA-256 checksum
How to use checksums
4dbc700e5afa92748940e2617fe20b7f41f80629c7dbb64e7d63375c813005f3
BLAKE2b-256 checksum
How to use checksums
8a8128486c956912546ef99ef41ae571f50c7bab8bac6e54c2cdf56d4ccd9727
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 2, 2026.

Transparency log

Release files / radcalnet_oc-1.0.2-py3-none-any.whl

Download URL radcalnet_oc-1.0.2-py3-none-any.whl
Size 14.0 MB
Tags Python 3
SHA-256 checksum
How to use checksums
b8dfa902c7174ce642e5363f42942babbf2b9546d84c7cb88dacd555189b01dc
BLAKE2b-256 checksum
How to use checksums
082368dc49ad40cbddafcd6a7707ebb006eee9a90a8bcbac5971c9fbf1fadb49
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 2, 2026.

Transparency log

Security for radcalnet-oc 1.0.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.

Full provenance

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

Select from 2 files

Attestation for radcalnet_oc-1.0.2.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 2, 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