rad2cc: Cloud cover estimation from radiation data

View source: R/rad2cc.R

rad2ccR Documentation

Cloud cover estimation from radiation data

Description

Cloud cover estimation from radiation data

Usage

rad2cc(rsds = NULL, rlds = NULL, rtds = NULL)

Arguments

rsds

Shortwave downwelling radiation. Ignored if rtds is provided

rlds

Longawe downwelling radiation. Ignored if rtds is provided.

rtds

Total (longwave + shortwave) radiation. If provided, rsds and rlds are ignored.

Value

A climate4R grid of estimated cloud cover

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

See Also

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

Examples

data("rsds.iberia")
data("rlds.iberia")
cc <- rad2cc(rsds.iberia, rlds.iberia)
## Not run: 
require(visualizeR)
spatialPlot(climatology(cc), rev.colors = TRUE, backdrop.theme = "coastline")

## End(Not run)
# Total radiation can be alternatively used:
require(transformeR)
rtds <- gridArithmetics(rsds.iberia, rlds.iberia, operator = "+")
cc2 <- rad2cc(rtds = rtds)
identical(cc2, cc)

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