View source: R/write_COSEROreg_par.r
split_monthly | R Documentation |
Disaggregate parameters with dimensions NBIZNM to monthly columns
split_monthly(x, parameter, wnames)
x |
the output from read_COSERO_par |
parameter |
character. Name of the parameter that will be split and returned. Note the the parameter name must not contain numbers indicating the month. E.g. PCOR instead of PCOR1 |
wnames |
integer or integer vector. Position(s) of names in vector holding all COSERO Parameter names. |
In COSERO (old) some parameters use the dimensions NBIZNN (subbasin, cell within the subbasin, month) and are stored in the parameterfile in one column where all NBIZ of month 1 are placed above the ones of NBIZ of month 2 and so on and so forth. In COSEROreg, however, the parameterfile uses distinct columns per month. This routine splits the monhtly based parameters and stores them in a matrix where every column represents a month.
a matrix containing 12 columns
Simon Frey
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.