View source: R/write_COSEROreg_par.r
split__NZNM_monthly | R Documentation |
Disaggregate parameters with dimensions NC,NM to monthly columns
split__NZNM_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. INTMAX instead of INTMAX1 |
wnames |
integer or integer vector. Position(s) of names in vector holding all COSERO Parameter names. |
In COSERO (old) some parameters use the dimensions NC,NM (landuse, 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 searches for the corresponding land use (NC) per cell (NZ) and assigns the monthly values to each column.
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.