Voodoo method
Project description
VoodooNet
Predicting liquid droplets in mixed-phase clouds beyond lidar attenuation using artificial neural nets and Doppler cloud radar spectra
VOODOO is a machine learning approach based convolutional neural networks (CNN) to relate Doppler spectra morphologies to the presence of (supercooled) liquid cloud droplets in mixed-phase clouds.
Installation
Prerequisites
VoodooNet requires Python 3.10.
Before installing VoodooNet, install PyTorch according to your infrastructure. For example on a Linux machine without GPU you might run:
pip3 install torch --extra-index-url https://download.pytorch.org/whl/cpu
From PyPI
pip3 install voodoonet
Locally for development
pip3 install -e .[dev]
Usage
Make predictions using the default model and settings
import glob
import voodoonet
rpg_files = glob.glob('/path/to/rpg/files/*.LV0')
probability_liquid = voodoonet.infer(rpg_files)
Generate a training data set
import glob
import voodoonet
rpg_files = glob.glob('/path/to/rpg/files/*.LV0')
classification_files = glob.glob('/path/to/classification/files/*.nc')
voodoonet.generate_training_data(rpg_files, classification_files, 'training-data-set.pt')
Train a VoodooNet model
import voodoonet
pre_computed_training_data_set = 'training-data-set.pt'
voodoonet.train(pre_computed_training_data_set, 'trained-model.pt')
Make predictions using the new model
import glob
import voodoonet
from voodoonet.utils import VoodooOptions
rpg_files = glob.glob('/path/to/rpg/files/*.LV0')
options = VoodooOptions(trained_model='new_model.pt')
probability_liquid = voodoonet.infer(rpg_files, options=options)
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
voodoonet-0.1.1.tar.gz
(10.5 MB
view hashes)
Built Distribution
voodoonet-0.1.1-py3-none-any.whl
(10.5 MB
view hashes)
Close
Hashes for voodoonet-0.1.1-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | bea776fbf6a7013836adbeb9c1f9ef296cfb1fea8133c0e9d175609f43183dd3 |
|
MD5 | 7df31c0d7bec6bccd8e19d20758a34c3 |
|
BLAKE2b-256 | 6624330219290f0dbffc3cd94d2194d3a9f9e8f6541a1fd9a32e946a6c8e2e02 |