powered by
Calculates the p derivative (pressure system) using central differences
df_dp(fld, plev = 5000)
field containing the partial derivative w.r.t. p
field with dimensions (lon,lat,p)
a scalar containing the p resolution (if equidistant) or a vector containing pressure levels in Pa (for non-equidistant)
myfile=system.file("extdata", "era5_storm-zeynep.nc", package = "meteoEVT") data = readin_era5(myfile) theta=calc_theta(data$temp,data$lev) dtheta_dp=df_dp(theta)
Run the code above in your browser using DataLab