View source: R/microclima_functions.R
converthumidity | R Documentation |
converts between different humidity measures, namely vapour pressure or relative, absolute or specific humidity.
converthumidity(h, intype = "relative", tc = 11, pk = 101.3)
h |
humidity value(s). Units as follows: specific humidity (kg/kg), absolute humidity (kg/m^3), relative humidity (Percentage), vapour pressure (kPa). |
intype |
a character string description of the humidity type of 'h'. One of "relative", "absolute" or "specific". |
tc |
A numeric value specifying the temperature (deg C). |
pk |
An optional numeric value specifying the atmospheric pressure (kPa). |
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 one or more of the relative humidity values exceeds 100% a warning is given.
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).
'vapour_pressure' vapour pressure (kPa).
converthumidity(90, 'relative', 20)
converthumidity(0.01555486, 'absolute', 20)
converthumidity(0.01292172, 'specific', 20)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.