powered by
This function calculates the relative humidity from given temperature, dew point temperature and pressure.
TTdP2rh(Temp, Td, P, consts = export_constants())
A vector with temperature values in Kelvin.
A vector with dew point temperature in Kelvin.
A vector with pressure values in Pa.
The constants defined in aiRthermoConstants data are necessary.
This function returns a vector with relative humidity values.
saturation_mixing_ratio
# NOT RUN { data(RadiosondeD) dPs<-RadiosondeD[,1]*100 dTs<-C2K(RadiosondeD[,3]) dws<-RadiosondeD[,6]/1000 dTds<-w2Td(dPs,dws) rhs<-TTdP2rh(dTs,dTds,dPs) # }
Run the code above in your browser using DataLab