Skip to content

A super lightweight Lagrangian model for calculating millions of WRF trajectories.

Notifications You must be signed in to change notification settings

lzhenn/easy-wrf-trck

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

22 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Easy-WRF-Trck

Easy-WRF-Trck is a super lightweight Lagrangian model for calculating thousands (even millions) of WRF trajectories simultaneously and efficiently. It implements super simplified equations of 3-D motion to accelerate integration, and python multiprocessing to parallelize the integration tasks. Due to its simplification and parallelization, Easy-WRF-Trck performs great speed in tracing massive air parcels, which makes areawide tracing possible.

Another version using ERA5 Reanalysis to drive the model can be found here.

Caution: Trajectory calculation is based on the nearest-neighbor interpolation and first-guess velocity for super efficiency. Accurate calculation algorithm can be found on http://journals.ametsoc.org/doi/abs/10.1175/BAMS-D-14-00110.1, or use a professional and complicated model e.g. NOAA HYSPLIT instead.

Any question, please contact Zhenning LI

Galleries

Ocean Grid Cracker

oceangrid_emitter

Ocean-Sourced Mass Landfall Tracer

oceangrid_emitter

Mangkhut (1822) Firework

oceangrid_emitter

Input Files

input.csv

./input/input.csv: This file prescribe the mass points for trajectory calculations. The style of this file:

mass_id, init_lat, init_lon, init_h0 (m)

configure.ini

./conf/config.ini: Configure file for the model. You may set WRF input file, input frequency, integration time steps, and other settings in this file.

Module Files

run.py

./run.py: Main script to run the Easy-WRF-Trck.

lagrange.py

./core/lagrange.py: Core module for calculating the mass points Lagrangian trajectories.

air_parcel.py

./lib/air_parcel.py: Module file containing definition of air parcel class and related group functions.

cfgparser.py

./lib/cfgparser.py: Module file containing read/write method of the config.ini

preprocess_wrfinp.py

./lib/preprocess_wrfinp.py: Module file that defines the field_hdl class, which contains useful fields data (U, V, W...) and related method, including wrfout IO operations.

About

A super lightweight Lagrangian model for calculating millions of WRF trajectories.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published