dewpoint: Calculates dew point temperature

View source: R/vapour.R

dewpointR Documentation

Calculates dew point temperature

Description

Calculates dew or frost point temperature

Usage

dewpoint(ea, tc = 11, ice = TRUE)

Arguments

ea

vapour pressure (kPa)

ice

optional logical indicating whether to return frost point temperature if output is less than zero degrees C (TRUE = yes)

air

temperature (degrees C)

Value

dew or frost point temperature (degrees C)

Examples

# Comparison of frost and dew point
ea <- c(10:100) / 50
tdew <- dewpoint(ea, ice = F)
tfrost <- dewpoint(ea)
plot(tfrost~ea, type = "l", col = "blue", ylim = c(-20,20))
par(new = T)
plot(tdew~ea, type = "l", col = "red", ylim = c(-20,20))

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