create_execute_test_xml.Rd
Create a PEcAn XML file and use it to run a PEcAn workflow
create_execute_test_xml(
model_id,
met,
site_id,
start_date,
end_date,
dbfiles_folder,
user_id,
output_folder = "batch_test_output",
pecan_path = getwd(),
pft = NULL,
ensemble_size = 1,
sensitivity_variable = "NPP",
sensitivity = FALSE,
db_bety_username = NULL,
db_bety_password = NULL,
db_bety_hostname = NULL,
db_bety_port = NULL,
db_bety_driver = "Postgres"
)
(numeric) Model ID (from `models` table)
(character) Name of meteorology input source (e.g. `"CRUNCEP"`)
(numeric) Site ID (from `sites` table)
(character or date) Run start date
(character or date) Run end date
(character) Path to `dbfiles` directory
(numeric) User ID to associate with the workflow
(character) Path to root directory for storing outputs. Default = `"batch_test_output"`
(character) Path to PEcAn source code. Default is current working directory.
(character) Name of PFT to run. If `NULL` (default), use the first PFT in BETY associated with the model.
(numeric) Number of ensembles to run. Default = 1.
(character) Variable for performing sensitivity analysis. Default = `"NPP"`
(logical) Whether or not to perform a sensitivity analysis (default = `FALSE`)
(character) BETY database connection options. Default values for all of these are pulled from `<pecan_path>/web/config.php`.
(character) BETY database connection driver (default = `"Postgres"`)
A list with two entries: * `sys`: Exit value returned by the workflow (0 for sucess). * `outdir`: Path where the workflow results are saved