R/calculate_deltas_from_climate.R
calculate_deltas_from_climate.Rd
Function to process climate data to calculate delta P and delta T.
calculate_deltas_from_climate(
climate_dir = NULL,
write_dir = "step1_calculate_delta_from_climate",
esm_name = NULL,
scn_name = NULL,
crops = c("Corn", "Spring wheat", "Winter wheat", "Rice", "Soy"),
irrigation_rainfed = c("IRR", "RFD"),
minlat = -89.75,
minlon = -179.75,
monthly_growing_season = NULL,
rollingAvgYears = 15,
growing_season_dir = NULL,
tas_historical = NULL,
tas_projected = NULL,
pr_historical = NULL,
pr_projected = NULL,
historical_start_year = NULL,
projection_start_year = NULL
)
Default = NULL
Default = "step1_calculate_delta_from_climate". Output Folder
Default = NULL
Default = NULL
Default = c("Corn", "Spring wheat", "Winter wheat", "Rice", "Soy")
Default = c("IRR", "RFD")
Default = -89.75
Default = -179.75
Default = NULL. A csv file with columns latgrid, longrid, crop, irr, pmonth, gslength, areamask
Default = 15
Default = NULL
= NULL. Filename of historical temperature ncdf.
= NULL. Filename of projected (hot or cold) temperature ncdf.
= NULL. Filename of historical precipitation flux ncdf.
= NULL. Filename of projected (hot or cold) precipitation flux ncdf.
= NULL. Start year of historical data.
= NULL. Start year of projection data.
number