This post was from a previous version of the WRF&MPAS-A Support Forum. Please do not add new replies here and if you would like the thread moved out of the Historical / Archive section then contact us, making sure to include the link of the thread to be moved.
Thank you. I searched for the equation of relative humidity a lot. But I didn't find any equation to calculate relative humidity. Every equation needs something that I don't have in my WRF output. Could you write the equation, please?
Here is a small piece of Fortran to calculate relative humidity from mixing ratio:
real, parameter :: svp1=611.2
real, parameter :: svp2=17.67
real, parameter :: svp3=29.65
real, parameter :: svpt0=273.15
real, parameter :: eps = 0.622
rh = 1.E2 * (p*q/(q*(1.-eps) + eps))/(svp1*exp(svp2*(t-svpt0)/(T-svp3)))
Note that t (temperature), p (pressure) and q (mixing ratio) are output variables in wrfout.