applyPPTdelta_simple: Add/multiply deltas to historic daily precipitation to...

Description Usage Arguments Value

View source: R/ExtractData_ClimateDownscaling.R

Description

Add/multiply deltas to historic daily precipitation to generate future daily precipitation without checks

Usage

1
2
3
4
5
6
7
8
applyPPTdelta_simple(
  m,
  data,
  ydelta,
  add_days,
  mult_days,
  set_negPPT_to0 = TRUE
)

Arguments

m

An integer vector. Each element corresponds to a day (i.e., length(m) is 365 or 366 days) and the values are the number of the month.

data

A numeric vector. Precipitation of each day.

ydelta

A numeric vector. Delta values for each day. If computed deltas are monthly, then they must be repeated for each day before passed as argument to this function.

add_days

A logical vector. TRUE for each day for which ydelta is applied additively.

mult_days

A logical vector. TRUE for each day for which ydelta is applied multiplicatively.

set_negPPT_to0

A logical value. If TRUE (default) then force days with resulting negative values of precipitation to 0 – thereby introducing a positive bias.

Value

A copy of data with adjusted values.


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