Learn R Programming

meteoEVT (version 0.1.0)

df_dy: df_dy

Description

Calculates the y derivative using central differences

Usage

df_dy(fld, dy = 0.25, mode = "lonlat")

Value

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

Arguments

fld

with dimensions (lon,lat,p)

dy

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

the coordinate system, options are lonlat for a longitude-latitude-grid (default), or cartesian for an equidistant cartesian grid

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_dy=df_dy(theta,dy=0.25)

Run the code above in your browser using DataLab