converthumidity: Convert between different measures of humidity

View source: R/microclima_functions.R

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% a warning is given.

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)

dklinges9/mcera5 documentation built on March 1, 2024, 11:40 p.m.