A collection of Python scripts to process and visualize output data from the Weather Research and Forecasting (WRF) model. These tools are designed to be easily configurable via .ini files, keeping the codebase clean and separated from geographical inputs.
This repository includes two main plotting scripts:
-
Skew-T Log-P Generator (
plot_skewt.py)- Generates thermodynamic soundings with meteorological indices (CAPE, CIN, LCL, LFC) and Precipitable Water(PWAT)
- Features a dynamic hodograph colored by Above Ground Level (AGL) altitude.
- Calculates the surface parcel, wet-bulb profile, and equivalent potential temperature (
$\theta_e$ ) profile.
-
Single-Variable Meteograms (
plot_meteograms.py)- Extracts time-series data for specific coordinates across a WRF domain.
- Generates plots for Temperature (2m), Relative Humidity, Wind Speed & Direction (10m), and Precipitation series.
- Fully customizable units (Celsius/Kelvin, m/s vs km/h) and calculation methods via the configuration file.
- Includes a color-gradient fill mapped to the Y-axis values for intuitive visualization.
To run these scripts, you will need the libraries listed in the requirements.txt file. Install them using pip:
pip install -r requirements.txtTo generate the plots, simply run:
python script_name.py config.iniTwo base .ini files are provided: config_sound.ini for the Skew-T plots and meteo.ini for the meteograms.
You must specify in the configuration files the path where your WRF outputs are located. Whether you have more than one domain or not, a domain number must be specified, for example d01, d02, etc.
This repository is the first version of these scripts. More options will be added in the future. Any suggestions or bug reports during use are greatly appreciated.
Enjoy!