hurs2huss: Relative humidity to specific humidity conversion

View source: R/hurs2huss.R

hurs2hussR Documentation

Relative humidity to specific humidity conversion

Description

Relative humidity to specific humidity conversion using surface pressure and temperature

Usage

hurs2huss(hurs, ps, tas)

Arguments

hurs

Relative humidity grid

ps

Surface pressure

tas

Near-surface air temperature

Value

A climate4R CDM grid of specific humidity (in kg/kg)

Input units

In principle, the derivation functions will work regardless of the input units, as all units are internally converted as necessary according to the specific formulae definitions. However, the units string (see getGridUnits) must be parseable. In the same vein, the input units need to be convertible to the required ones. Unit consistency is internally achieved by the function udConvertGrid.

Author(s)

J. Bedia, S. Herrera

References

  • Gregory, D. (2000), Atmospheric thermodynamics. By Craig F. Bohren and Bruce A. Albrecht. Oxford University Press. xiv + 402 pp. Price £49.50 (hardback). ISBN 019 5099044. Q.J.R. Meteorol. Soc., 126: 2631-2632. doi:10.1002/qj.49712656815

See Also

Other derivation: hurs2tdps(), hurs2w(), huss2hurs(), huss2pvp(), ps2psl(), psl2ps(), rad2cc(), tas2ws(), tdps2hurs()

Other humidity: hurs2tdps(), hurs2w(), huss2hurs(), huss2pvp(), tas2ws(), tdps2hurs()

Examples

data("ps.iberia")
data("tas.iberia")
data("huss.iberia")
hurs <- huss2hurs(huss = huss.iberia, ps = ps.iberia, tas = tas.iberia)
huss <- hurs2huss(hurs = hurs, ps = ps.iberia, tas = tas.iberia)
identical(huss$Data, huss.iberia$Data)
# Not identical due to rounding errors:
range(huss$Data - huss.iberia$Data)
## Not run: 
require(visualizeR)
spatialPlot(climatology(hurs), rev.colors = TRUE, backdrop.theme = "coastline")

## End(Not run)

SantanderMetGroup/convertR documentation built on June 30, 2023, 3:03 a.m.