Skip to contents

read_schedule reads *.sch CENTURY soil model files and saves their content in a list.

Usage

read_schedule(pathname = pathname, filename = filename)

Arguments

pathname

character string containing a valid path to a *.sch file.

filename

character string with the name of the schedule file. It must include the extension '.sch'.

Value

list with two elements named 'header' and 'block_inf', each one being also a list. The former list includes basic schedule information that is common to all blocks and that is stored at the beginning of the file. The latter list has as many elements as treatment blocks, and within each block there are some info bits specific to that block and a three-column data.frame, stored in an element named 'Schedule', with the timing of treatment. Columns are labelled 'year', 'month' and 'option'.

Examples

# See example in \code{\link{century_run}}.