applyPPTdelta_detailed: 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 with checks

Usage

1
applyPPTdelta_detailed(m, data, ydelta, add_days, mult_days, daily, monthly)

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.

daily

A list. Each element corresponds to one year of simstartyr:endyr is an object of class rSOILWAT2::swWeatherData.

monthly

A numeric matrix. Monthly time-series of observed weather calculated from daily for the years simstartyr:endyr.

Value

A list with two elements

data

A copy of data with adjusted values.

PPT_to_remove

The total amount of precipitation that could not be removed from data due to lack of precipitation.


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