Scilab Function
Last update : 21/8/2006
c_GENEPAR - Function to calculate the parameters of the daily rainfall generator
Calling Sequence
-
PAR = c_GENEPAR(DateDep,P)
Parameters
-
DateDep
: Date of the first value of P vector (format 199001010000)
-
P
: Observed daily rainfall time series (in mm/day, vector of N lines where N is the number of days of observation)
-
PAR
: Calculated parameters of the generator (in mm/day, matrix [7x8]).
The first column contains the mean non-null rainfall for each of the 6 seasons and the total mean non-null rainfall (PAR(7,1)).
The second to seventh column contain the probability of transition from one state to another.
The eighth column contains the parameter of the exponential low for the law rainfall values.
The last line of the matrix is only used to store the total mean non-null rainfall on the first column.
Description
-
WARNING : This function is written in C language and interfaced with SCILAB (HYDROGR.dll).
-
CAUTION : If PAR contains -9.999 values, it means that the rainfall data are not sufficient to calculate the parameters of the generator.
-
See c_GENEPLUIE for an implementation of the generator.
Examples
// If P is a vector containing daily rainfall values starting on the 1/1/1975
PAR = c_GENEPAR(197501010000,P);
See Also
c_GENEPLUIE
,
c_CONVDATE
,
Authors
-
Julien Lerat (transcription of fortran code written by Claude Michel)
CEMAGREF Antony, HBAN Unit, julien.lerat@cemagref.fr