aiRthermo (version 1.0)

densityDry: Density of Dry Air

Description

From pressure P (Pa) and temperature Temp (K), this funtion calculates the density of dry air in \(kg/m^3\)

Usage

densityDry(P, Temp, consts = export_constants())

Arguments

P

A vector with pressure values (Pa)

Temp

A vector with temperature values (K)

consts

The constants defined in aiRthermoConstants data are necessary.

Value

A vector with density of dry air values is returned (\(kg/m^3\))

Examples

Run this code
# NOT RUN {
data(RadiosondeD)
dPs<-RadiosondeD[,1]*100
dTs<-C2K(RadiosondeD[,3])
densityDry(dPs,dTs)
# }

Run the code above in your browser using DataCamp Workspace