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.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 solarcal 1.2.0
File Size Uploaded Provenance Actions
solarcal-1.2.0.tar.gz 27.7 kB With provenance Details for solarcal-1.2.0.tar.gz

Built distribution (wheel)

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

Total release size: 50.5 kB

Release files / solarcal-1.2.0.tar.gz

Download URL solarcal-1.2.0.tar.gz
Size 27.7 kB
Tags Source
SHA-256 checksum
How to use checksums
894c1df68012724c9a16daca0146dbbfecf641d33ae87522f829570e40c411d4
BLAKE2b-256 checksum
How to use checksums
0cd58c73ced24837ae44c9b12caa37c6bf515743d2ccd2d31030239c503d7215
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 6, 2026.

Transparency log

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

Download URL solarcal-1.2.0-py3-none-any.whl
Size 22.8 kB
Tags Python 3
SHA-256 checksum
How to use checksums
ed721d79e709ee3eeb3ed65bfb705691b4d1f103a247b55140d2f5274596a4fe
BLAKE2b-256 checksum
How to use checksums
19db57cdcf3eb247227415af01b99489d4b5165b15c216a5923e116d2cf84555
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 6, 2026.

Transparency log

Security for solarcal 1.2.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 solarcal-1.2.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 6, 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