Skip to main content

Python package

☀️ Suncal

Suncal is a software package for solar calibration of radar data respecting the ODIM H5 convention. It utilizes radio noise from the Sun to check the quality of dual-polarization weather radar receivers for the S-band and C-band.

Installation

Suncal is published on PyPI as solarcal:

pip install solarcal

Then import it as suncal in your Python scripts:

import suncal

Note: the suncal package on PyPI is an unrelated project. pip install suncal does not install this software. Both packages import as suncal, so avoid installing them in the same environment.

Requirements

  • Python 3.9 or later
  • Radar data in ODIM H5 format

pip installs the required packages automatically: h5py, numpy, pandas, pyodim (0.7 or later), scikit-learn and scipy.

Upgrading

Version 1.2.0 corrects the Sun position calculation, which changes pointing results compared with earlier versions. See the changelog for details.

Bibliography

If you use suncal in your research, please cite the following paper:

Louf, Valentin, and Alain Protat. Real-Time Monitoring of Weather Radar Network Calibration and Antenna Pointing. Journal of Atmospheric and Oceanic Technology, April 24, 2023. https://doi.org/10.1175/JTECH-D-22-0118.1.

BibTeX:

@article {Louf2023,
    author = "Valentin Louf and Alain Protat",
    title = "Real-Time Monitoring of Weather Radar Network Calibration and Antenna Pointing",
    journal = "Journal of Atmospheric and Oceanic Technology",
    year = "2023",
    publisher = "American Meteorological Society",
    volume = "40",
    number = "7",
    doi = "10.1175/JTECH-D-22-0118.1",
    pages=  "823 - 844",
}

The Suncal algorithm is a Python implementation based on:

  • Huuskonen, A., & Holleman, I. (2007). Determining Weather Radar Antenna Pointing Using Signals Detected from the Sun at Low Antenna Elevations. Journal of Atmospheric and Oceanic Technology, 24(3), 476–483. 10.1175/JTECH1978.1
  • Holleman, I., & Huuskonen, A. (2013). Analytical formulas for refraction of radiowaves from exoatmospheric sources. Radio Science, 48(3), 226–231. 10.1002/rds.20030
  • Altube, P., Bech, J., Argemí, O., & Rigo, T. (2015). Quality control of antenna alignment and receiver calibration using the sun: Adaptation to midrange weather radar observations at low elevation angles. Journal of Atmospheric and Oceanic Technology. 10.1175/jtech-d-14-00116.1
  • Huuskonen, A., Kurri, M., & Holleman, I. (2016). Improved analysis of solar signals for differential reflectivity monitoring. Atmospheric Measurement Techniques, 9(7), 3183–3192. 10.5194/amt-9-3183-2016

About

Suncal uses a Sun position algorithm derived from sun-position, available under the MIT license, which is based on the algorithm in:

  • Reda, I., & Andreas, A. (2004). Solar position algorithm for solar radiation applications. Solar Energy, 76(5), 577–589. 10.1016/j.solener.2003.12.003

License

Suncal is licensed under the Apache License 2.0, except for suncal/spa.py, which is derived from sun-position and remains under the MIT License.

Metadata

Release files for solarcal 1.2.1

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

Source distribution (sdist)

Source distribution for solarcal 1.2.1
File Size Uploaded Provenance Actions
solarcal-1.2.1.tar.gz 27.8 kB With provenance Details for solarcal-1.2.1.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for solarcal 1.2.1
File Interpreter ABI Platform Actions
solarcal-1.2.1-py3-none-any.whl Python 3 none any Details for solarcal-1.2.1-py3-none-any.whl

Total release size: 50.7 kB

Release files / solarcal-1.2.1.tar.gz

Download URL solarcal-1.2.1.tar.gz
Size 27.8 kB
Tags Source
SHA-256 checksum
How to use checksums
6e708fd27a66484976d5a278f646937f385eb9d84381eedecd8fccfb8d5252d2
BLAKE2b-256 checksum
How to use checksums
140e929e6838a7e3a5ed864bbc90f476c64765a2d30e63033c9cbb9713a0941a
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 9, 2026.

Transparency log

Release files / solarcal-1.2.1-py3-none-any.whl

Download URL solarcal-1.2.1-py3-none-any.whl
Size 22.9 kB
Tags Python 3
SHA-256 checksum
How to use checksums
9d0f5ae747ebd6e08173888f5d676ed20e93866a6acd7a6c7f9be00f83c7d6a0
BLAKE2b-256 checksum
How to use checksums
520cb78f2aaeb351e3f6ace566f34cea3080d29b7e52798f0402eb8132c6feac
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 9, 2026.

Transparency log

Security for solarcal 1.2.1

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 solarcal-1.2.1.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 9, 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