Prepares the site table, by checking whether the input information is consistent.
Usage
prepare_site(site)
Value
a data.frame with one row
Arguments
site
table containing the information about site data. It shall contain exactly one row.
latitude: site latitude in the WGS84 coordinate system.
altitude: site altitude, m a.s.l.
soil_class: soil class, according to table 2 user manual of 3PGpjs. 1 - Sandy; 2 - Sandy loam; 3 - Clay loam; 4 - Clay; 0 - No effect of available soil water on production.
asw_i: initial available soil water (mm).
asw_max: minimum available soil water (mm).
asw_min: maximum available soil water (mm).
from: year and month indicating the start of simulation. Provided in form of year-month. E.g. "2000-01".
to: year and month indicating the end of simulation. Provided in form of year-month. E.g. "2009-12", will include December 2009 as last simulation month.