rainapplyzero: Adjusts UKCP18 precipitation data to give expected proportion...

Description Usage Arguments Details

View source: R/precipitation.R

Description

Adjusts UKCP18 precipitation data to give expected proportion of days with zero precipitation

Usage

1
rainapplyzero(ukcp_pre, rzero = 18.59483)

Arguments

ukcp_pre

a spatialarray of UKCP18 daily rainfall data as returned by cropresamplerain()

rzero

an optional single numeric value corresponding to the ratio of observed to ukcp18 days with zero precipitation as returned by rainzero_adj().

Details

if no value for rzero is given, a default value derived for Cornwall, UK for the period 2000-12-01 to 2010-11-30 is used. If rzero > 1 (likely to be almost always true), then the requisite number of zeros is assigned to days with the lowest rainfall. If rzero < 1 then a dataset of precipitation values with the same mean and standard deviation of non-zero precipitations values is generated, and the requisite number of days with zero rainfall are assigned the lowest randomly generated precipitations values.


ilyamaclean/UKCP18adjust documentation built on Nov. 4, 2019, 2:08 p.m.