Function that uses emulators to create gridded yield files then aggregates to gcam basin level via MIRCA harvested areas.

grid_to_basin_yield(
  carbon = NULL,
  weight_floor_ha = 1,
  emulator_dir = NULL,
  input_dir = NULL,
  area_dir = NULL,
  basin_grid = NULL,
  basin_id = NULL,
  write_dir = "outputs_grid_to_basin_yield",
  wheat_area = NULL,
  crops = c("maize", "rice", "soy", "wheat"),
  esm_name = "CanESM5",
  cm_name = "LPJmL",
  scn_name = "rcp8p5",
  N = 200
)

Arguments

carbon

Default = NULL

weight_floor_ha

Default = 1

emulator_dir

Default = NULL

input_dir

Default = NULL

area_dir

Default = NULL

basin_grid

Default = NULL

basin_id

Default = NULL

write_dir

Default = "outputs_grid_to_basin_yield". Output Folder

wheat_area

Default = NULL Spring and winter wheat areas

crops

Default = c("maize", "rice", "soy", "wheat")

esm_name

Default = 'CanESM5'

cm_name

Default = 'LPJmL'

scn_name

Default = 'rcp8p5'

N

Default = 200. Assuming nothing is nitrogen limited and apply across grids

Value

number

Examples

if (FALSE) {
library(osiris)
osiris::grid_to_basin_yield()
}