Assessing crops for fields based on weather, water, sun, and soil: now and mid-century.
[ View the interactive map | Watch a video walkthrough ]
The most reliable predictor of what crop will be planted in a particular field for a growing season (the crop profile for the field) is what crops were planted in previous seasons. However, climate change will force crop profiles into regimes outside of the historical context.
In general, the goals of the Future Fields Project are to enable discovery of new crop profiles that match the new climate reality of agricultural fields in the USA, and to assess the suitability of current crop profiles for future climate scenarios. Overall, Future Fields reveals new agricultural patterns forced by climate change.
In practice, the Future Fields Project assesses the suitability of crops for fields in four states of the US Southwest for medium carbon and high carbon mid-century (2039 to 2065) climate scenarios. Each field in the Crop Sequence Boundary 2016-2023 dataset was assessed for each crop in the FAO EcoCrop database.
For each field and crop species, scores were calculated for:
- growing season
- temperature
- photoperiod
- rainfall
- soil pH
- Köppen-Geiger climate zone
- USDA Plant Hardiness Zone
Scores were calculated for three scenarios:
- recent past (1970-2005)
- mid-century medium carbon (2039-2065, RCP 4.5)
- mid-century high carbon (2039-2065, RCP 8.5)
Scores were evaluated for each scenario and two crop categories:
- The actual crop sequence 2016-2023
- The set of best-scoring crops
Future Fields makes these comparisons:
- The best assessed crops for each climate scenario
- The match between the actual crops sequence grown during the 2016 to 2023 seasons (inclusive) and the best assessed crops for each scenario
Many fields in the Crop Sequence Boundary dataset are irrigated, but climate-dependent changes in ground and surface water sources are uncertain so fields are assessed without irrigation. Thus, crops that are most suitable for un-irrigated fields will score highest in the Future Fields assessment.
More details, results and discussion are presented here: http://github.com/jqwhite/future_fields
-
Agricultural field data (Crop Sequence Boundaries): The Crop Sequence Boundary file for the 2016-2023 growing seasons from the National Agricultural Statistics Service [ ~5.6Gb .zip file ]. This dataset contains field location, shape, and attributes for agricultural fields in the Continental United States [ CSB Viewer ] [1].
-
Crop characteristics data (EcoCrop): The EcoCrop Crop Database [2–4]. The version for this study was combined from two sources: EcoCrop-ScrapeR and OpenClim [2,3]. USDA plant hardiness zone data was scraped from the Plants for a Future database [5]. The combined, cleaned, imputed dataset used for Future Fields is available as
EcoCrop_Complete.csv
. -
Climate Zone Data: High-resolution (1 km) Köppen-Geiger maps for 1901–2099 based on constrained CMIP6 projections [ ~90Mb .zip file ] [6].
-
USDA Plant Hardiness Zone Data: Hardiness zone data for fields is from Climate Toolbox Climate Mapper datasets for recent and mid-century climate scenarios [7]. Hardiness zone data for crops were scraped from the Plants for a Future database [5].
-
Climate data for temperature and growing season: The Localized Constructed Analogs (LOCA) Derived Variables from the 4th National Climate Assessment [ ~2.8 Gb .zip file ] [8,9].
-
Climate data for spring and summer temperature and precipitation: The Climate Toolbox Climate Mapper datasets for mean and minimum summer temperatures, minimum annual temperatures, and annual precipitation for recent and mid-century climate scenarios [7].
-
Crop translator: A translation file of Cropland Data Layer / Crop Sequence Boundary crop codes to likely EcoCrop species:
cdl_to_ecocrop_code_translator.csv
-
Climate zone translator: A translation file from Köppen-Geiger Climate Zones (Climate Model) to Trewartha Climate Zones (EcoCrop):
trewartha_to_koppen_geiger.txt
in thedata/ climate/zones/
folder. -
Elevation: Digital Elevation Model from the PRISM Climate Group [ 835 Kb zip ] [10].
-
Soils: The Gridded National Soil Survey Geographic Database (gNATSGO) [ 8Gb zip file ] [11].
A conda
environment with python,
xarray
, rioxarray
, dask
, dask_geopandas
, netcdf4
, pandas
, geopandas
, altair
, matplotlib
, shapely
, rasterio
, and folium
.
A full example conda
environment is provided in requirements.txt
Notebook | Function |
CDL_to_ecocrop_crop_code_translator.ipynb
|
Translates Cropland Data Layer crop codes to EcoCrop crop species and index. |
CSB_geobalanced_sample.ipynb
|
Generates a geographically balanced sample of fields for Arizona, New Mexico, Utah, and Colorado and saves a geopandas dataframe as parquet file. |
CSB_state_extraction_all_states.ipynb
|
Extracts all crop sequence boundary data by state and territory and saves as parquet, geojson, and shapefiles. Extraction time is ~2 hours in an M1 iMac. |
CSB_state_extraction_four_corners.ipynb
|
Extracts crop sequence boundary data for AZ, NM, CO and UT to a geopandas dataframe, and saves data as parquet files. |
EcoCrop_feature_names.ipynb
|
Inspection of EcoCrop variable (column) names from the OpenClim download of the EcoCrop dataset mapping of column names to full explanation. |
EcoCrop_USDA_plant_hardiness_scrape.ipynb
|
Scrapes USDA Plant Hardiness scores from the Plants for a Future database and adds it as a column to the OpenClim download of the EcoCrop dataset. |
EcoCrop_DataCleaningCombined.ipynb
|
Combines OpenClim and EcoCrop-ScrapeR datasets; contains scraped USDA Plant Hardiness scores. Generates EcoCrop_Complete.csv
|
LOCA_variables.ipynb
|
Inspection of Localized Constructed Analogs (LOCA) climate model variables; cleans columns. |
Scores_climate_zone.ipynb
|
Calculates the Climate_Zone score:
|
Scores_temperature.ipynb
|
Calculates the Temperature score.
|
Scores_photoperiod.ipynb
|
Calculates the Photoperiod score.
|
Scores_precipitation.ipynb
|
Calculates the Precipitation score.
|
Scores_usda_hardiness_zone.ipynb
|
Calculates the Hardiness score.
|
Scores_soil_pH.ipynb
|
Calculates the pH score.
|
Scores_overall_analysis_and_maps.ipynb
|
Calculates final score matrices: score_matrix_overall_sum.nc
(in
and
(in |
The project evaluated fields in the Four Corners states of the Southwest USA: Arizona, New Mexico, Colorado, and Utah. These states were selected because they have arid climates at high altitude, so it is anticipated they will be strongly affected by climate change [12].
Each field was evaluated for each crop. For each scenario (recent, mid-century medium-carbon, and mid-century high-carbon) and field, crop combination, a score was calculated based on field characteristics and crop requirements. The scores were combined into a final score matrix, and the best-scoring crops are categorized as suitable crops for that field for that climate scenario.
Scenarios from the Fourth National Climate Assessment [8]:
- “Historical Climate” product — Averages from 32 model simulations of the 1976–2005 climate, 1976-2005.
- “Lower Emissions” product — Averages from 32 model simulations under the Representative Concentration Pathway (RCP) 4.5 scenario, 2036-2065.
- “Higher Emissions” product — Averages from 32 model simulations under the RCP8.5 scenario, 2036-2065.
Scenarios from the Climate Toolbox Climate Mapper [7]:
“The scenarios come from the Fifth Coupled Model Inter-Comparison Project (CMIP5). The future emission scenarios are in terms of Representative Concentration Pathways (RCPs), which describe future scenarios of socioeconomic development that consider economic, demographic, technological and policy futures for the 21st century and beyond.”
The emission scenarios utilized here are:
- Historical simulations: modeled greenhouse gases and aerosols - mean of models for 1971-2000
- Lower Emissions (RCP 4.5) : a future scenario of moderate climate policy (e.g., mitigation) - means for 2040-2069
- Higher Emissions (RCP 8.5): a high emissions scenario without strict climate policy- means for 2040-2069
Scenarios from Köppen-Geiger climate zone forecasts[6]:
“The historical maps (encompassing[…]1991–2020) are based on high-resolution, observation-based climatologies. The future maps (encompassing 2041–2070 and 2071–2099) are based on downscaled and bias-corrected climate projections from the Coupled Model Intercomparison Project phase 6 (CMIP6) and cover seven Shared Socio-economic Pathways (SSPs). We evaluated 67 climate models and selected 42 with the most plausible CO2-induced warming rates to derive the future maps.[Citation error]”
The emission scenarios utilized here are:
- Historical observations 1991-2020
- 2041-2070 SSP245 Projections
- 2041-2070 SSP5855 Projections
Details are in the Score_*.ipynb
notebooks for each score. In general, for each field, crop, scenario combination, the score was
- -1 if the field conditions were obviously detrimental to the plant,
- 0 if neutral or no data, and
- +1 if the field conditions matched the plant’s requirement
A summary of each score calculation is provided below.
There is no available soil forecast for mid-century, and it is unclear how soil pH will change with climate, so the current pH values were used for all 3 scenarios: current/recent past and mid-century projections.The pH values for all soil data within a field boundary (shape) were averaged. The average pH over the field was compared to the pH requirements for the crop (representative value measured in water, ph1to1h2o_r
) and scored as follows:
- +1 if the field mean representative pH is within the optimal range.
- 0 if the field mean representative pH is within the absolute range but not in the optimal range.
- -1 if the field mean representative pH is outside the absolute range.
Köppen-Geiger climate zone data are from reference [6]. The Köppen-Geiger for each field and scenario was compared to the Trewartha climate zone of each crop using the mapping:
# Trewartha to Köppen–Geiger mapping
trewartha_to_koppen = {
'Aw': ['Aw'], # Tropical wet & dry
'Ar': ['Af', 'Am'], # Tropical wet
'Bs': ['BSh', 'BSk'], # Steppe or semiarid
'Cf': ['Cfa', 'Cfb', 'Cfc'], # Subtropical humid
'Cs': ['Csa', 'Csb', 'Csc'], # Subtropical dry summer
'Cw': ['Cwa', 'Cwb', 'Cwc'], # Subtropical dry winter
'Bw': ['BWh', 'BWk'], # Desert or arid
'Do': ['Cfb', 'Cfc'], # Temperate oceanic
'Dc': ['Dfa', 'Dfb', 'Dfc', 'Dfd'], # Temperate continental
'Df': ['Dfa', 'Dfb', 'Dfc', 'Dfd'], # Temperate with humid winters
'Dw': ['Dwa', 'Dwb', 'Dwc', 'Dwd'], # Temperate with dry winters
'E' : ['ET'], # Boreal
'F' : ['EF'] # Polar
}
Scoring: Does the field zone match the crop?
- +1 if yes
- 0 if no (lack of a match is not necessarily detrimental)
Plant hardiness zone projections for fields are from the Climate Toolbox Climate Mapper [7]. Hardiness zone data for crops are from the Plants for a Future database [5]. Hardiness zones are more strict, so if the zone of the field does not match it is most likely detrimental to the crop. Does field match the crops USDA Plant Hardiness zone?
- 1 if yes
- 0 if hardiness zone information is absent
- -1 if zone does not match
Photoperiod data for fields are derived from LOCA variables from the Fourth National Climate Assessment [8]. The photoperiod score takes several characteristics into account: field latitude (daylight hours) during the growing season (season centered on the last spring freeze and first fall freeze).
The photoperiod score was calculated in several steps.
- Find growing season length: Look up 41F growing season by field location (latitude, longitude).
- Find the first and last days of the growing season: Center the 41F growing season between last spring frost and first fall frost to find the start date and end date of the growing season. This step also takes into account the elevation
- Check crop cycle fit: Determine if the crop cycle fits within the growing season at that location of the field. That is, answer the question, is the growing season long enough for the crop to grow to harvest (the crop cycle)?
- Check available sunlight: If the growing season is long enough for the crop, calculate the average daily sunlight for the field from the latitude of the field and the start and end days of the growing season.
- Check photoperiod requirements: Compare the photoperiod estimate for the field latitude to the plant’s photoperiod requirements.
Photoperiod data for fields are derived from LOCA variables from the Fourth National Climate Assessment [8]. The temperature score is calculated differently for annual and non-annual crops ( biennials and perennials).
- Annual Crops:
- Check if the growing season is long enough for the crop cycle. If not, score = -1.
- Check if the minimum summer temperature is greater than the killing temperature for growth. If not, score = -1.
- If the average temperature during the growing season is outside of the absolute temperature range tolerated by the crop for growth, score = -1.
- If the average temperature during the growing season is within the absolute temperature range for the crop, but outside the optimal range, score = +0.5.
- If the average temperature during the growing season is within the optimal temperature range, score = +1.
- If no crop temperature characteristics are available, score 0.
- Biennial and Perennial Crops:
- Check if the minimum annual temperature is greater than the killing temperature for rest. If not, score = -1. (Cold will kill the crop over the winter).
- Otherwise, score as per annual crops.
Precipitation data for fields are from the Climate Toolbox Climate Mapper [7]. The score attempts to match the average rainfall during the spring and summer growing seasons to the crop requirement.
- Find rainfall during the growing season: Find the total rainfall for each field for spring (March, April, May), and summer (June, July, August).
- Calculate an average daily rainfall for spring and summer (1 March through 31 August; 184 days).
- Calculate the average crop cycle: The average crop cycle is the mean of the minimum and maximum crop cycle (
Crop_Cycle_Min + Crop_Cycle_Max)/2 = Crop_Cycle_Avg
). - Calculate the total rainfall: Total rainfall is given by (daily average x number of days), where the number of days is the average crop cycle.
- Check if rainfall is within crop range: Is the total rainfall during this period is within the optimal rainfall range for the crop (between the
Rain_Opt_Min_In
andRain_Opt_Max_In
).- If yes, score = +1
- If no, check to see if the total rainfall during this period is within the absolute rainfall range (between
Rain_Abs_Min_In
andRain_Abs_Max_In
). - If yes, score = 0.5
- If no, score = 0
The Future Fields Project was conceived and implemented by Jamie White ([email protected]). Data curation, analysis, algorithms, and approaches were performed by him. Python code was written by ChatGPT-4/4.0 or GitHub Copilot and edited for use by Jamie White. Writing and analysis by Jamie White. Errors and omissions are solely his.
I wish to thank Dr. Elle O'Brien, University of Michigan School of Information for her guidance, wisdom and encouragement. I thank my fellow Capstone classmates in the UMSI MADS Program for their feedback, input, and encouragement.
The code here is provided under the MIT License. Details are in the LICENSE
file. Terms-of-use for the data sources in this project are specified by the owners of the original data sources. Refer to the citations for each data source.
-
Abernethy J, Beeson P, Boryan C, Hunt K, Sartore L. Preseason crop type prediction using crop sequence boundaries. Comput Electron Agric. 2023;208: 107768. doi:10.1016/j.compag.2023.107768
-
Brown M. ecocrop: Crop suitability model using the FAO EcoCrop crop characteristic database. GitHub; Available: https://github.com/OpenCLIM/ecocrop
-
Heaivilin H. EcoCrop-ScrapeR: Using R to scrape the FAO EcoCrop database. GitHub; Available: https://github.com/supersistence/EcoCrop-ScrapeR
-
Food and Agricultural Organization of the United Nations. Crop ecological requirements database (ECOCROP). In: Food and Agricultural Organization of the United Nations | Land & Water | Land Resources Planning Toolbox [Internet]. 2015 [cited 10 Jun 2024]. Available: https://www.fao.org/land-water/land/land-governance/land-resources-planning-toolbox/category/details/en/c/1027491/
-
Chris Marsh, Paul Harding, Ed Sears, and George Sobol. Plants for a Future Plant Database. In: Plants For A Future [Internet]. [cited 23 Aug 2024]. Available: https://pfaf.org/
-
Beck HE, McVicar TR, Vergopolan N, Berg A, Lutsko NJ, Dufour A, et al. High-resolution (1 km) Köppen-Geiger maps for 1901-2099 based on constrained CMIP6 projections. Sci Data. 2023;10: 724. doi:10.1038/s41597-023-02549-6
-
Hegewisch KC, Abatzoglou JT. “Climate Mapper” web tool. In: Climate Toolbox [Internet]. [cited 7 Aug 2024]. Available: https://climatetoolbox.org/
-
U.S. Global Change Research Program (2009- ). Fourth National Climate Assessment: Impacts, Risks, and Adaptation in the United States. U.S. Global Change Research Program; 2017. Available: https://play.google.com/store/books/details?id=RlVFxwEACAAJ
-
U.S. Global Change Research Program (2009- ). Fourth National Climate Assessment: Impacts, risks, and adaptation in the United States. U.S. Global Change Research Program; 2018. Available: https://play.google.com/store/books/details?id=l0cBvwEACAAJ
-
PRISM Climate Group, Oregon State University. PRISM Spatial Climate Datasets for the Conterminous United States. PRISM Climate Group, Oregon State University; 2014. Available: https://prism.oregonstate.edu/
-
Soil Survey Staff. Gridded National Soil Survey Geographic (gNATSGO) Database for the Conterminous United States. In: United States Department of Agriculture, Natural Resources Conservation Service [Internet]. 19 Dec 2023 [cited 23 Aug 2024]. Available: https://www.nrcs.usda.gov/resources/data-and-reports/gridded-national-soil-survey-geographic-database-gnatsgo
-
Gonzalez P, Garfin GM, Breshears DD, Brooks KM, Brown HE, Elias EH, et al. 2018: Southwest. In: Reidmiller DR, Avery CW, Easterling DR, Kunkel KE, Lewis KLM, Maycock TK, Stewart BC, editors. Impacts, risks, and adaptation in the United States: Fourth national climate assessment, volume II. Washington DC: U.S. Global Change Research Program; 2018. pp. 1101–1184. Available: https://nca2018.globalchange.gov/chapter/southwest