Skip to content

david00-sudo/wrf_utils

Repository files navigation

WRF Python Plotting Tools

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.

Features

This repository includes two main plotting scripts:

  1. 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.
  2. 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.

Prerequisites

To run these scripts, you will need the libraries listed in the requirements.txt file. Install them using pip:

pip install -r requirements.txt

To generate the plots, simply run:

python script_name.py config.ini

Two 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!

About

No description or website provided.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages