Learn R Programming

meteoEVT (version 0.1.0)

df_dp: df_dp

Description

Calculates the p derivative (pressure system) using central differences

Usage

df_dp(fld, plev = 5000)

Value

field containing the partial derivative w.r.t. p

Arguments

fld

field with dimensions (lon,lat,p)

plev

a scalar containing the p resolution (if equidistant) or a vector containing pressure levels in Pa (for non-equidistant)

Examples

Run this code
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