powered by
Calculates the y derivative using central differences
df_dy(fld, dy = 0.25, mode = "lonlat")
field containing the partial derivative w.r.t. y
with dimensions (lon,lat,p)
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')
mode='lonlat'
mode='cartesian'
the coordinate system, options are lonlat for a longitude-latitude-grid (default), or cartesian for an equidistant cartesian grid
myfile=system.file("extdata", "era5_storm-zeynep.nc", package = "meteoEVT") data = readin_era5(myfile) theta=calc_theta(data$temp,data$lev) dtheta_dy=df_dy(theta,dy=0.25)
Run the code above in your browser using DataLab