Create calibration datasets
create_calibration_datasets.RdGenerates calibration datasets for multiple crops using climate and LAI data
from multiple years, locations and sources. Processes raw climate and LAI
data, applies thermal time calculations, and merges results.
Functions names are formatted to match the crop name and source (e.g.,
create_calibration_datasets.maize.presti,
create_calibration_datasets.soybean.presti,
create_calibration_datasets.sugarbeet.itb).
Usage
create_calibration_datasets.maize.presti(
path = getDataPath("Calibration/Datasets/Datasets_maize_presti.RDS", cfg = cfg),
write_results = cfg$data$write_results,
cfg = loadConfig()
)
create_calibration_datasets.soybean.presti(
path = getDataPath("Calibration/Datasets/Datasets_soybean_presti.RDS", cfg = cfg),
write_results = cfg$data$write_results,
cfg = loadConfig()
)
create_calibration_datasets.sugarbeet.itb(
path = getDataPath("Calibration/Datasets/Datasets_sugarbeet_itb.RDS", cfg = cfg),
write_results = cfg$data$write_results,
cfg = loadConfig()
)Arguments
- path
character Path to save or load the calibration dataset.
- write_results
logical If
TRUEwrites the results in the data folder. See returned value ofloadConfig.- cfg
a config object. Configuration to use. See loadConfig for details