split_monthly: Disaggregate monthly parameters from a COSERO parameter file

View source: R/write_COSEROreg_par.r

split_monthlyR Documentation

Disaggregate monthly parameters from a COSERO parameter file

Description

Disaggregate parameters with dimensions NBIZNM to monthly columns

Usage

split_monthly(x, parameter, wnames)

Arguments

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.

Details

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.

Value

a matrix containing 12 columns

Author(s)

Simon Frey


freysimon/TigR documentation built on April 20, 2024, 9:28 p.m.