Skip to contents

Convert specific humidity to relative humidity

Usage

qair2rh(qair, temp, press = 1013.25)

Arguments

qair

specific humidity, dimensionless (e.g. kg/kg) ratio of water mass / total air mass

temp

degrees C

press

pressure in mb

Value

rh relative humidity, ratio of actual water mixing ratio to saturation mixing ratio

Details

converting specific humidity into relative humidity NCEP surface flux data does not have RH from Bolton 1980 The computation of Equivalent Potential Temperature http://www.eol.ucar.edu/projects/ceop/dm/documents/refdata_report/eqns.html

This function is lifetd from the data.atmosphere package https://github.com/PecanProject/pecan/blob/master/modules/data.atmosphere/R/metutils.R

Author

David LeBauer