Skip to main content

ceiloclass

CI

Cloud, aerosol and precipitation classification from ceilometer / lidar backscatter and model temperature. Built on ceilopyter for reading and harmonizing the instrument data.

Installation

Not yet on PyPI, so install from source:

git clone https://github.com/actris-cloudnet/ceiloclass.git
cd ceiloclass
python3 -m venv venv
source venv/bin/activate
pip install .

Usage

Fetch and classify a day of raw ceilometer data for a site (the instrument is discovered automatically; if a site has several, you are prompted to pick one):

ceiloclass -s munich -d 2025-05-25 --show

Leave out -d to classify the current day (UTC) so far:

ceiloclass -s kenttarova --show

Add --harmonized to use the Cloudnet harmonized lidar product instead of raw data, -i to narrow to a particular instrument, or pass local files directly:

ceiloclass --harmonized -s munich -d 2025-05-25 --show
ceiloclass -i cl61 ceilo.nc -m model.nc --plot out.png

Use -o to write the classification itself to a compressed, CF-compliant netCDF file (combinable with --plot/--show):

ceiloclass --harmonized -i cl61 -s kenttarova -d 2023-09-04 -a 30 -o classification.nc

--harmonized covers every harmonized backscatter instrument at the site — ceilometers, PollyXT, DIAL (e.g. the Vaisala DA10), and the experimental doppler-lidars — prompting when several are available. Use -i to pick one directly, e.g. a HALO doppler lidar:

ceiloclass --harmonized -i halo -s bucharest -d 2026-05-19 --show

Classify the CL61 lidar product at Kenttärova, averaging into 30 s bins, using the HARMONIE model and showing the plot up to 6 km:

ceiloclass -s kenttarova -d 2023-09-04 -a 30 --harmonized -i cl61 -m harmonie-fmi-6-11 --max-y 6 --show --no-histogram

Classification example for Kenttärova, 2023-09-04

Arguments

Argument Description
files Ceilometer data file(s). If omitted, files are fetched using --site/--date.
-i, --instrument Instrument. For local raw files, the reader: cl31, cl51, cl61, chm15k, cs135, ct25k, ld40. When fetching a harmonized product it is optional and filters by instrument-id substring (e.g. halo, pollyxt, cl61); you are prompted if several remain.
--harmonized Use a Cloudnet harmonized backscatter product (ceilometers, PollyXT, DIAL, doppler-lidars) instead of raw data.
--no-rescreen With --harmonized, classify the product's own screened beta instead of re-screening beta_raw (the default). Cloudnet's screening is less aggressive, so it keeps more weak/edge signal.
--no-surface-liquid Do not detect fog / low stratus from the lowest range gates. Use when the instrument's near-surface overlap correction is unreliable and produces spurious surface liquid layers.
-m, --model Cloudnet model netCDF file, or a model id to fetch (e.g. ecmwf, harmonie-fmi-6-11) when using --site/--date.
-s, --site Cloudnet site id (to fetch raw files and/or model), e.g. munich.
-d, --date Date YYYY-MM-DD (to fetch raw files and/or model). Defaults to today (UTC) when the data files are fetched.
--download-dir Directory for fetched files (default: the package data/ directory).
--calibration-factor Override the backscatter calibration factor.
-a, --average Average into time bins of this width (seconds) before classifying (faster).
-o, --output Write the classification to this compressed netCDF4 (.nc) file.
--plot Write a classification plot to this PNG file.
--show Show the plot in a window.
--max-y Upper limit of the range axis in plots (km).
--no-histogram Omit the diagnostic backscatter histogram panel from plots.

How it works

Each time–range pixel is classified from attenuated backscatter and model temperature alone. The method follows CloudnetPy's target classification, restricted to the parts that work without radar:

  • Liquid layers are detected as sharp backscatter peaks. A layer is supercooled liquid where the model wet-bulb temperature is below 0 °C, and a warm liquid droplet layer otherwise.
  • Strong, non-liquid signal is cloud or precipitation: ice in the sub-freezing air above the 0 °C level, drizzle/rain in the warm air below it. Precipitation falls from a cloud, so drizzle/rain is kept only where it connects to a liquid layer or ice above, or where the column is too deep to be aerosol; other bright warm signal stays aerosol. The backscatter threshold separating this from weaker signal is picked per file from the backscatter histogram, so it adapts to each site/day's aerosol load.
  • Remaining signal is aerosol; gates with no signal are clear — except above a profile whose beam was extinguished (a liquid cloud, precipitation with no visible cloud above it, an abruptly ending cloud-bright top, or a column whose integrated backscatter has reached the saturation plateau estimated from that file's liquid clouds), where the signal-free void is beam attenuated: the lidar could not see there.
  • With a CL61, the depolarization ratio splits ice from liquid (non-spherical ice depolarizes strongly) and anchors the freezing level to the observed ice.

License

MIT

Metadata

Release files for ceiloclass 0.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 ceiloclass 0.2.0
File Size Uploaded Provenance Actions
ceiloclass-0.2.0.tar.gz 639.7 kB With provenance Details for ceiloclass-0.2.0.tar.gz

Built distribution (wheel)

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

Total release size: 697.1 kB

Release files / ceiloclass-0.2.0.tar.gz

Download URL ceiloclass-0.2.0.tar.gz
Size 639.7 kB
Tags Source
SHA-256 checksum
How to use checksums
963af7316175fe21cd1db290f85ace667d405aec55c8adc9c23ea029bccb56cd
BLAKE2b-256 checksum
How to use checksums
dfc5458ad5754c627a9e96481e0edd42a7760349bc9dc7843b55e27c0cbb13f5
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 Dec 2, 2026.

Transparency log

Release files / ceiloclass-0.2.0-py3-none-any.whl

Download URL ceiloclass-0.2.0-py3-none-any.whl
Size 57.3 kB
Tags Python 3
SHA-256 checksum
How to use checksums
b3521ecf82e62254ccb5a31adf2373323762d5d556b2ab2e9bad9fe2f4501359
BLAKE2b-256 checksum
How to use checksums
d1d89791759c7a3bcb47884c1711acc66d0ce9ca335dc7f2a41ef218d766a0e5
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 Dec 2, 2026.

Transparency log

Security for ceiloclass 0.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 ceiloclass-0.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 Dec 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.

Release history Release notifications | RSS feed

This release

0.2.0 This release

2 release files Full provenance

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