powered by
Calculates the Bernoulli function, i.e. total energy density, as sum of potential, kinetic and thermal energy density
calc_bernoulli(t_fld, u_fld, v_fld, w_fld, phi_fld)
Bernoulli function field [m^2/s^2]
temperature field [K]
zonal velocity field [m/s]
meridional velocity field [m/s]
vertical velocity field [m/s]
geopotential height [gpm]
myfile=system.file("extdata", "era5_storm-zeynep.nc", package = "meteoEVT") data = readin_era5(myfile) bernoulli=calc_bernoulli(data$temp,data$u,data$v,data$w,data$z)
Run the code above in your browser using DataLab