Calculate relative humidity from 2m temperature (in Celsius) and 2m dew point temperature (in Celsius).

relative_humidity(t2m, d2m, unit = "Celsius", method = "August-Roche-Magnus")

Arguments

t2m

2m temperature (in Celsius)

d2m

2m dew point temperature (in Celsius)

unit

can be "Celsius" (default) or "Kelvin"

method

can be "August-Roche-Magnus" (default) or "Clausius-Clapeyron"

Value

The function returns a numeric, with length equal to t2m (and d2m).

Examples

if (FALSE) {
  relative_humidity(t2m = 30, d2m = 25,
                    unit = "Celsius",
                    method = "August-Roche-Magnus")
}