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 = 100,
emulator_dir = NULL,
input_dir = NULL,
area_dir = NULL,
basin_grid = NULL,
basin_id = NULL,
region_id = NULL,
gridded_yield_dir = NULL,
write_dir = "step2_grid_to_basin_yield",
wheat_area = NULL,
crops = c("Corn", "Rice", "Soy", "Spring Wheat", "Winter Wheat"),
esm_name = "WRF",
cm_name = "LPJmL",
scn_name = "rcp8p5_hotter",
N = 200
)
Default = NULL
Default = 100 Floor on area weights, in hectares. Below this climate impacts will be ignored. These are more likely than others to be problematic. 1 hectare = 0.01 km^2 = 1e-5 thou km^2, GCAM land units
Default = NULL
Default = NULL
Default = NULL
Default = NULL
Default = NULL
Default = NULL. Filters to specified GCAM region (1-32), otherwise no filter
Default = NULL.
Default = "step2_grid_to_basin_yield". Output Folder
= NULL
Default = c("Corn", "Rice", "Soy", "Spring Wheat", "Winter Wheat")
Default = 'WRF'
Default = 'LPJmL'
Default = 'rcp8p5_hotter'
Default = 200. Assuming nothing is nitrogen limited and apply across grids
number