converthumidity: Convert between different measures of humidity

converthumidityR Documentation

Convert between different measures of humidity

Description

converts between different humidity measures, namely vapour pressure or relative, absolute or specific humidity.

Usage

converthumidity(h, intype = "relative", tc = 11, pk = 101.3)

Arguments

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).

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 one or more of the relative humidity values exceeds 100\

Value

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).

Examples

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

ilyamaclean/microctools documentation built on Jan. 25, 2023, 5:29 a.m.