Calculate Water Vapor Measures from Temperature and Dew Point

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.


Build Status CRAN_Status_Badge rstudio mirror downloads

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.

News

CHANGES IN humidity VERSION 0.1.3

MISC

NEW FEATURES

  • added SH2RH() function to convert specific humidity into relative humidity

CHANGES IN humidity VERSION 0.1.2

MISC

  • added vignette Humidity Measures
  • updated vignettes by using bibliographies and citations, and forward-pipe operator

NEW FEATURES

  • added RH() function to calculate relative humidity based on temperature and dew point
  • changed WVP() into WVP2(), and added WVP1() to calculate partial water vapor pressure given dew point

CHANGES IN humidity VERSION 0.1.1

MISC

  • added CITAION, NEWS files

BUG FIXES

CHANGES IN humidity VERSION 0.1.0

NEW FEATURES

  • first version of humidity

NOTE

Reference manual

It appears you don't have a PDF plugin for this browser. You can click here to download the reference manual.

install.packages("humidity")

0.1.4 by Jun Cai, 8 months ago


https://github.com/caijun/humidity


Report a bug at https://github.com/caijun/humidity/issues


Browse source code at https://github.com/cran/humidity


Authors: Jun Cai [aut, cre]


Documentation:   PDF Manual  


Task views: Hydrological Data and Modeling


GPL-3 license


Suggests knitr, rmarkdown, bookdown, tidyverse


See at CRAN