humidityconvert: Converts between different measures of humidity

View source: R/othertools.R

humidityconvertR Documentation

Converts between different measures of humidity

Description

humidityconvert is used to convert between different measures of humidity, namely relative, absolute or specific. Vapour pressure is also returned.

Usage

humidityconvert(h, intype = "relative", tc = 20, p = 101300)

Arguments

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 h. One of "relative", "absolute" or "specific".

tc

A numeric value specifying the temperature (ºC).

p

An optional numeric value specifying the atmospheric pressure (Pa).

Details

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\

Value

a list of numeric humidity values with the following components:

1

relative - relative humidity (percentage)

2

absolute - absolute humidity (kg m-3 )

3

specific specific humidity (kg kg-1 )

4

vapour_pressure vapour pressure (kPa)

Examples

humidityconvert(90, 'relative', 20)
humidityconvert(0.01555486, 'absolute', 20)
humidityconvert(0.01292172, 'specific', 20)

ilyamaclean/microclima documentation built on Sept. 5, 2024, 8:37 p.m.