humidityconvert | R Documentation |
humidityconvert
is used to convert between different measures of humidity, namely relative, absolute or specific. Vapour pressure is also returned.
humidityconvert(h, intype = "relative", tc = 20, p = 101300)
h |
humidity value(s). Units as follows: specific humidity (kg kg-1), absolute humidity (kg m-3 ), relative humidity (percentage), vapour pressure (kPa). |
intype |
a character string description of the humidity type of |
tc |
A numeric value specifying the temperature (ºC). |
p |
An optional numeric value specifying the atmospheric pressure (Pa). |
This function converts between vapour pressure and specific,
relative and absolute humidity, based on sea-level pressure and
temperature. It returns a list of relative, absolute and specific
humidity and vapour pressure. If intype
is unspecified, then h
is
assumed to be relative humidity. If p
is unspecified, pressure assumed
to be 101300, a typical value for sea-level pressure. If one or more of the
relative humidity values exceeds 100\
a list of numeric humidity values with the following components:
relative
- relative humidity (percentage)
absolute
- absolute humidity (kg m-3 )
specific
specific humidity (kg kg-1 )
vapour_pressure
vapour pressure (kPa)
humidityconvert(90, 'relative', 20)
humidityconvert(0.01555486, 'absolute', 20)
humidityconvert(0.01292172, 'specific', 20)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.