Learn R Programming

⚠️There's a newer version (0.1.5) of this package.Take me there.

humidity

humidity is an R package for calculating water vapor measures from temperature and dew point.

Introduction

Vapor pressure, relative humidity, absolute humidity, specific humidity, and mixing ratio are commonly used water vapor measures in meteorology. This R package provides functions for calculating saturation vapor pressure (hPa), partial water vapor pressure (Pa), relative humidity (%), absolute humidity (kg/m^3), specific humidity (kg/kg), and mixing ratio (kg/kg) from temperature (K) and dew point (K). Conversion functions between humidity measures are also provided.

Installation

Get the released version from CRAN:

install.packages("humididty")

Or the development version from github:

if (!requireNamespace("devtools")) install.packages("devtools")
devtools::install_github("caijun/humidity", build_vignettes = TRUE)

Tutorial

To get started with humidity package, view available vignettes in the package:

browseVignettes("humidity")

Contact

Bugs and feature requests can be filed to https://github.com/caijun/humidity/issues. Pull requests are also welcome.

Copy Link

Version

Install

install.packages('humidity')

Monthly Downloads

263

Version

0.1.4

License

GPL-3

Issues

Pull Requests

Stars

Forks

Maintainer

Last Published

June 10th, 2018

Functions in humidity (0.1.4)

SVP.Murray

calculate saturation vapor pressure using the Murray equation
SVP

calculate saturation vapor pressure
ivs

Viability of influenza A virus for 1 hour after spraying
T0

Absolute zero
SH

calculate specific humidity
SH2RH

convert specific humidity into relative humidity
WVP2

calculate partial water vapor pressure given relative humidity and saturation water vapor pressure
C2K

Celsius to Kelvin conversion
K2C

Kelvin to Celsius conversion
Rw

Specific gas constant of water vapor
WVP1

calculate partial water vapor pressure given dew point
L

Latent heat of water vapor
Mw

Molecular weight of water vapor
AH

calculate absolute humidity
MR

calculate mixing ratio
RH

calculate relative humidity
Md

Molecular weight of dry air
Es.T0

Saturation vapor pressure at absolute zero (hPa)
SVP.ClaCla

calculate saturation vapor pressure using the Clausius-Clapeyron equation