Skip to contents

Generates 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 TRUE writes the results in the data folder. See returned value of loadConfig.

cfg

a config object. Configuration to use. See loadConfig for details

Value

Data frame with merged calibration data for maize: climate, thermal time, LAI, and experiment IDs.