TTdP2rh {aiRthermo} | R Documentation |
This function calculates the relative humidity from given temperature, dew point temperature and pressure.
TTdP2rh(Temp, Td, P, consts = export_constants())
Temp |
A vector with temperature values in Kelvin. |
Td |
A vector with dew point temperature in Kelvin. |
P |
A vector with pressure values in Pa. |
consts |
The constants defined in aiRthermoConstants data are necessary. |
This function returns a vector with relative humidity values.
data(RadiosondeD) dPs<-RadiosondeD[,1]*100 dTs<-C2K(RadiosondeD[,3]) dws<-RadiosondeD[,6]/1000 dTds<-w2Td(dPs,dws) rhs<-TTdP2rh(dTs,dTds,dPs)