R/calculate_deltas_from_climate.R
calculate_deltas_from_climate.RdFunction to process climate data to calculate delta P and delta T.
calculate_deltas_from_climate(
climate_dir = NULL,
write_dir = "outputs_calculate_delta_from_climate",
esm_name = "CanESM5",
crops = c("Corn", "Wheat", "Rice", "Soy"),
irrigation_rainfed = c("IRR", "RFD"),
minlat = -87.8638,
minlon = -179.75,
monthly_growing_season = NULL,
monthly_harvest_season = NULL,
rollingAvgYears = 15,
growing_season_dir = NULL
)Default = NULL
Default = "outputs_calculate_delta_from_climate". Output Folder
Default = 'CanESM5'
Default = c("Corn", "Wheat", "Rice", "Soy")
Default = c("IRR", "RFD")
Default = -87.8638
Default = -179.75
Default = NULL. A csv file with columns latgrid, longrid, crop, irr, pmonth, gslength, areamask
Default = NULL. A csv file with columns latgrid, longrid, crop, irr, pmonth, hmonth, areamask
Default = 15
Default = NULL
number