Learn R Programming

meteoEVT (version 0.1.0)

calc_theta: Potential temperature

Description

Calculates the potential temperature

Usage

calc_theta(t_fld, lev_p)

Value

density [kg/m^3]

Arguments

t_fld

temperature field [K]

lev_p

vector containing pressure levels [Pa]

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)

Run the code above in your browser using DataLab