run_BASGRA.Rd
BASGRA wrapper function. Runs and writes model outputs in PEcAn standard.
run_BASGRA(
run_met,
run_params,
site_harvest,
site_fertilize,
start_date,
end_date,
outdir,
sitelat,
sitelon,
co2_file = NULL,
write_raw_output = FALSE
)
path to CF met
parameter vector
path to harvest file
path to fertilizer application file
start time of the simulation
end time of the simulation
where to write BASGRA output
latitude of the site
longitude of the site
path to daily atmospheric CO2 concentration file, optional, defaults to 350 ppm when missing
write raw output in csv or not
BASGRA is written in fortran is run through R by wrapper functions written by Marcel Van Oijen. This function makes use of those wrappers but gives control of datastream in and out of the model to PEcAn. With this function we skip model2netcdf, we can also skip met2model but keeping it for now. write.config.BASGRA modifies args of this function through template.job then job.sh runs calls this function to run the model