The code does the following:
1) Estimates the achievable yields for cereals in Sub-Saharan Africa (SSA) by grouping regions based on growing degree days, aridity index and soil nutrient quality and using the 95th percentile yield for each group as the achievable yield.
2) Projects the cereal demand in 2050 using data from the International Model for Policy Analysis of Agricultural Commodities and Trade (IMPACT) and the Food and Agriculture Organisation (FAO).
3) Assesses whether closing the existing yield gaps would be enough to meet the 2050 cereal demand.
4) Assesses how climate change under scenarios SSP2-4.5 and SSP5-8.5 would impact attainable yields and the self-sufficiency in 2050.