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, with the gaseous absorption coupled with the scattering:

$$ R_{toa}(\lambda) = \pi, R_{rs}(\lambda), T^{\downarrow}(\lambda), t^{\uparrow}(\lambda), T_g^{w}(\lambda)

  • T_g^{atm}(\lambda), R_{atm}(\lambda), \qquad T_g^{X} = \left(1 + s_X^2, \eta_X, \tau_g\right)^{-1/s_X^2} $$

The path reflectance $R_{atm}$ and the water-leaving term have their own gaseous transmittances ($\tau_g$ optical thickness of the absorbers along the geometric path; $\eta_X$, $s_X^2$ mean and relative variance of the absorber paths of each term), from a photon path-length model fitted on full radiative transfer simulations of the coupled absorption and scattering (SOS-ABS).

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, and ROADMAP.md for the planned improvements.

License

Apache License 2.0, see LICENSE.

Author

Tristan Harmel (tristan.harmel@gmail.com)

Metadata

Release files for radcalnet-oc 1.1.0

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.1.0
File Size Uploaded Provenance Actions
radcalnet_oc-1.1.0.tar.gz 15.5 MB With provenance Details for radcalnet_oc-1.1.0.tar.gz

Built distribution (wheel)

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

Total release size: 30.9 MB

Release files / radcalnet_oc-1.1.0.tar.gz

Download URL radcalnet_oc-1.1.0.tar.gz
Size 15.5 MB
Tags Source
SHA-256 checksum
How to use checksums
110f5caec59318133787ef93eae6d37bc1c61d8496c9b7ea46e7156f93acab43
BLAKE2b-256 checksum
How to use checksums
c2144c613d1272467ab1dcc706ebd72ca3043dc4e4d974cc60a0c75d5d7a7068
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 16, 2026.

Transparency log

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

Download URL radcalnet_oc-1.1.0-py3-none-any.whl
Size 15.4 MB
Tags Python 3
SHA-256 checksum
How to use checksums
27c4744ff24b215127d7481610335b314523c293c1d4fc8f1b7b485e437aaed9
BLAKE2b-256 checksum
How to use checksums
b3dee203547499653b47998483ae847243686c5cc8903ee06759b153a91268d9
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 16, 2026.

Transparency log

Security for radcalnet-oc 1.1.0

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.1.0.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 16, 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