powered by
Calculates the Lamb vector (cross product of wind vector and vorticity vector)
calc_lamb( u_fld, v_fld, w_fld, lev_p, lat = NULL, dx = 0.25, dy = 0.25, relative = TRUE, zvort_fld = NULL, mode = "lonlat" )
lamb vector [m/s^2]
zonal velocity field [m/s]
meridional velocity field [m/s]
vertical velocity field [m/s]
vector containing pressure levels [Pa]
vector containing latitude
x resolution in the corresponding unit (e.g. 0.25 degree for ERA5 with mode='lonlat' or e.g. 1000 m in cartesian coordinates with mode='cartesian')
mode='lonlat'
mode='cartesian'
y resolution in the corresponding unit (e.g. 0.25 degree for ERA5 with mode='lonlat' or e.g. 1000 m in cartesian coordinates with mode='cartesian')
logical, TRUE: only relative vorticity, FALSE: whole (absolute) vorticity should be used for calculation of enstrophy, default: TRUE
optional zvort field (if e.g., zvort is directly taken from ERA5 and not calculated separately)
use 'lonlat' if the data is given on a lon-lat-grid or 'cartesian' if the data is given on an equidistant cartesian grid
myfile=system.file("extdata", "era5_storm-zeynep.nc", package = "meteoEVT") data = readin_era5(myfile) lamb=calc_lamb(data$u,data$v,data$w,data$lev,lat=data$lat)
Run the code above in your browser using DataLab