WGEN_main: WGEN wrapper

Description Usage Arguments Value Examples

View source: R/WGEN_main.R

Description

WGEN wrapper

Usage

1
2
3
4
5
6
7
WGEN_main(
  data,
  mean_mult = 1,
  sd_mult = 1,
  start_date = "1980-01-01",
  end_date = "2010-12-31"
)

Arguments

data

data frame of original weather data. Requires at least the following columns: "year", "month", "date", "Tmax_C", "Tmin_C", "PPT_cm"

mean_mult

scalar to multiply the mean PPT event size by (for adjusting intensity)

sd_mult

scalar to multiply the standard deviation of ppt event size by (for adjusting intensity).

start_date

Start date of weather simulation

end_date

End date of weather simulation

Value

dataframe with simulated daily temperature and precipitation

Examples

1
2
3
4
5
6
7
8
# these are the minimum required columns
data <- wx_data[,  c("year",  "month", "date", "Tmax_C", "Tmin_C", "PPT_cm")]
mean_mult = 1
sd_mult = 1
start_date = "1980-01-01"
end_date = "1980-12-31"
WGEN_main(data = data, mean_mult = mean_mult, sd_mult = sd_mult,
          start_date = start_date, end_date = end_date)

MartinHoldrege/precipr documentation built on Nov. 4, 2021, 11:10 a.m.