cap_precip: Cap and Trade and Threshold and Trade Precipiation

Description Usage Arguments Value Author(s) Examples

View source: R/cap_precip.R

Description

A function to produce lower and upper caps on the precipitation in XN5 weather files. Overwrites former files. If a path is provided, and non-weather files are stored as .csv, it will not work. Then, the explicit paths to the weather files need to be provided explicitly.

Usage

1
cap_precip(path, ncrit.up = 20, ncrit.lo = NA, query.recursive = FALSE)

Arguments

path

a character specifying the path to the location of climate files. Can be folder or just one file

ncrit.up

a numeric value which specifies the maximum precipitation (unit according to input file). If NA, cap not used

ncrit.lo

a numeric value which specifies the minimum precipitation (unit according to input file), default NA, meaning the cap is not used.

query.recursive

if a folder is given, option exists to look for sub-folders, default FALSE.

Value

nothing, saves and overwrites weather files.

Author(s)

Tobias KD Weber, tobias.weber@uni-hohenheim.de

Examples

1
2
3
4
5
## Not run: 
path <-  "./"
cap_precip(path, ncrit.up = 20, ncrit.lo = .5)

## End(Not run)

tkdweber/XN5setup documentation built on July 4, 2021, 7:34 a.m.