Skip to main content

A Python package for atmospheric cloud bands detection.

Project description

CloudbandPy

cloudbandPy is a Python package for detecting and tracking atmospheric cloud bands.

The cloudbandPy package detect tropical-extratropical cloud bands. This software can use various regular grid datasets.

This is currently the development software used for research.

1. Installation

To install, type:

pip install cloudbandpy

Additionnaly, you can clone cloudbandPy

git clone https://github.com/romainpilon/cloudbandPy.git

Go to the directory

cd cloudbandPy

Then install the package with

pip install -e .

Optionally, a conda environment.yml file is provided to create a conda virtual environment containing all librairies required. Before installing the package with pip, you may run

conda env create --file=environment.yml

Then you may activate it

conda activate cloudbandpy

2. Input Data Requirements

cloudbandPy works with netCDF files using netCDF4's capability to handle 3-dimension arrays of gridded latitude/longitude data. Currently, cloudbandPy supports ERA5 data on its regular grid. Irregular grids must be regridded to a regular grid beforehand.

The input data must contain at least 3 dimensions: time, latitude and longitude, in this order. cloudbandPy only supports detection and tracking data on 2D arrays.

3. Usage

Before you run anything, make sure that the configuration file is set up the way you want it, i.e. setting up the input data directory, all the paths of the files, and so on

To run the cloud band detection, run the following command:

python ./cloudbandPy/runscripts/run.py ./cloudbandPy/config/config_cbworkflow_southPacific.yml

Default settings:

  • Input data are 3-hourly ERA5 OLR data with filenames written as such top_net_thermal_radiation_yyyy.nc where yyyy is the year.
  • The detection period is 24 hours.
  • Output files containing cloud bands are written in a specific directory that will be created in the current directory.
  • Cloud band masks and characteristics are written to netCDF4 files and stored in a user defined directory.
  • Figures will be saved in a specific directory that will be created in the current directory.

Example run scripts are located in the runscripts directories.

To see specific use of the code, a set of notebooks are located in the notebooks directory.

4. Contributing

Pull requests are welcome. For major changes, please open an issue first to discuss what you would like to change.

Please make sure to update tests as appropriate.

5. Disclaimer

This package contains modified ERA5 data. Copernicus Climate Change Service (C3S) (2023): ERA5 hourly data on single levels from 1959 to present. Copernicus Climate Change Service (C3S) Climate Data Store (CDS). 10.24381/cds.adbb2d47

Neither the European Commission nor ECMWF is responsible for any use that may be made of the Copernicus information or data this code contains.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

cloudbandpy-1.2.2.tar.gz (24.2 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

cloudbandpy-1.2.2-py3-none-any.whl (26.1 kB view details)

Uploaded Python 3

File details

Details for the file cloudbandpy-1.2.2.tar.gz.

File metadata

  • Download URL: cloudbandpy-1.2.2.tar.gz
  • Upload date:
  • Size: 24.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.0.1 CPython/3.9.21

File hashes

Hashes for cloudbandpy-1.2.2.tar.gz
Algorithm Hash digest
SHA256 43f0d76f02efd55afcfa94cebd6ea4cdc0c10e97f953d958f51edec4d029f3d0
MD5 165696e61d89d5c93ba5a1f11a298d14
BLAKE2b-256 259f9c32e02c5fc927d1d74793819695a10bfe4f3d062740ec56dada83be0555

See more details on using hashes here.

File details

Details for the file cloudbandpy-1.2.2-py3-none-any.whl.

File metadata

  • Download URL: cloudbandpy-1.2.2-py3-none-any.whl
  • Upload date:
  • Size: 26.1 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.0.1 CPython/3.9.21

File hashes

Hashes for cloudbandpy-1.2.2-py3-none-any.whl
Algorithm Hash digest
SHA256 3f9a7779464fa3111e06e6c490503400a4d22882a330fcc6c8992d9503c6403c
MD5 40115d9e9070a275483bb9f4a70eba64
BLAKE2b-256 5db0abc6d86b9b0d835cd9780800e47dc5f16f5b0f2e1177546278c7061d3692

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page