controlExtremePPTevents: Check for and handle days with too extreme precipitation...

Description Usage Arguments Details

View source: R/ExtractData_ClimateDownscaling.R

Description

Check for and handle days with too extreme precipitation values

Usage

1
2
3
4
5
6
7
8
controlExtremePPTevents(
  data,
  dailyPPTceiling,
  sigmaN,
  do_checks = FALSE,
  mfact = 10,
  seed = NA
)

Arguments

data

A numeric vector. Daily values of precipitation.

dailyPPTceiling

A numeric value. The maximum value of daily precipitation. Values above this limit will be removed and redistributed to other days.

sigmaN

An integer value. A multiplier of stats::sd for data checks.

do_checks

A logical value. See details.

mfact

A numeric value. See details.

seed

A seed set, NULL, or NA. NA will not affect the state of the RNG; NULL will re-initialize the RNG; and all other values are passed to set.seed.

Details

If do_check == TRUE and any daily precipitation is equal or larger than mfact * dailyPPTceiling, then the code will error out.


Burke-Lauenroth-Lab/SoilWat_R_Wrapper documentation built on Aug. 14, 2020, 5:17 p.m.