Python functions for the analysis of wind data
Three functions to identify low-level jets in wind profiles:
- Simply loop over all profiles using
np.apply_along_axis
:
llj_strength = wspd.reduce(detect_llj,dim='level')
- Fully vectorized function returning one llj characteristic at a time
Most generic, can still be optimized by returning multiple outputs at once.
llj_strength = wspd.reduce(detect_llj_vectorized,dim='level',output='falloff')
- High-level xarray implementation
Fastest for my specific use case
lljs = detect_llj_xarray(wspd)