simulateP: Simulates precipitation and temperature sequence.

Description Usage Arguments Value Examples

View source: R/smrainflFt624intmatr100000lapply.R

Description

First, values with daily time resoultion are simulated using either GP or exponential distribution, then temporal patterns are used to disaggregate the values By default it uses parallel processing using 4 cores

Usage

1
2
simulateP(pathmain = NULL, Nsim, durt, distfunc, Pexp, hyet, TempSeq,
  ncl = 4, writeResults = FALSE, PDFplots = FALSE)

Arguments

pathmain

path to files, not needed if writeResults=FALSE

Nsim

number of simulations

durt

critical duration

distfunc

statistical distribution :GP or Exponential

Pexp

parameters of the fitted rainfall distribution not needed if writeResults=TRUE

hyet

list of dataframes of hyetographs for each season, output from stormp not needed if writeResults=TRUE @param TempSeq list of dataframes of temperature series for each season, output from temprsim not needed if writeResults=TRUE @param ncl number of cluster, used for parallel processing

Value

a matrix with each column giving the P/T sequence for a flood event

Examples

1
2
3
4
## Not run: 
h=simulateP(Nsim=1000,durt=24,distfunc="GP",hyet=h,TempSeq=h1,Pexp=d$par,writeResults=FALSE,PDFplots=FALSE)

## End(Not run)

valeriyafilipova/StochasticPQRUT documentation built on Jan. 15, 2019, 12:07 a.m.