Skip to main content

Hagelslag is a Python package for storm-based analysis, forecasting, and evaluation.

Project description

Hagelslag

Storm tracking, machine learning, and probabilistic evaluation

NSF-1261776

Hagelslag is an object-based severe storm forecasting system that utilizing image processing and machine learning tools to derive calibrated probabilities of severe hazards from convection-allowing numerical weather prediction model output. The package contains modules for storm identification and tracking, spatio-temporal data extraction, and machine learning model training to predict hazard intensity as well as space and time translations.

Citation

If you employ hagelslag in your research, please acknowledge its use with the following citations:

Gagne, D. J., A. McGovern, S. E. Haupt, R. A. Sobash, J. K. Williams, M. Xue, 2017: Storm-Based Probabilistic Hail
Forecasting with Machine Learning Applied to Convection-Allowing Ensembles, Wea. Forecasting, 32, 1819-1840. 
https://doi.org/10.1175/WAF-D-17-0010.1. 

Gagne II, D. J., A. McGovern, N. Snook, R. Sobash, J. Labriola, J. K. Williams, S. E. Haupt, and M. Xue, 2016: 
Hagelslag: Scalable object-based severe weather analysis and forecasting. Proceedings of the Sixth Symposium on 
Advances in Modeling and Analysis Using Python, New Orleans, LA, Amer. Meteor. Soc., 447.

If you discover any issues, please post them to the Github issue tracker page. Questions and comments should be sent to djgagne at ou dot edu.

Requirements

Hagelslag is compatible with Python 3.6 or newer. Hagelslag is easiest to install with the help of the Miniconda Python Distribution, but it should work with other Python setups as well. Hagelslag requires the following packages and recommends the following versions:

  • numpy >= 1.10
  • scipy >= 0.15
  • matplotlib >= 1.4
  • scikit-learn >= 0.16
  • pandas >= 0.15
  • arrow >= 0.8.0
  • pyproj
  • netCDF4-python
  • xarray
  • jupyter
  • ncepgrib2
  • pygrib
  • cython
  • pip
  • sphinx
  • mock

Install dependencies with the following commands:

git clone https://github.com/djgagne/hagelslag.git
cd ~/hagelslag
conda env create -f environment.yml
conda activate hagelslag

Installation

Install the latest version of hagelslag with the following command from the top-level hagelslag directory (where setup.py is): pip install .

Hagelslag will install the libraries in site-packages and will also install 3 applications into the bin directory of your Python installation.

Use

A Jupyter notebook is located in the demos directory that showcases the functionality of the package. For larger scale use, 3 scripts are provided in the bin directory.

  • hsdata performs object tracking and matching as well as data processing.
  • hsfore trains and applies machine learning models.
  • hseval performs forecast verification.

All scripts take input from a config file. The config file should be valid Python code and contain a dictionary called config. Custom machine learning models and parameters should be contained within the config files. Examples of them can be found in the config directory.

Documentation

API Documentation is available here.

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

hagelslag-0.6.tar.gz (72.4 MB view details)

Uploaded Source

Built Distribution

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

hagelslag-0.6-py3-none-any.whl (1.2 MB view details)

Uploaded Python 3

File details

Details for the file hagelslag-0.6.tar.gz.

File metadata

  • Download URL: hagelslag-0.6.tar.gz
  • Upload date:
  • Size: 72.4 MB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.9.18

File hashes

Hashes for hagelslag-0.6.tar.gz
Algorithm Hash digest
SHA256 b1d263b3ee3004d483d6640ccd8f6be068d85816874e75eb4a9fe725ecade445
MD5 3e1fa3d59a2b9c3ce669fe8b43b2fcf2
BLAKE2b-256 b745c103129922b753646b9b7f1230125b641f992b7e8e7f387f742495963679

See more details on using hashes here.

File details

Details for the file hagelslag-0.6-py3-none-any.whl.

File metadata

  • Download URL: hagelslag-0.6-py3-none-any.whl
  • Upload date:
  • Size: 1.2 MB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.9.18

File hashes

Hashes for hagelslag-0.6-py3-none-any.whl
Algorithm Hash digest
SHA256 da39c5ebf985cf3b86c47f847a427afcb4c0e90ba941efb42619fca039333385
MD5 bf1c227ba19fc523c52a83feb56b43b7
BLAKE2b-256 fb6ca529092b75122f881390eb6be3979b45e90c6e915a9a46a3842a1f1febaa

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