Skip to contents

This function estimates the dew point temperature (C) using the Magnus-Tetens approximation, based on the minimum air temperature and relative humidity at that time.

Usage

dp_mint(mint, minrh)

Arguments

mint

Numeric. Minimum air temperature in degrees Celsius.

minrh

Numeric. Relative humidity (%) at minimum temperature.

Value

Numeric. Dew point temperature in degrees Celsius.

Details

The dew point temperature is calculated using the following equations:

$$ \gamma = \frac{a \cdot T}{b + T} + \ln\left(\frac{RH}{100}\right) $$ $$ T_{dew} = \frac{b \cdot \gamma}{a - \gamma} $$

where \(a = 17.62\) and \(b = 243.12\).

Examples

dp_mint(10, 80)  # Expected output: around 6.71
#> [1] 6.706013