Articles | Volume 16, issue 11
https://doi.org/10.5194/gmd-16-3375-2023
https://doi.org/10.5194/gmd-16-3375-2023
Model description paper
 | 
15 Jun 2023
Model description paper |  | 15 Jun 2023

LandInG 1.0: a toolbox to derive input datasets for terrestrial ecosystem modelling at variable resolutions from heterogeneous sources

Sebastian Ostberg, Christoph Müller, Jens Heinke, and Sibyll Schaphoff
Abstract

We present the Land Input Generator (LandInG) version 1.0, a new toolbox for generating input datasets for terrestrial ecosystem models (TEMs) from diverse and partially conflicting data sources. While LandInG 1.0 is applicable to process data for any TEM, it is developed specifically for the open-source dynamic global vegetation, hydrology, and crop growth model LPJmL (Lund–Potsdam–Jena with managed Land).

The toolbox documents the sources and processing of data to model inputs and allows for easy changes to the spatial resolution. It is designed to make inconsistencies between different sources of data transparent so that users can make their own decisions on how to resolve these should they not be content with the default assumptions made here.

As an example, we use the toolbox to create input datasets at 5 and 30 arcmin spatial resolution covering land, country, and region masks, soil, river networks, freshwater reservoirs, irrigation water distribution networks, crop-specific annual land use, fertilizer, and manure application. We focus on the toolbox describing the data processing rather than only publishing the datasets as users may want to make different choices for reconciling inconsistencies, aggregation, spatial extent, or similar. Also, new data sources or new versions of existing data become available continuously, and the toolbox approach allows for incorporating new data to stay up to date.

Dates
1 Introduction

Models describing land surface processes such as terrestrial ecosystem models (TEMs) typically require a number of inputs beyond weather variables. While there is a growing trend to publish model source code to strengthen open science, published code often does not include input files, hampering the applicability of published models. Furthermore, TEMs are increasingly run at varying spatial resolutions, often depending on the spatial extent of the application for global, continental, or regional-scale simulations, increasing the need for flexibility in input data creation. TEMs typically run on a regular spatial grid. Spatially heterogeneous inputs typically need to be provided for that grid, both in terms of spatial resolution and geographic extent, but may be provided originally in the form of national statistics, polygons, or other grids. We present the Land Input Generator (LandInG) version 1.0, a toolbox for generating commonly used input datasets for TEMs with a focus on LPJmL (Lund–Potsdam–Jena with managed Land) (Schaphoff et al.2018b; Von Bloh et al.2018; Lutz et al.2019) as one example of such models. Beyond simply documenting the data sources used, the objective of the LandInG toolbox is to make inconsistencies between these data sources transparent and propose ways how to resolve them. The LandInG code is released under the GNU Affero General Public License alongside this documentation paper. This not only allows users to confirm exactly what the toolbox does but also ensures that users are free to reuse and adapt the toolbox to deviate from the default assumptions made here or to accommodate specific requirements of their own models. Section 2 describes the different types of input that can be created using LandInG (Table 1), the source datasets used to create these inputs, and the methods used to process the source datasets. The toolbox does not cover weather or climate inputs, as there are ample methods for weather data processing elsewhere (e.g. Lange2019). In Sect. 3 we show results of applying the toolbox to create model inputs at two different spatial resolutions: 5 arcmin (5) and 30 longitude by latitude. Most of the data processing is conducted with the “R” open-source software environment for statistical computing and graphics (R Core Team2019) and makes extensive use of R extension packages such as “ncdf4” (Pierce2019), “raster” (Hijmans2020), “rgdal” (Bivand et al.2019), “sf” (Pebesma2018), and “lwgeom” (Pebesma2019) for processing geospatial data (both in polygon and raster formats); “foreach” (Microsoft and Weston2019), “doMPI” (Weston2017), “doParallel” (Microsoft and Weston2022), and “Rmpi” (Yu2002) for parallelized computing on multiple CPUs; “udunits2” (Hiebert2016) for unit conversions; and “stringi” (Gagolewski2019) for character string processing.

(e.g. GADM2018)(e.g. FAO/IIASA/ISRIC/ISSCAS/JRC2012)(e.g. Döll and Lehner2002)(e.g. Lehner and Döll2004)(e.g. Lehner et al.2011)(e.g. NOAA National Geophysical Data Center2009)(e.g. FAO2020b)(e.g. Klein Goldewijk et al.2017)(e.g. IIASA/FAO2012)(e.g. Mueller2012; Hurtt et al.2020)(e.g. Zhang et al.2017b)

Table 1Types of land input datasets. The last column gives a very brief overview of the types of source datasets used. Full details are provided in the respective sections.

Download Print Version | Download XLSX

2 Types of land input datasets

The following subsections describe the types of input datasets that can be created using the LandInG toolbox (Table 1). All of them can be used with LPJmL, but not all of them are required depending on the model version and run configuration. The most basic LPJmL setup only requires the grid (Sect. 2.1) and soil input (Sect. 2.3). All inputs created by the toolbox can be saved in the file format required by LPJmL. To allow usage of the toolbox for other TEMs, inputs can generally also be saved in more common data formats such as “CSV” or “NetCDF”. However, other TEMs may also require, for example, information for different soil characteristics (Sect. 2.3) or different land use categories (Sect. 2.5) than are processed under default settings. The LandInG toolbox can be easily adapted to address such needs.

2.1 Land–sea mask and grid

If not taken from an external data source, the definition of the land–sea mask is the primary step and all other input datasets need to be converted to this land grid. The purpose of the land–sea mask is to tell the model which grid cells to simulate. The land–sea mask should only exclude oceans but include inland waterbodies such as lakes, rivers, and reservoirs because their inclusion in the simulation is required for lateral processes, such as the routing of water through the river systems and the computation of evaporation fluxes from water surfaces into the atmosphere.

For many years, the land–sea mask and spatial resolution of the Climatic Research Unit's (CRU) time-series datasets of high-resolution gridded month-by-month variations in climate (CRU TS; Harris et al.2020) have determined the default land area and grid size of TEM simulations, e.g. in the Inter-Sectoral Impact Model Intercomparison Project (ISIMIP; Frieler et al.2017) and also in simulation experiments with LPJmL (Schaphoff et al.2018a, b). CRU TS data have a spatial resolution of 30 and cover the whole land area except Antarctica (67 420 grid cells). However, CRU TS data include some grid cells in the oceans that do not contain any land from a visual inspection of satellite data with Google Maps but also miss a few grid cells that are covered by inland waterbodies.

In order to create gridded land–sea masks at any spatial resolution we derive them from vector polygons instead of existing gridded datasets. There are a number of sources providing global land polygons, all of which can be used in principle (e.g. Natural Earth2018; OpenStreetMap2020; Wessel and Smith1996). It should be noted that coastlines vary between these data sources, so the choice of land polygon will affect the derived grid. A smaller polygon covering only a continent or country can be used as well to derive a grid for smaller spatial domains. We use polygons from the Database of Global Administrative Areas, version 3.6 (GADM2018), to derive the land–sea mask to ensure that each grid cell can also be assigned to a country (see Sect. 2.2).

Common rasterization algorithms in geographic information system (GIS) software assign polygon values to a raster cell only if the polygon covers the centre of the raster cell, which causes misassignments along polygon borders (coastlines). The land–sea mask for LPJmL should not only distinguish land cells from ocean cells but also provide information on the fraction covered by land polygons in each cell. To achieve these two goals, we first create a global raster map at the desired target resolution covering all land and ocean cells (e.g. 4320×2160 cells at 5 spatial resolution). Each grid cell is assigned a unique ID before converting the grid cells into polygons and conducting a polygon intersection with the Global Administrative Areas (GADM) dataset of country and state polygons. On the one hand, the intersection operation removes all grid cell polygons that do not intersect with land. On the other hand, each intersection between one or several country polygons and a grid cell can be uniquely assigned based on the grid ID. Depending on the spatial resolution of the grid cells and the complexity of the country polygons, the intersection operation can take a long time to process, which is why the operation is parallelized to run on multiple CPUs. Parallelization is done using the “foreach” package (Microsoft and Weston2019), which supports several parallel backends. The total land area in each grid cell can be calculated by summing up all land polygon areas with the same unique grid ID. All grid cells containing land are included in the grid input file, which provides a list of coordinates of the centre points for all grid cells included in the input dataset. The toolbox allows users to set a threshold for a minimum land area to skip grid cells with very small land shares. The threshold defaults to 1000 m2 and can be changed by the user. Antarctica is also excluded by default. The grid is a static input that does not change over time. In addition to the grid input file the toolbox also creates a list giving the land fraction in each grid cell.

2.2 Country and region mask

If running LPJmL with anthropogenic land use, all grid cells are assigned to a country (admin level 0) in order to allow for the use of country-specific parameters in the model. Seven large countries are further subdivided into states or provinces (admin level 1 for Australia, Brazil, Canada, China, India, Russia, and USA). Grid cells are also assigned to administrative units to provide guidance for disaggregating admin-level source data used in this toolbox to create other inputs. We use GADM version 3.6 (GADM2018) as the basis of administrative areas. We acknowledge that country borders are disputed in some regions of the world. GADM version 3.6 was chosen because it is publicly accessible, frequently updated, and covers several administrative levels. However, any other vector-based dataset of administrative areas can be used instead. Some country definitions also change over time, e.g. the former Soviet Union splitting into several independent countries. The country and region input file is static and represents administrative boundaries of circa 2018.

As mentioned in Sect. 2.1 rasterization algorithms typically select the value of that polygon which covers the centre of the raster cell. This can cause problems along country borders. Our approach assigns to each grid cell the country which has the largest area share within the cell. If a cell contains polygons of a country that is further subdivided into admin level 1, we first determine the dominant country and then determine the level 1 administrative unit with the largest area share that belongs to the dominant country. This preserves administrative hierarchies. As a special case, GADM includes the Caspian Sea as a separate level 0 administrative unit. We only assign the Caspian Sea to grid cells which are fully covered by it. All cells which are only partially covered by the Caspian Sea are assigned to the largest admin level 0 that is different from the Caspian Sea. The toolbox provides an option to prescribe a predefined grid such as the one used by the CRU time-series datasets. In this case, any grid cell not covered by any land according to GADM is assigned to a dummy country “No land”. In addition to the country and region dataset, which provides the dominant administrative unit in each cell, the toolbox also creates a dataset of the number of countries in each grid cell and a dataset that provides grid cell assignments for administrative levels 0, 1, and 2. These two datasets are used to identify grid cells containing country borders and for spatial gap-filling in the land use data processing (see Sect. 2.5.3 and 2.5.6).

2.3 Soil

TEMs require soil information for all simulated grid cells. The soil characteristics required vary by model. All versions of LPJmL require gridded information about the soil texture class, following the USDA soil texture classification (Soil Science Division Staff2017). Starting with LPJmL version 5, the model also requires a gridded dataset of soil acidity (pH). Other TEMs may require additional soil parameters such as soil depth, bulk density, or soil organic carbon content. There are many datasets providing soil information at global or regional scales with various spatial resolutions, such as the WISE-derived soil properties on a 30 arcsec grid (Batjes2016) and earlier versions at 5 and 30 resolutions (Batjes2005, 2012) or the SoilGrids250m dataset (Hengl et al.2017). The exemplary implementation for LPJmL uses data from the Harmonized World Soil Database (HWSD; FAO/IIASA/ISRIC/ISSCAS/JRC2012). HWSD consists of a raster soil map at 30 arcsec resolution containing only mapping unit IDs for each grid cell (file “HWSD_RASTER.zip”) and a separate soil attribute database linking attributes to the mapping unit IDs (file “HWSD.mdb”). Each cell in the map has one associated mapping unit, while each mapping unit may be assigned to several cells and may contain one or several soil units. Only top-soil parameters are extracted from HWSD and used for the full soil column here for application in LPJmL. Sub-soil parameters are also available in HWSD but are not used here. Two alternative methodologies have been proposed for aggregating soil texture data to a coarser resolution: (1) averaging the amount of sand, silt, and clay across cells at the source resolution and then deriving the texture class at the target resolution from the averaged shares and (2) determining the texture class in each cell at the source resolution and then selecting in each target cell the texture class with the maximum number of cells at the source resolution (Koirala2011). The first methodology was used for previous model versions of LPJmL (see e.g. Schaphoff et al.2013). However, it may lead to combinations of sand, silt, and clay content at the target resolution that do not exist anywhere in that grid cell. The problem of unrealistic aggregated value combinations becomes even more relevant when extracting additional soil characteristics such as soil pH from the source data. Therefore, the toolbox implements an approach based on selecting soil parameters for the target resolution that represent the most prevalent soil at the source resolution. When determining the soil texture class at the target resolution, the toolbox first groups all soil units found in the source cells by soil texture class and mapping unit and determines the texture class with the largest overall area share at the target resolution. For soil units classified as “Rock outcrops” and “Glaciers” in the source dataset, the toolbox provides an option either to treat them like any other soil (the default setting) or to assign them at the target resolution only if no other soils are present in the cell. Soil units classified as “Dunes & shift.sands” in the source dataset are re-assigned to the soil texture class “sand”. Given that not all soil parameters are available for all soil units in HWSD, additional soil parameters besides soil texture class are derived with decreasing priority from (1) the soil unit with the largest area share that belongs to the dominant soil texture class and the dominant mapping unit, (2) the soil unit with the largest area share that belongs to the dominant soil texture class, or (3) the soil unit with the largest area share that belongs to the dominant mapping unit. Cells whose texture class is derived from HWSD special classes “Rock outcrops”, “Glaciers”, and “Dunes & shift.sands” are assigned a default pH value of 7 if no other information on pH values is available in the cell. If any cells in the target grid have no information in HWSD source data, they are filled with soil information from surrounding cells. Cells with missing HWSD data usually point to differences in the land–sea mask. This includes cells along coastlines, remote islands, and also large inland waterbodies. A search window around the missing cell is expanded in all directions until at least one cell with HWSD source data is encountered. The soil texture and soil pH of the missing cell are then derived as described above using all HWSD source data within the search window. By default, an inverse distance weighting is applied to all source cells within the search window. The power parameter of the weighting function can be changed by the user, including switching off inverse distance weighting completely. We acknowledge that gap-filling missing cells with soil information from surrounding cells introduces uncertainty into the derived dataset at the target resolution, especially for remote islands where the closest HWSD source cell may be thousands of kilometres away. Considering the limited number of affected cells we consider this uncertainty acceptable for global analyses. Users may choose to reduce the maximum search radius (default: 100) and fill remaining missing cells by other means. The toolbox also provides an option to set cells with missing soil information to a soil code of zero, which will cause LPJmL to skip those cells in simulations.

2.4 Hydrology

2.4.1 River routing

River routing describes the lateral flow of water between cells (Rost et al.2008). It is an optional module in LPJmL. The river routing input provides for each cell one downstream cell that water is drained to, as well as the distance to that downstream cell. This means that any cell in LPJmL may have zero, one, or several cells draining into it but may only have no or one cell that it drains to. The LPJmL source code includes a utility to convert a drainage direction map (DDM) in ASCII grid format into the main river routing input given a grid file. There are a number of global drainage direction datasets, such as DDM30 (Döll and Lehner2002) and STN-30 (Vörösmarty et al.2000) at a spatial resolution of 30 and HydroSHEDS and MERIT Hydro at resolutions down to 3 arcsec (Lehner et al.2008; Yamazaki et al.2017). The toolbox does not provide functionality to resample an existing DDM to a new resolution, so the user needs to provide a dataset at the correct resolution. The HydroSHEDS technical documentation provides some guidance on upscaling a DDM (Lehner2013). Eilander et al. (2021) and Wu et al. (2012) also describe upscaling methods and apply them to the MERIT Hydro and HydroSHEDS datasets, respectively. Based on a river routing input file the toolbox derives upstream and downstream cells, as well as the upstream catchment area of each cell. Upstream cells are all cells that drain directly or indirectly through intermediate cells to a grid cell. The upstream area of a cell is the sum of the areas of all upstream cells and the area of the cell itself. The toolbox computes cell areas of each cell based on the latitude coordinate and the grid resolution assuming the Earth is a perfect sphere and provides a user option to scale cell areas by the land fraction calculated in Sect. 2.1. This may provide better estimates of upstream areas in river basins along coastlines under the condition that land fractions are also accounted for in the TEM simulations. Downstream cells of a cell are all cells that a cell drains to either directly or through intermediate cells. The end cell in each river basin is either an outlet to the ocean or an inland sink. Downstream cell lists for each cell are derived by iterating through the river system from each cell to its end cell. Upstream cell lists and upstream areas are derived by first assigning each cell its own area and then routing cell lists and upstream areas through the river system like water. This routing starts in cells with zero upstream cells and then travels downstream, accumulating the cell lists and upstream areas of all cells along the way.

The implementation of irrigation systems in LPJmL allows for constraining the irrigation water by the water that can be withdrawn from surface water within the same cell and from one neighbouring cell representing conveyance systems and transportation of water by trucks over limited distances (Rost et al.2008). Allowing for water transport also mitigates aggregation errors in the routing network. This additional neighbour cell needs to be provided as an input dataset. Since the input toolbox has no information on actual river discharge or irrigated areas (which both vary during the simulation run time), a cell's upstream area is used as a proxy to distinguish cells with lower or higher discharge within a region. In the original implementation (Rost et al.2008), the neighbour cell was defined as the adjacent cell with the largest upstream area. The toolbox allows users to reproduce the original approach using the upstream areas calculated in the previous step. However, varying grid resolutions affect the maximum transport distance if only adjacent cells are allowed to be used as neighbour cells. To account for the effect of variable grid resolutions, the toolbox also allows users to define a search radius (which defaults to 75 km) and select the cell with the largest upstream area within that search radius. In addition, the toolbox provides an option to exclude upstream and downstream cells from the search for a neighbour cell. This can be useful for excluding cells from within the same basin if it does not make sense to transport water from a neighbour cell connected to the same river. Transport of water over extended distances implies an associated cost. While not taking actual costs into account, the toolbox supports applying an inverse distance weighting to the upstream areas in the search radius which favours the selection of a close neighbour in cases where several potential neighbour cells have similar upstream areas. The power parameter of the weighting function can be changed by the user, including switching off inverse distance weighting completely. The neighbour search is computationally expensive for high-resolution grids and large search radii, where each cell may have thousands of potential neighbour cells, which is why the process is parallelized to run on multiple CPUs.

2.4.2 Lakes and rivers

Inland waterbodies such as lakes and rivers have surface properties that differ from other land categories as typically simulated in TEMs. The fraction of each grid cell covered by lakes and rivers is prescribed in LPJmL and needs to be provided as a gridded, static input if the river routing module is switched on. The input dataset is derived from the Global Lakes and Wetlands Database (GLWD; Lehner and Döll2004). Level 1 and level 2 of GLWD provide shoreline polygons for lakes, rivers, and reservoirs. Level 3 of GLWD provides a raster map at 30 arcsec resolution of lakes, rivers, reservoirs, and several types of wetlands. The toolbox includes tools to extract grid cell fractions covered by waterbodies either from the polygon data (GLWD levels 1 and 2) or from the raster data. Processing of GLWD level 3 raster data is generally faster and allows separate extraction of all types of waterbodies included in GLWD, but it requires that the target resolution is an integer multiple of the source resolution. By default, only lakes and rivers are used in LPJmL. Processing of GLWD level 1 and level 2 polygon data provides more flexibility since it is based on calculating polygon intersections between the waterbody polygons and polygons of the grid cells at any target resolution. On the other hand, levels 1 and 2 of GLWD do not include wetlands, which are part of GLWD level 3. While GLWD source data are used as an example, both approaches implemented in the toolbox could be modified to apply them to other source datasets providing similar information. For example, the polygon intersection method could be applied to the HydroLAKES dataset (Messager et al.2016), which distinguishes 1.43 million individual polygons of natural lakes and human-made reservoirs, compared to roughly 247 000 lakes and reservoirs included in levels 1 and 2 of GLWD. However, the HydroLAKES dataset excludes areas covered by rivers, which are included in GLWD and are usually also included in the lake and river fraction input used by LPJmL.

Table 2Dam and reservoir parameters for LPJmL input.

Download Print Version | Download XLSX

2.4.3 Dams and reservoirs

If running LPJmL with the reservoir module enabled, the model requires two additional inputs: (1) an input describing dams and reservoirs (Table 2) and (2) an input providing the elevation above sea level in each cell. The reservoir module also requires the river routing module and its related inputs. The Global Reservoir and Dam Database (GRanD; Lehner et al.2011) is used to create the reservoir input required by LPJmL. GRanD provides geo-referenced dam locations, polygons depicting reservoir outlines, and a rich attribute table for approximately 7000 large dams (≥0.1km3 capacity) globally. The following attributes from GRanD are used: “AREA_SKM”, “CAP_MCM”, “CATCH_SKM”, “DAM_HGT_M”, “LONG_DD”, “LAT_DD”, “MAIN_USE”, “TIMELINE”, “USE_IRRI”, and “YEAR”. Before processing, records, for which no storage capacity (CAP_MCM) is available, are removed from the database. For dams which have a storage capacity but no reservoir area (AREA_SKM) the toolbox presents an option to fill in an estimated reservoir area based on a reversal of the area–storage relationship from Lehner et al. (2011, Eqs. 1 and 2 therein). The toolbox also provides an option to filter dams based on the “TIMELINE” attribute, which indicates changes to the status of a dam over time (e.g. removal or destruction) or dams still under construction. In order to derive an input dataset, dams and reservoirs need to be assigned to grid cells first. Since the river routing scheme used for modelling is a coarse abstraction of the real-world river system, simply assigning dams to the grid cell which they would fall into based on their coordinates (LONG_DD, LAT_DD) can lead to substantial differences between DDM-derived upstream areas (see Sect. 2.4.1) and catchment areas reported in GRanD (CAP_MCM). It could essentially assign a dam on a large river to a grid cell adjacent to the river in the modelled river system, or vice versa. Previous approaches therefore sometimes included checking and correcting dam locations by hand (e.g. Biemans et al.2011). The toolbox attempts to automate positioning of dams by optimizing between two terms: (1) the distance between dam coordinates in GRanD and the centre coordinate of the assigned grid cell and (2) the deviation between GRanD catchment area and the upstream area of the assigned grid cell. The user must set a maximum search radius (in ), which should be selected based on the resolution of the target grid. The user may additionally set a maximum search distance (in m), which is applied to further constrain the search window. All grid cells c falling into the search window are assigned a combined distance and deviation weight Wc:

(1) W c = 1 / D p dis 1 / Δ A p dev p sign ,

where D is the distance (in m) between the cell centre of cell c and the dam coordinates according to GRanD and ΔA is the absolute difference between the DDM-derived upstream area of cell c and the catchment area reported in GRanD. The power parameters pdis and pdev refer to a distance and area deviation penalty, respectively. In addition, psign provides the option to modify the area deviation penalty based on whether the DDM-derived upstream area is larger or smaller than the GRanD-reported catchment area. Using identical values for pdis and pdev assigns equal priority to staying close to the original coordinates and getting a good area match, while increasing one parameter over the other can be used to shift relative priorities. The dam is assigned to the cell with the highest combined distance and deviation weight Wc within the search window. The toolbox allows users to test several values of pdis, pdev, and psign at once and compare their effect on the assigned grid cells. If none of the parameter combinations give satisfactory results, the toolbox also allows users to set manual grid cell assignments for individual dams. Once each dam has been assigned to a grid cell at the target resolution the additional dam and reservoir parameters are assigned (Table 2). The “YEAR” column from GRanD is used as the first year of operation even though the original data may refer to the year of construction, completion, commissioning, or refurbishment/update (Beames et al.2019). Columns “CAP_MCM”, “AREA_SKM”, and “DAM_HGT_M” from GRanD are used for maximum storage capacity, area of the reservoir, and dam height, respectively. The installed hydropower capacity is a placeholder and is currently set to zero. The first purpose field in the LPJmL input (main purpose) is encoded as “1” for irrigation, “2” for hydroelectricity, or “3” for other purposes, based on the “MAIN_USE” column from GRanD. The secondary purpose field in the LPJmL input describes whether a dam is also used for irrigation even if it is not its main purpose. It is encoded as “1” if either the “MAIN_USE” is irrigation or the “USE_IRRI” column from GRanD has a non-missing value. Three additional purpose fields in the LPJmL input are placeholders only and are set to zero.

Due to the technical implementation of dams and reservoirs in LPJmL each grid cell can only contain one dam and/or reservoir, which cannot change its properties over time. In all cases where several GRanD dams are assigned to the same grid cell their records are merged based on the following rules:

  • Maximum storage capacities and reservoir areas are summed up across all reservoirs in the cell.

  • First year of operation of the combined dam is set to the year when at least 50 % of the final total storage capacity is in operation.

  • Dam height is set to the height of the individual dam with the largest storage capacity.

  • Main purpose is set to the main purpose with the highest combined storage capacity in the cell.

  • Use for irrigation (secondary purpose field) is set to “1” if at least one dam in the cell is used for irrigation.

Furthermore, the technical implementation in LPJmL always assigns the total reservoir area to the same grid cell that the dam is assigned to. The reservoir area can thus not exceed 100 % of the grid cell area even if the reservoir polygon covers several grid cells. This means that reservoir areas allocated in LPJmL are likely underestimated, especially for smaller grid cell sizes. However, many large-scale reservoirs such as Lake Victoria in Uganda, Lake Baikal in Russia, and Lake Winnipeg and Lake Ontario in Canada are included in the lake and river input described above so that the water surface area is still represented. If applying the toolbox to create inputs for a different TEM which supports multi-cell reservoirs, the polygon intersection methodology described in Sect. 2.4.2 could also be modified to extract grid cell fractions covered by GRanD reservoir polygons. In that case, double accounting of waterbodies as lakes in GLWD or HydroLAKES and reservoirs in GRanD would need to be resolved.

In addition to the input describing dams and reservoirs the reservoir module in LPJmL requires an input of grid cell elevation above sea level. Elevation is used as one criterion to determine which grid cells may withdraw irrigation water from reservoirs in the model. There are a number of global digital elevation models (DEMs), some of which have very high spatial resolutions, such as the Shuttle Radar Topography Mission (SRTM) 1 Arc-Second Global DEM (USGS EROS2014), the ALOS World 3D (AW3D30; Takaku et al.2016), and ASTER Global DEM (NASA/METI/AIST/Japan Spacesystems and U.S./Japan ASTER Science Team2019) at 30 m resolution. High-resolution DEMs are commonly distributed in tiles due to the large amount of data, making them resource-intensive to process. TEMs commonly simulate the land surface at much coarser resolutions and thus do not require elevation data at such high resolutions. The toolbox uses the ETOPO1 1 Arc-Minute Global Relief Model (NOAA National Geophysical Data Center2009; Amante and Eakins2009), which was generated from a number of higher-resolution global and regional datasets, to generate an elevation dataset at the target resolution. Processing of ETOPO1 elevation data is conducted using the Generic Mapping Tools Version 6 (GMT6), an open-source collection of command-line tools for manipulating geographic and Cartesian datasets (Wessel et al.2019). ETOPO1 source data cover ocean and land areas (variable “grid-registered ice surface”, “ETOPO1_Ice_g_gmt4.grd.gz”), which may lead to artefacts when aggregating elevations along coastlines. To avoid such artefacts, the toolbox provides an option to mask out ocean areas from ETOPO1 data before spatial aggregation using the Global Self-consistent, Hierarchical, High-resolution Geography Database (GSHHG; Wessel and Smith1996) included with GMT6. Spatial aggregation to the target resolution is carried out by calculating either the median (the default setting) or mean elevation across all source data cells in a target grid cell.

2.5 Land use and land management

In TEMs, the surface area in each grid cell containing land (Sect. 2.1) is typically subdivided into tiles covered by natural vegetation, different anthropogenic land uses, and inland waterbodies. The spatial extent of waterbodies (Sect. 2.4.2 and 2.4.3) and the spatial extent and composition of anthropogenic land uses are prescribed by input datasets. Often, land use categories represented in TEMs are croplands and managed grasslands, which can be further disaggregated into areas of specific crops or management types (e.g. irrigation). Other types of anthropogenic land use such as urban areas are not represented in LPJmL and thus are not considered here. The remaining part of a cell that is not assigned to waterbodies or croplands and managed grasslands is assumed to be covered by natural vegetation. The composition of natural vegetation, i.e. the area share of different plant functional types (trees, grasses), is determined endogenously by LPJmL, and we thus do not provide any input data on the composition of the natural vegetation. The input dataset on anthropogenic land use described here consists of gridded data on (1) separate rainfed and irrigated growing areas of different crops (all of which grow on croplands), (2) the spatial extent of managed grasslands, and (3) areas for second-generation biomass plantations. The dataset may optionally also include gridded data on fallow land. Crop-specific growing areas and the spatial extent of managed grasslands change over time with an annual time step and are based on the combination of multiple source datasets. Figure 1 gives a general overview of the source datasets and the data processing steps. Some of these source datasets provide information for a large number of individual crops but only at the country scale, while others provide information at a gridded resolution but lack a distinction between individual crops (e.g. total cropland) or lack information about changes over time. The objective of the data processing in this section is to take advantage of the strengths of each of these datasets and supplement the missing component – e.g. missing spatial detail or missing temporal trends – based on one or several of the other datasets, all while resolving inconsistencies that exist between all the source datasets. The process outlined in the following subsections is for a global dataset at a spatial resolution of 5 covering the time period of 1500–2017. The toolbox does not support creating a land use dataset at a finer spatial resolution than provided by the gridded source datasets. It does support aggregating source datasets to a coarser resolution automatically as long as it is an integer multiple of the source resolution. However, we suggest following the process at 5 and aggregating areas to the desired target resolution as the last processing step. The resulting land use dataset does not contain any values for areas of second-generation biomass plantations since the production of second-generation biofuels from grassy or woody biomass is still mostly in the pilot and demonstration stage, and thus no global datasets of such growing areas are available. LPJmL simulations can also be run without anthropogenic land use simulating only natural vegetation, in which case the land use input dataset described in the following subsections is not required.

https://gmd.copernicus.org/articles/16/3375/2023/gmd-16-3375-2023-f01

Figure 1Flowchart of land use (green) and land management (blue) data processing. See Sect. 2.5 for details. Source datasets: GAEZ (IIASA/FAO2012), HYDE (Klein Goldewijk et al.2017), MON (Monfreda et al.2008), RAM (Ramankutty et al.2008), AQUASTAT (FAO2020a), MIRCA2000 (Portmann et al.2010b), FAOSTAT (FAO2020b), LUH2 (Hurtt et al.2020), MUELLER (Mueller et al.2012; Mueller2012), and ZHANG (Zhang et al.2017b).

2.5.1 Country-level source data

Country-level source datasets are depicted as an ellipse in Fig. 1. While these datasets lack spatial detail, they provide detailed information about individual crops and about changes in land use over time. Time series of crop-specific harvested areas and cropland extent at the country level are taken from FAOSTAT (FAO2020b). FAOSTAT data are updated frequently and include annual data for roughly 180 different crops or crop groups and more than 275 countries or country groups from 1961 to close to the present day. FAOSTAT includes a number of countries that ceased or started to exist during its period of coverage (e.g. former USSR, Kazakhstan). Country groups in FAOSTAT can be geographic (e.g. Central America) or socio-economic (e.g. Least Developed Countries). FAOSTAT data do not distinguish between rainfed and irrigated crops. Data on country-level irrigated harvested areas are taken from MIRCA2000 (Portmann et al.2010a, b) and AQUASTAT (FAO2020a). MIRCA2000 distinguishes between 26 individual crops or larger crop groups and 402 national or sub-national spatial units but only provides data for the situation around the year 2000. As of 2020, AQUASTAT included data for 38 individual crops or crop groups for 167 countries covering the period 1961–2016, but coverage is expanded frequently.

To combine country-level data between the three country-level datasets, countries in FAOSTAT, MIRCA2000, and AQUASTAT are matched to the GADM admin level 0 dataset described in Sect. 2.2. Countries included in FAOSTAT that ceased to exist are matched to the closest combination of GADM units; e.g. “Yugoslav SFR” from FAOSTAT is matched to the combined area of Bosnia and Herzegovina, Croatia, Macedonia, Slovenia, Serbia, Kosovo, and Montenegro from GADM. Sub-national data from MIRCA2000 are aggregated to the corresponding GADM country.

2.5.2 Grid-level source data

Grid-level source datasets are depicted as rectangular boxes in Fig. 1. The following datasets are used to disaggregate country-level data from Sect. 2.5.1 to the targeted spatial resolution. They either provide gridded information about land use changes over time but lack information about individual crops or provide gridded information for individual crops but lack information about changes over time. Time series of gridded total, rainfed, and irrigated cropland (variables “cropland”, “tot_irr”, “tot_rainfed”), as well as grazing lands (variable “grazing”), are taken from HYDE (History database of the Global Environment) version 3.2.1 (Klein Goldewijk et al.2017). HYDE data cover the whole globe at a spatial resolution of 5. The temporal resolution is centennial before the year 1700, decadal between 1700 and 2000, and annual for 2000 to 2017. Centennial, decadal, and annual data from HYDE covering the period 1500–2017 are converted from ASCII grid to NetCDF format, merged across time, and disaggregated to annual values by simple linear interpolation using the Climate Data Operator software (CDO; Schulzweida2019). There is a small number of grid cells in HYDE where rainfed and irrigated cropland does not sum up to total cropland and sometimes even exceeds total cell area. This is due to a known bug in HYDE 3.2.1 and will hopefully be fixed in the next HYDE release. If inconsistencies are detected, an attempt is made to fix them so that rainfed and irrigated cropland in each cell sums up to total cropland and does not exceed total cell area. Gridded crop-specific harvested areas are taken from Monfreda et al. (2008, referred to as MON). The MON dataset provides static harvested areas for 175 crops at a spatial resolution of 5 representative of the state around the year 2000. The MON dataset does not distinguish between rainfed and irrigated harvested areas. The gridded cropland extent used to develop MON differs from the HYDE cropland used here, so the gridded cropland dataset underlying MON (Ramankutty et al.2008, referred to as RAM) is used as well to resolve inconsistencies. The latter provides global cropland extent with no distinction between rainfed and irrigated cropland at a spatial resolution of 5 representative of the status around the year 2000. Crops in the MON dataset mostly overlap with crop definitions used by FAOSTAT, which is of advantage when combining the two datasets. We note that the Spatial Production Allocation Model (SPAM) also provides gridded, crop-specific harvested areas but distinguishes only 43 crop types (Yu et al.2020). While not implemented in the current version of the toolbox, the spatial disaggregation methodology described below could be modified to use SPAM or any other data source of choice instead of the MON dataset.

To calculate climatic suitability for multiple cropping, agro-climatic resources are taken from the Global Agro-ecological Zones (GAEZv3.0) database (IIASA/FAO2012). The following GAEZ variables are used: “frost-free period”, “reference length of growing period”, “temperature growing period”, “thermal climates”, “Tsum during frost-free period”, and “Tsum during temperature growing period”. The datasets all have a spatial resolution of 5 and are based on mean climatic data for the period 1961–1990.

If replacing any of these source datasets with alternative data sources the toolbox currently does not allow for the spatial resolution of the derived land use dataset to be finer than the coarsest source dataset.

2.5.3 Data processing of country-level land use data

The objective of the data processing of country-level land use data is to derive a harmonized composite time series of crop-specific rainfed and irrigated harvested areas that are consistent with available rainfed and irrigated cropland extent in each year. Data processing steps are depicted as rhomboid boxes in Fig. 1. Grid cell values of irrigated and total cropland are aggregated to the country level using the country mask generated in Sect. 2.2. This requires that the country mask has been created at the same spatial resolution as the grid-level land use data. Country-level sums of cropland from HYDE should be consistent with FAOSTAT cropland extent by design (Klein Goldewijk et al.2017); however, some inconsistencies still exist, especially if running the toolbox at coarser spatial resolutions such as 30 where no grid cells may be assigned to some very small countries so that these have effectively no cropland to which harvested areas can then be allocated in the next step.

An expanded annual time-series dataset of country-level, crop-specific total harvested areas HAcrop,tot,country,y is generated by combining FAOSTAT and the MON dataset. Crop names in MON are matched to crop names in FAOSTAT, and MON harvested areas are aggregated to the country level using the country mask described in Sect. 2.2. The aggregation of gridded harvested areas can lead to artefacts along country borders since country delineations in GADM, which are used here, do not necessarily match country delineations used to create the MON dataset. Some automatic filtering is done to avoid crop patterns spilling over into neighbouring countries where the crop is not grown: crop patterns whose growing areas are located mostly in border cells (i.e. cells with shares of more than one country) are considered artefacts. Also, the MON dataset includes quality flags describing whether gridded harvested areas are based on national-, state-, or county-level statistics, which are used to derive a minimum share of cropland cells that a crop pattern should occupy in order to not be considered an artefact. Thresholds used in these filters can be fine-tuned by the user but some artefacts may remain. Matching between FAOSTAT harvested areas and MON harvested areas aggregated to the country level results in one of four possible cases:

  1. A crop is present in both FAOSTAT and MON, although the country sum of MON does not necessarily match the country value from FAOSTAT. In this case FAOSTAT data for the respective crop and country are added to the expanded time-series dataset, and the spatial pattern from MON is marked for usage in the spatial disaggregation according to Eq. (12).

  2. A crop is present only in FAOSTAT but either is not a part of the MON dataset or has no harvested areas in the respective country according to MON. In this case, FAOSTAT data for the crop and country are added to the expanded dataset, and the spatial disaggregation follows a simplified approach according to Eq. (13).

  3. A crop is present in a country according to the MON dataset but not according to FAOSTAT. This can be one of 17 forage crops and fodder grasses included in the MON dataset but missing completely from FAOSTAT or a crop that should be included in FAOSTAT yet has no data for the respective country. In this case, the country sum derived from MON is added to the expanded time-series dataset for the year 2000, and the spatial pattern from MON is marked for usage in the spatial disaggregation.

  4. There are also a few cases where FAOSTAT only has harvested areas for a more general crop group such as “Nuts, nes” (“nes” denotes crops not elsewhere specified), while the MON dataset has harvested areas for individual crops belonging to that group. In this case time-series data for the FAOSTAT group crop are disaggregated using the relative share of the individual crops within the group from the MON dataset. The disaggregated time series is added to the expanded time-series dataset and replaces the original FAOSTAT data for the group.

The resultant expanded time-series dataset is gap-filled and extrapolated to cover all years of the full time period 1500–2017. Gap-filling and extrapolation are based on the crop-specific cropping intensity CIcrop defined as

(2) CI crop = HA crop / CL ,

where HAcrop is the crop-specific harvested area and CL refers to cropland extent. FAOSTAT cropland extent is used for gap-filling and extrapolation wherever available, while HYDE gridded cropland aggregated to the country level is used for years outside the range covered by FAOSTAT or in the case of missing cropland data in FAOSTAT. Data gaps within the country-level time series are filled by first computing CIcrop before and after the gap, interpolating CIcrop values linearly for the missing years and then multiplying the newly derived values of CIcrop,y with cropland extent of the respective year CLy. When extrapolating before (after) the range of years with available harvested area data, the first (last) available value of CIcrop,y is kept constant. For crops added to the expanded time series from the MON dataset a constant CIcrop,2000 is used to derive the full time series. This introduces substantial uncertainty regarding harvested areas of these crops but was considered preferable to dropping them altogether. There are 13 countries in the FAOSTAT database that have cropland but no data at all for harvested areas. These countries are filled automatically using a representative crop mix. For this, CIcrop is computed for all crops present in the smallest FAOSTAT country group that includes the country with missing data and then multiplied with country-level cropland extent to derive country-level harvested areas. For example, missing harvested areas in Andorra are filled using the crop mix of Southern Europe, while missing harvested areas in Aruba are filled with the crop mix of the Caribbean. The algorithm keeps track of whether harvested area values in the expanded time-series dataset come from the source datasets or have been introduced by gap-filling and extrapolation. This information should be taken into account when assessing the reliability of the derived final land use dataset.

Countries without any crop-specific irrigated harvested areas according to MIRCA2000 but with irrigated cropland according to HYDE are also filled with a representative mix of irrigated crops similarly to the process described above for FAOSTAT. Irrigated harvested areas from MIRCA2000 are then merged with irrigated crop-specific harvested areas from AQUASTAT. In the current implementation, only data for AQUASTAT crops that can be matched directly to crops in MIRCA2000 are used, and all other AQUASTAT crops are discarded. Preference is also given to MIRCA2000 if both datasets provide data for the same crop-country combination in the year 2000. The decision to prioritize MIRCA2000 over AQUASTAT is a choice and may be changed by other users. Gap-filling and extrapolation of the time series of irrigated harvested areas are conducted as described above for total harvested areas. However, irrigated cropland from HYDE aggregated to the country level is used for all operations since FAOSTAT provides only a time series of total cropland extent but not irrigated cropland extent. Due to the sparsity of source data in MIRCA2000 and AQUASTAT, the majority of country-level time series are based on the extrapolation of only one constant CIcrop,ir value. Finally, crop groups in MIRCA2000 (e.g. pulses) are disaggregated to individual crops using the relative share of each individual crop within the group from FAOSTAT.

A number of consistency constraints are enforced on the country-level time series of total harvested areas and irrigated harvested areas derived by the steps above:

  1. Total harvested areas of all crops must fit into total cropland in each country, taking into account multiple cropping suitability but not yet taking into account crop-specific spatial patterns.

  2. Irrigated harvested areas of each crop cannot exceed total harvested areas of the same crop.

  3. Irrigated harvested areas of all crops must fit into irrigated cropland in each country, taking into account multiple cropping suitability.

  4. Rainfed harvested areas, which are calculated as the difference between total harvested areas and irrigated harvested areas, must fit into remaining cropland, taking into account multiple cropping suitability.

Constraint 2 ensures plausibility between irrigated and total harvested areas taking into account that (1) irrigated harvested areas are mostly the result of extrapolating based on a constant CIcrop,ir value using only changes in irrigated cropland, while CIcrop,tot values are more likely to change in FAOSTAT, and (2) rainfed and irrigated cropland may show different trends over time. The toolbox allows the user to choose whether constraint 2 is applied only after gap-filling and extrapolation or before and after gap-filling and extrapolation. Constraints 1, 3, and 4 are in place to ensure that country-level harvested areas can be disaggregated to the gridded cropland mask. Harvested areas can exceed physical cropland in cases of multiple cropping, i.e. harvesting more than once a year from the same piece of land (Waha et al.2020). We define the upper limit of how many harvests are possible per year as multiple cropping suitability (MCS), which is computed for each grid cell and separately for rainfed and irrigated crops based on agro-climatic resources from GAEZv3.0 (IIASA/FAO2012). The approach is a simplified version of the multiple cropping zones defined in the GAEZ model documentation (Fischer et al.2012). MCS can take integer values of one, two, or three denoting single, double, or triple cropping suitability, respectively.

Monfreda et al. (2008)Ramankutty et al. (2008)

Table 3Variable names and indices used in calculating crop-specific harvested areas.

Download Print Version | Download XLSX

The following subsections describe calculations carried out for multi-dimensional variables. The dimensions include space, time, crop, and irrigation system. Table 3 gives an overview of variable names and variable indices used.

Maximum total harvested area threshold per country and year HAmaxall,tot,country,y used for constraint 1 is defined as

(3) HAmax all , tot , country , y = c = 1 n ( CL rf , c , y MCS rf , c + CL ir , c , y MCS ir , c ) ,

where CLrf,c,y and CLir,c,y are the rainfed (rf) and irrigated (ir) cropland extent in each cell c belonging to the country in year y. MCSrf,c and MCSir,c are the rainfed and irrigated multiple cropping suitability in each cell c which is assumed to be constant over time. This estimate of maximum total harvested area is a strong simplification in that it implies that all crops are equally suited for multiple cropping and does not explicitly account for multiple cropping systems that actually exist in the country (Waha et al.2020). FAOSTAT harvested areas exceeding the threshold can be caused, inter alia, by inconsistencies between FAOSTAT cropland and HYDE cropland, by some crops that allow for a higher cropping intensity than GAEZ-derived MCS, or by errors within FAOSTAT data. For example, FAOSTAT reports four crops with a combined harvested area of almost 13 000 ha in Djibouti in 2000 but reports only 1000 ha of cropland, which would imply at least 13 harvests per year and is unreasonable. Finding a case-specific solution for such problems would be beyond the scope of a global toolbox like the one proposed here. In the current implementation whenever the sum of all crop-specific harvested areas in a country HAall,tot,country,y exceeds the threshold, the harvested areas of all crops are scaled down linearly so that their sum matches HAmaxall,tot,country,y. Another possibility that is not currently implemented would be to first scale down harvested area values that have been introduced by gap-filling and extrapolation before modifying values from the source data because the former are considered less reliable than the latter. In addition, each value in the FAOSTAT database is associated with a quality flag that could be used to prioritize keeping some values over others.

Maximum irrigated harvested area threshold per country and year, HAmaxall,ir,country,y, used for constraint 3 is defined as

(4) HAmax all , ir , country , y = c = 1 n ( CL ir , c , y MCS ir , c ) .

As for total harvested area, this assumes that all irrigated crops are equally suited for multiple cropping.

Constraint 4 is applied after constraints 1 to 3 have been applied to total harvested areas and irrigated harvested areas. Rainfed crops can be grown on rainfed cropland but also on irrigated cropland that is not already used for irrigated crops. As such, the maximum rainfed harvested area threshold per country HAmaxall,rf,country,y is not simply the difference between HAmaxall,tot,country,y and HAmaxall,ir,country,y. Since MCSir,c and MCSrf,c are not always the same, HAmaxall,rf,country,y is not simply the difference between HAmaxall,tot,country,y and the sum of all irrigated harvested areas in the country, HAall,ir,country,y, either. Instead it is comprised of two components. (1) The maximum rainfed harvested area on rainfed cropland per country and year HAmaxall,rf_on_rf,country,y is calculated as

(5) HAmax all , rf _ on _ rf , country , y = c = 1 n ( CL rf , c , y MCS rf , c ) .

(2) The maximum rainfed harvested area on irrigated cropland per country and year HAmaxall,rf_on_ir,country,y is calculated as the minimum of two terms:

(6) HAmax all , rf _ on _ ir , country , y = min c = 1 n ( CL ir , c , y MCS rf , c ) HAmax all , ir , country , y - HA all , ir , country , y .

Finally, the maximum rainfed harvested area per country is the sum of both components:

(7) HAmax all , rf , country , y = HAmax all , rf _ on _ rf , country , y + HAmax all , rf _ on _ ir , country , y .

If the sum of all rainfed harvested areas in a country HAall,rf,country,y exceeds HAmaxall,rf,country,y, this can be solved either by reducing total harvested areas or by increasing the share of irrigated harvested areas while keeping total harvested areas intact. The toolbox prioritizes total harvested areas and therefore expands irrigated harvested areas. However, as shown in Eq. (6) any increase in HAall,ir,country,y further reduces HAmaxall,rf_on_ir,country,y. Therefore, more rainfed harvested areas than the difference between HAall,rf,country,y and HAmaxall,rf,country,y need to be converted to irrigated harvested areas. A new target value for the sum of rainfed harvested areas of all crops HAall,rf,country,y* is calculated as

(8) HA all , rf , country , y * = HAmax all , rf _ on _ rf , country , y + c = 1 n ( CL ir , c , y MCS rf , c ) HAmax all , ir , country , y - HA all , tot , country , y + HAmax all , rf _ on _ rf , country , y HAmax all , ir , country , y - c = 1 n ( CL ir , c , y MCS rf , c ) .

A new target value for the sum of irrigated harvested areas of all crops HAir,country,y* is calculated as

(9) HA all , ir , country , y * = HA all , tot , country , y - HA all , rf , country , y * .

When disaggregating HAall,ir,country,y* to individual crops, preference is given to crops that already have irrigated areas while also respecting consistency constraint 2 from above.

2.5.4 Spatial disaggregation of country-level land use data

The objective of the spatial disaggregation is to allocate crop-specific harvested areas during each year to individual grid cells taking into account available cropland and multiple cropping suitability. Weighting maps for the spatial disaggregation of country-level crop-specific harvested areas to gridded cropland are derived from the MON and RAM datasets. These weighting maps describe regional differences in the relative shares of cropland occupied by each crop. Crop-specific harvested areas in each cell c of the original MON dataset are based on census data at either national, state/province, or county/district level under the basic assumption that crop-specific cropping intensity CIcrop,c is constant in all cells belonging to the same administrative area (county/district, state/province, or country) (Monfreda et al.2008). At first, we derive maps of cropping intensity weights CIWcrop,c from MON and RAM as

(10) CIW crop , c = MON crop , c RAM c ,

where MONcrop,c is crop-specific harvested area from MON and RAMc is cropland extent from RAM, both for the year 2000. Due to inconsistencies between cropland extent in the RAM dataset and HYDE cropland extent used here there are more than 300 000 grid cells at 5 resolution which have cropland according to HYDE but no harvested areas of any crop according to the MON dataset. Because neither the original census data nor the administrative area delineations used to construct the MON dataset are available, an attempt is made to emulate the process to gap-fill missing values in the CIWcrop,c maps. All cells are assigned to GADM level 0, level 1, and level 2 units using the process from Sect. 2.2. For each GADM level 2 unit (county) that has cells with missing harvested areas a fill value is calculated as

(11) CIW crop , fill = c = 1 n ( CIW crop , c RAM c ) / c = 1 n RAM c ,

using all cells c within the GADM level 2 unit. If RAMc equals zero for all cells within the GADM level 2 unit, all cells c within the GADM level 1 unit are used. If the RAM dataset does not have any cropland within the GADM level 1 unit either, all cells c belonging to the country are used for gap-filling. Information on how many administrative units have been gap-filled along with the source of the fill data is provided to the user.

Gap-filled maps of CIWcrop,c are then used together with grid-level time series of HYDE rainfed and irrigated cropland to disaggregate country-level time series of crop-specific rainfed and irrigated harvested areas. For each country grid-level harvested areas are derived as

(12) HA crop , sys , c , y = CIW crop , c CL sys , c , y c = 1 n ( CIW crop , c CL sys , c , y ) HA crop , sys , country , y .

If CIWcrop,c equals zero for all cropland cells c, a simplified version is used:

(13) HA crop , sys , c , y = CL sys , c , y c = 1 n CL sys , c , y HA crop , sys , country , y .

In both equations, sys is a placeholder for system and may be either ir or rf. If there is no rainfed cropland in the country, total cropland is used instead to calculate HAcrop,rf,c,y, taking into account that rainfed crops are allowed to grow on irrigated cropland.

Once all rainfed and irrigated crops have been disaggregated to the grid the algorithm checks whether multiple cropping limits are respected in all cells:

(14) HA all , rf , c , y / CL rf , c , y MCS rf , c  and  HA all , ir , c , y / CL ir , c , y MCS ir , c .

Any country where at least one cell violates at least one multiple cropping limit is processed again by a spatial redistribution algorithm. This happens quite frequently, especially when harvested areas are close to HAmaxall,ir,country,y or HAmaxall,rf,country,y. The spatial redistribution reallocates harvested areas from cells that exceed the multiple cropping limit to other cells within the same country that still have space available. While the first spatial disaggregation is performed on a crop-by-crop basis, spatial redistribution requires that grid-level harvested areas for all crops are loaded at once, which leads to substantial memory requirements for this process. The current implementation in the toolbox provides a compromise between overall random access memory (RAM) requirements and limiting the number of file input and output operations which are slow.

At the beginning of spatial redistribution constraints for irrigated harvested areas are enforced in each cell c:

(15) HAmax all , ir , c , y = CL ir , c ( MCS ir , c  if  HA all , rf , country , y - MCS rf , c ) = c = 1 n ( ( CL rf , c + CL ir , c ) MCS rf , c ) CL ir , c MCS ir , c  otherwise  ,

where HAmaxall,ir,c,y is the maximum sum of crop-specific irrigated harvested areas in each cell c and HAall,rf,country,y is the sum of all rainfed harvested areas in the country. This constraint gives preference to irrigated harvested areas on irrigated cropland by allowing them to potentially use all irrigated cropland in all cells unless the country-level sum of all rainfed harvested areas requires usage of all rainfed and irrigated cropland to allocate rainfed harvested areas. Irrigated harvested areas of all crops HAcrop,ir,c,y are scaled down in cells where the threshold is exceeded:

(16) HA crop , ir , c , y * = HA crop , ir , c , y / max 1 , HA all , ir , c , y / HAmax all , ir , c , y .

For rainfed harvested areas the threshold takes into account possible changes in irrigated harvested areas due to the application of Eq. (16):

(17) HAmax all , rf , c , y = CL rf , c MCS rf , c + min CL ir , c MCS rf , c CL ir , c MCS ir , c - HA all , ir , c , y * .

Rainfed harvested areas of all crops are scaled down in cells where the threshold is exceeded:

(18) HA crop , rf , c , y * = HA crop , rf , c , y / max 1 , HA all , crop , rf , c , y / HAmax all , rf , c , y .

Spatial redistribution is an iterative process that tries to preserve spatial base patterns provided by the MON-derived weighting maps CIWcrop,c while also ensuring that constraints from Eqs. (15) and (17) are met and the sum over all cells of crop-specific harvested areas still matches the country-level time series. For iteration i=1, HAcrop,sys,c,y,i equals HAcrop,ir,c,y* from Eq. (16) for sys=ir and HAcrop,rf,c,y* from Eq. (18) for sys=rf. In each iteration i, irrigated harvested areas are processed before rainfed harvested areas.

In a first step, crop-specific harvested areas are logit transformed:

(19) HAlogit crop , sys , c , y , i = ln HA crop , sys , c , y , i / HAmax all , sys , c , y , i 1 - HA crop , sys , c , y , i / HAmax all , sys , c , y , i .

This transformation assigns values between HAlogitcrop,sys,c,y,i=- for HAcrop,sys,c,y,i=0 and HAlogitcrop,sys,c,y,i= for HAcrop,sys,c,y,i=HAmaxall,sys,c,y,i. In a second step, an increment incrcrop,sys,c,i is added to HAlogitcrop,sys,c,y,i, and values are transformed back to derive an increment in harvested areas:

(20)HAincrcrop,sys,c,y,i=HAmaxall,sys,c,y,i1+exp(-(HAlogitcrop,sys,c,y,i+incrcrop,sys,c,i))-HAcrop,sys,c,y,i, where(21)incrcrop,sys,c,i=0 if HAall,sys,c,y,i=HAmaxall,sys,c,y,i1-c=1nHAcrop,sys,c,y,iHAcrop,sys,country,y otherwise .

A value of incr=0 also results in a HAincr=0. The former is set to zero in all cells where harvested areas of all crops already equal the maximum threshold HAmaxall,sys,c,y,i; i.e. there is no space left for expansion. Higher values of incr reduce the number of iterations needed but also increase the risk of overshooting the country-level sum HAcrop,sys,country,y. In our implementation, incrcrop,sys,c,i approaches zero as the assigned gridded harvested areas approach the country-level sum. Yet, it is possible that Eq. (20) leads to an overshoot, which is why HAincrcrop,sys,c,y,i is corrected if needed:

(22) HAincr crop , sys , c , y , i = HAincr crop , sys , c , y , i min 1 , HA crop , sys , country , y - c = 1 n HA crop , sys , c , y , i HAincr crop , sys , c , y , i .

The corrected harvested area increment is added to currently assigned harvested areas:

(23) HA crop , sys , c , y , i + 1 = HA crop , sys , c , y , i + HAincr crop , sys , c , y , i .

Even though Eq. (20) prevents individual crops from exceeding HAmaxall,sys,c,y,i, the simultaneous expansion of several crops within the same cell may cause their sum to exceed the threshold. This is why the correction described in Eqs. (16) and (18) is applied to HAcrop,sys,c,y,i+1 before proceeding to the next iteration.

The iterative process described above is repeated for irrigated and rainfed crops until the sum of grid-level harvested areas per crop matches the country-level values or until a maximum number of 1000 iterations. The limit of 1000 iterations is set to limit the overall run time of the process and may be changed by the user. The number of required iterations can differ for each crop in a country. The spatial redistribution algorithm includes a number of additional functionalities to enable the successful redistribution in special cases:

  • Crops that have not been successfully redistributed after 100 iterations are allowed to expand beyond the base pattern given by CIWcrop,c. For this, HAcrop,sys,c,y,i in Eq. (19) is set to a tiny area in cells where it is zero and where there is still space left for the expansion of harvested areas.

  • If redistribution of all irrigated crops finishes before redistribution of rainfed crops, the algorithm checks whether c=1nHAmaxall,rf,c,y,iHAall,rf,country,y, i.e. whether the allocated patterns of irrigated harvested areas leave enough space to distribute rainfed harvested areas. If not, HAmaxall,rf,c,y is expanded in a separate iterative process similar to the one in Eqs. (19) and (20). The expansion ensures that c=1nHAmaxall,rf,c,yHAall,rf,country,y and c=1nHAmaxall,ir,c,yHAall,ir,country,y. Further spatial redistribution of irrigated harvested areas is necessary after forcing the expansion of HAmaxall,rf,c,y.

If any crops have not finished spatial redistribution after 1000 iterations, the remaining missing harvested areas are distributed equally to any remaining space within the country in a simple additive approach to ensure that the sum of grid-level harvested areas of each crop matches the country-level values. Besides creating crop-specific spatial patterns, the redistribution algorithm also provides extensive diagnostic output regarding the amount of redistributed harvested areas, harvested areas allocated out of pattern, and the number of required iterations for each country and crop.

2.5.5 Conversion of crop-specific harvested areas to growing areas

Crop-specific harvested areas for 178 rainfed and irrigated crops created by the spatial disaggregation are aggregated to so-called crop functional types (CFTs) that are represented in LPJmL by representative crops of these groups. The list of CFTs currently contains 12 individual crops or crop groups (Schaphoff et al.2018b); however, the toolbox allows for easy modifications of the CFT definitions to account for possible new model developments or for different crops implemented in other TEMs. All crops that do not belong to one of the 12 CFTs are aggregated to an “others” category. As part of the CFT aggregation, the toolbox also allows for a spatial aggregation of harvested areas to a coarser spatial resolution. As mentioned before, we suggest performing data processing outlined in Sect. 2.5.3 and 2.5.4 at the highest possible spatial resolution and only aggregating to a coarser resolution in this final step.

LPJmL currently does not support the modelling of multiple cropping systems, while the harvested area dataset includes multiple cropping. Technically, the sum of all land use categories in the LPJmL input dataset (crop-specific growing areas, managed grasslands, and second-generation biomass plantations) and any assigned waterbodies must not exceed the total grid cell area. In order not to compromise the space available for natural vegetation, which would have implications for simulating the global biogeochemical cycles, it is also desirable that crop-specific growing areas do not exceed the spatial extent of cropland. The toolbox implements a very simple approach to solve this problem and create a land use dataset that can be used with LPJmL. However, depending on the specific analysis planned by the user, other approaches may be more suitable. In grid cells where the sum of crop-specific rainfed harvested areas exceeds rainfed cropland, all rainfed crops are scaled down linearly so that the sum of their growing areas fits into rainfed cropland assuming a multiple cropping intensity of 1. In some rare cases where rainfed harvested areas have been allocated entirely to irrigated cropland in the spatial disaggregation these rainfed crops are lost. Likewise, in grid cells where the sum of crop-specific irrigated harvested areas exceeds irrigated cropland, all irrigated crops are scaled down linearly so that the sum of their growing areas fits into irrigated cropland assuming a multiple cropping intensity of 1. In grid cells where the sum of crop-specific irrigated/rainfed growing areas is smaller than irrigated/rainfed cropland, the remaining cropland is declared irrigated/rainfed fallow land. This is only a rough estimate of fallow land because crops could be grown in multiple cropping systems, leaving even more cropland fallow.

Finally, the “managed grasslands” category of the LPJmL input dataset is created from the HYDE land use category “grazing”. The LPJmL input dataset features a distinction between rainfed and irrigated managed grasslands which in theory allows for the simulation of intensively managed, irrigated pastures. The HYDE dataset does not include information about irrigated pastures. All grazing areas from HYDE are assigned to the rainfed managed grasslands category in the LPJmL input.

Different irrigation systems, as delineated by Jägermeyr et al. (2015) for LPJmL, are not distinguished here. This disaggregation of irrigation systems is not a requirement to run LPJmL but could be added to this toolbox at a later stage.

2.5.6 Nitrogen fertilizer

Starting with LPJmL version 5, the model includes a representation of the nitrogen cycle (Von Bloh et al.2018). Earlier model versions do not feature a nitrogen cycle, and it can also be switched off in LPJmL version 5. If running with the nitrogen cycle and with anthropogenic land use, the model requires nitrogen fertilizer and/or manure as additional input datasets. The following describes the generation of time series of crop-specific (chemical) nitrogen fertilizer application rates and application rates of nitrogen included in manure, which are not differentiated by crop. The dataset combines spatial patterns of crop-specific fertilizer application rates for more than 140 crops for the year 2000 (Mueller et al.2012; Mueller2012, variable “*crop*Napprate”) with historical fertilizer application trends for five aggregated crop types from the Land-Use Harmonization Project (LUH2; Hurtt et al.2020, variables “fertl_c3ann”, “fertl_c4ann”, “fertl_c3nfx”, “fertl_c3per”, “fertl_c4per”). Spatial patterns and historical trends of manure application rates are based on Zhang et al. (2017a) and Zhang et al. (2017b) (variable “ManNitProCrpRd”). All three source datasets are gridded, although LUH2 data show country data on a grid. Similar to the land use dataset, we suggest carrying out data processing at the source resolution and aggregating to the desired target resolution as the last step. Both the fertilizer patterns and the manure data have a spatial resolution of 5, whereas the LUH2 dataset is at 15.

Both fertilizer datasets show fertilizer application rates only in grid cells where the respective dataset assumed the crop to be grown. Since crop growing patterns underlying these datasets differ from each other and from the land use dataset created by this toolbox, patterns are first gap-filled to provide values in all grid cells. The spatial fertilizer patterns are based on national or sub-national data. Gap-filling is done similarly to filling the MON dataset described in Sect. 2.5.4. Missing cells are assigned to GADM level 2, level 1, and level 0 units, and representative values for the unit are derived using the median of non-missing values, starting at the smallest administrative level and advancing to larger units if no value has been found. Since administrative units used here do not match units used in the creation of the fertilizer dataset, the user may provide a minimum threshold of cells that must be present in an administrative unit to use its value (default value: 5). Additionally, international border cells – i.e. cells containing more than one country (see Sect. 2.2) – are not used for gap-filling to avoid values spilling over into neighbouring countries. The LUH2 dataset is gap-filled using the country mask included in that dataset (variable “ccode”). As such, the administrative unit delineations match the data. The LUH2 dataset uses a value of zero in cells where a crop is not grown. In order to distinguish between missing cells and cells with an actual application rate of 0, we first filter out all values in cells where the respective crop growing area is zero according to the LUH2 dataset (variables “c3ann”, “c4ann”, “c3nfx”, “c3per”, “c4per”). Since the LUH2 fertilizer data represent country values, the toolbox does not fill up the spatial pattern but collects country values in tabular form using the median of all non-missing cell values in each country. Fertilizer application rates are missing completely for a few countries in both the spatial patterns and the LUH2 dataset. These are filled using representative rates derived from larger geographic regions and taking into account development status. Countries are assigned to geographic regions as defined by the Statistics Division of the United Nations Secretariat (UNSD2022). Representative rates are preferably derived as the median of other countries in the same UNSD Intermediate Region with the same development status but may also be taken from the UNSD Sub-region or Region or from countries with a different development status if no value can be found using the stricter search criteria. Datasets are always filled with values from the same dataset. When combining gridded fertilizer patterns for the year 2000 with country-scale fertilizer trends from the LUH2 dataset, care has to be taken because both GADM (used as administrative units for the spatial fertilizer patterns) and LUH2 use a number of non-standard countries, such as the Caspian Sea and the Spratly Islands in GADM or the former USSR and former Yugoslav republic used in LUH2. The toolbox includes country replacement rules for the default source datasets mentioned in this section and allows the user to add or modify country replacement rules easily in case they use different source datasets. Annual country-scale fertilizer application rates for the five aggregate crop types included in the LUH2 dataset are converted into relative scaling fractions normalized to the year 2000 rates in that dataset. In order to derive gridded crop-specific time series, all crops from the Mueller et al. (2012) dataset are assigned a corresponding LUH2 aggregate crop type. This is a simplification because it assumes that, for example, all 62 C3 annual crops included in the Mueller et al. (2012) dataset follow the same historical trend. Annual gridded values for all cells in a country c and year y are then derived by multiplying their year 2000 value with the country-scale LUH2-derived scaling factor of the corresponding group crop, country, and year. In a final step, crop-specific gridded time series of fertilizer application rates are aggregated to the spatial target resolution and the CFTs modelled by LPJmL as a weighted mean, using crop-specific harvested areas from the land use dataset detailed in the previous sections as weighting factors for crops and managed grassland areas as weighting factors for fertilizer applied to pastures. Since applying the historical trend of a whole crop group to individual crops can lead to unreasonably high fertilizer application rates in a few cases, the toolbox allows the user to define an optional maximum application rate (default: 500 kg N ha−1) and cuts off any values exceeding that threshold.

Manure application rates from Zhang et al. (2017b) are expressed as kilogramme per square kilometre cell area and need to be rescaled to the cropland area in each cell. This is done using total cropland from HYDE, which is also used to derive the land use dataset. This rescaling can lead to some very high application rates in the case of inconsistencies between the two datasets. The toolbox allows the user to define an optional maximum application rate and cuts off any values exceeding that threshold. If the target resolution is coarser than the source resolution, gridded manure application rates are aggregated to the target resolution by weighted mean using rainfed or irrigated cropland as a weighting factor. By default, all crops are assigned the same manure application rate.

3 Sample application

In this section the toolbox is applied to generate global input datasets at two spatial resolutions: 5 and 30. This section does not introduce any new toolbox functionality but only illustrates implications of choices made in the data processing. We prescribe the land–sea mask of the CRU dataset (Harris et al.2020) for the dataset at 30 resolution. The resulting datasets are compared among each other, as well as to existing comparable datasets. The structure of this section generally follows the structure of Sect. 2.

3.1 Land–sea mask and grid, country, and region mask

Polygon shapes from GADM version 3.6 (GADM2018) are used to derive the land–sea mask, specifically GADM level 0 from the file “gadm36_levels_shp.zip”. We exclude Antarctica from the land–sea mask at both spatial resolutions. The intersection of GADM polygon shapes with grid cells at 5 spatial resolution returns 2 298 844 cells with land. Applying a minimum land area of 1000 m2 per cell, 618 grid cells with a total area of 123 120 m2 are removed, leaving a grid with 2 298 226 cells. The grid covers a total grid area of 139×106km2. Taking into account the calculated land fraction in each cell, the grid covers a total land area of 135×106km2 and thus includes roughly 3 % ocean area (Table 4).

The intersection of GADM polygon shapes with grid cells at 30 spatial resolution returns 70 391 cells with land, of which 68 cells have less than 1000 m2 of land area. However, the CRU land–sea mask only consists of 67 420 grid cells. A total of 3112 cells with land according to GADM are not included in the CRU land–sea mask. On the other hand, the CRU land–sea mask includes 141 cells which do not contain any land according to GADM. The differences between the two land–sea masks are located mostly along the coastlines of all continents and many islands. The GADM-based land–sea mask also includes the Caspian Sea and a few large inland lakes that are excluded from the CRU land–sea mask. The CRU land–sea mask includes a number of cell clusters in the Atlantic and Pacific oceans that appear to be far off any known landmass. In total, the CRU grid covers a global grid area of 146.4×106km2, of which 134.5×106km2 is located on land according to GADM (Table 4). This means that the CRU-based grid may include roughly 8 % ocean area. Not accounting for ocean areas included in the grid cells may create a bias when aggregating grid-based terrestrial biogeochemical fluxes of carbon, water, and nitrogen to the global scale.

Table 4Characteristics of the created grid, administrative and soil input datasets at 5 and 30 spatial resolutions. Values from earlier input datasets used with LPJmL (e.g. in  Schaphoff et al.2018a) are provided for comparison (Schaphoff18).

a GADM-based land fractions in each cell are used, assigning a land fraction of 0 to cells without any land according to GADM. b Country and region mapping in this dataset was not based on GADM version 3.6. c GADM level 1 units (provinces, states) are only distinguished in seven large countries: Australia, Brazil, Canada, China, India, Russia, and USA.

Download Print Version | Download XLSX

Country and region masks are derived from GADM levels 0–2 from the same file “gadm36_levels_shp.zip” used for the land–sea mask. GADM version 3.6 includes 256 unique level 0 administrative units (mostly countries). We add a dummy unit “No land” which we assign to cells in the 30 grid that do not contain any land according to GADM. Since we exclude Antarctica from processing, it is missing in the country masks at 5 and 30 spatial resolutions. Vatican City (ISO code “VAT”) is too small to be assigned to even a single grid cell at both spatial resolutions, while another 18 GADM level 0 units are too small to be assigned to a single grid cell at 30 spatial resolution. While automatic country assignment results in 141 cells assigned to “No land” in the country mask at 30 spatial resolution, the majority of these cells are actually located directly adjacent to grid cells with a valid country code and could be re-assigned manually by the user.

GADM version 3.6 includes 252 unique level 1 administrative units (provinces, states) in the seven large countries for which LPJmL distinguishes sub-national units. A total of 252 and 242 of these level 1 units are large enough to be assigned to at least one grid cell at 5 and 30 spatial resolutions, respectively.

When using national or sub-national data or model parameters, special care needs to be taken to ensure that administrative units in the country and region masks match countries and/or regions used in the model or in other source datasets. For example, the official release of LPJmL4, as described by Schaphoff et al. (2018b), distinguishes 236 countries and 242 regions (“Schaphoff18” in Table 4). While these numbers are close to the total number of countries and regions assigned here at 30 spatial resolution, GADM version 3.6 actually distinguishes fewer level 1 administrative units in Russia and more level 1 units in several of the other countries than are defined in LPJmL.

https://gmd.copernicus.org/articles/16/3375/2023/gmd-16-3375-2023-f02

Figure 2Comparison of soil texture class inputs using different aggregation algorithms. The 30 dataset created by this toolbox. Schaphoff18 refers to soil input used, e.g. in Schaphoff et al. (2018a). Differences between the 5 and 30 datasets are too small to see in a global map.

3.2 Soil

The aggregation methodology for soil data used in this toolbox does not derive “average soils” but selects in each grid cell at the target resolution the “dominant soil texture”, which is derived by summing up the areas of all soil texture classes present in the source data and selecting the texture class with the largest area share. The most prominent soils in terms of global area share at both 5 and 30 spatial resolutions are “loam” and “sandy loam” (Table 4). While the area shares covered by each soil texture class vary between the two datasets, the order from most prevalent to least prevalent is generally the same, except for “sandy clay”, “silty clay”, and “silty clay loam”. There are two reasons explaining the different relative prevalence of soil texture classes in the 5 and 30 datasets: (1) both datasets use a slightly different land–sea mask and (2), depending on the spatial heterogeneity of the source data, first aggregating HWSD data to 5 spatial resolution and then aggregating the 5 dataset to 30 spatial resolution is not expected to give the same result as aggregating HWSD data directly to 30 spatial resolution in all regions.

Roughly 2 % of the grid cells of the 5 grid and 1 % of the grid cells of the 30 grid fall outside the area covered by HWSD data and are gap-filled using the dominant soil texture in surrounding HWSD grid cells. The higher number of cells requiring gap-filling at 5 is to be expected since small data gaps in HWSD – e.g. missing soil information below inland waterbodies – or small differences in the land–sea mask are less likely to cover full grid cells at 30 than at 5 spatial resolution.

Finally, the last column in Table 4 compares the two datasets created using this toolbox to the Schaphoff18 dataset. The latter input used the same grid as the 30 version and the same version of HWSD source data. However, HWSD was aggregated to the target resolution by averaging the amount of sand, silt, and clay across cells at the source resolution and then deriving the texture class at the target resolution from the averaged shares (Schaphoff et al.2013). The Schaphoff18 dataset has a much higher share of grid cells with “sandy loam” and “clay loam” than the two datasets created with this toolbox. On the other hand, it has a much lower share of “clay” and “sand”. The comparison highlights the effect the choice of aggregation method has on the derived dataset. The resulting soil texture maps are shown in Fig. 2. None of the three datasets have any grid cells with assigned soil texture class “silt”.

Table 5Comparison of hydrological input datasets at 5 and 30 spatial resolutions. The 5 datasets are based on Lehner et al. (2008) (HydroSHEDS) and Eilander et al. (2020, 2021) (MERIT). The 30 datasets are based on Döll and Lehner (2002) (DDM30) and Vörösmarty et al. (2000) (STN-30). Both the 5 and 30 lake and river masks are based on Lehner and Döll (2004). Schaphoff18 refers to a previous input dataset for LPJmL (e.g. Schaphoff et al.2018a).

Download Print Version | Download XLSX

3.3 Hydrology

3.3.1 River routing

River routing at 5 spatial resolution is based on HydroSHEDS version 1.1 (Lehner et al.2008, file “hyd_glo_dir_5m.zip”) and MERIT (Eilander et al.2020, file “05min_flwdir.tif”), while we use DDM30 (Döll and Lehner2002, file “DDM30.asc”) and STN-30 (Vörösmarty et al.2000, file “g_network.asc”) at a spatial resolution of 30. Both DDM30 and STN-30 have been used in previous LPJmL applications. All drainage direction maps except STN-30 cover almost the full grid used here (Table 5). STN-30 has a smaller coverage of 93 % of the full grid area. Differences in coverage are mostly along coastlines. HydroSHEDS, MERIT, and DDM30 use a specific code for outlet cells. In addition, HydroSHEDS uses a specific code for inland sinks. STN-30 generally does not mark outlet cells. Any STN-30 cell that drains into a cell outside the covered land area is considered an outlet cell. Cells missing in the drainage direction maps are set to a missing value in the generated drainage input file for LPJmL. They are treated like outlet cells in LPJmL.

DDMs are a simplification of real-world river systems. Cells in a DDM may collect inflow from several upstream cells but drain all water into a single downstream cell. This poses limitations in representing river deltas or estuaries and can also shift or completely remove the location of watersheds between river basins. As a result, the spatial resolution of the DDM has implications on the total number and size of drainage basins, as well as the location of the river outlet into the ocean, as shown in Table 5. The median size of individual river basins at 30 resolution is more than 35 times the median size at 5. The two 5 datasets are capable of distinguishing about 10 times more individual river basins consisting of at least 2 grid cells than the two 30 datasets. There are notable differences even for very large river basins, as shown for the Amazon, Congo, Mississippi, Nile, and Rio de la Plata basins in Table 5. Differences between datasets at the same spatial resolution can be larger than the differences between the 5 and 30 datasets. For example, the area of the Rio de la Plata Basin is about one-sixth larger in both STN-30 and MERIT than the respective basin areas in DDM30 and HydroSHEDS. The Nile Basin is about one-quarter to one-third larger in the STN-30 dataset than the other drainage direction maps. Outlet cell locations also differ by up to 1 in latitudinal and longitudinal directions between DDM30 and STN-30 (0.58 for HydroSHEDS and MERIT).

The spatial resolution also affects the irrigation scheme in LPJmL. The median upstream area per cell is more than 20–30 times larger at 30 compared to 5, reflecting the larger median river basin size at 30 (Table 5). We test four different options for selecting one neighbour cell from which to draw additional irrigation water: (1) directly adjacent cell with largest upstream area; (2) same as (1) but excluding upstream and downstream cells; (3) cell with largest upstream area in 75 km radius, excluding upstream and downstream cells; (4) same as (3) but applying an additional inverse distance weight with a power parameter of 2. Option (1) was used in previous LPJmL applications. The median upstream area of the neighbourhood cell under option (1) is 23 498 and 24 693 km2 at 30 and 1057 and 1156 km2 at 5 spatial resolution. As such, the median upstream area of the neighbour cell is about 7 to 10 times larger than the median upstream area of the cells themselves at 5 and 30. The upstream area of the selected neighbour cell is larger than the upstream area of the cells themselves for more than 95 % of cells regardless of the spatial resolution. The median distance between each cell and its selected neighbour cell is 10 km at 5 and 60 km at 30, reflecting the different grid sizes of the datasets. Option (2) also selects the neighbour from directly adjacent cells but excludes upstream and downstream cells from the search because tapping the same river twice makes limited sense. This constraint leads to a substantial reduction in both the median upstream area of the neighbour cell and the fraction of all cells whose neighbour has a larger upstream area, while it has little effect on the median distance to the neighbour cell (Table 5). Apparently, option (1) is very likely to select a downstream cell as the neighbour, which has a larger upstream area by definition but may not have additional water unless there is a confluence with another river. Option (3) selects the neighbour cell from all cells within a 75 km radius. For both 30 datasets, option (3) leads to similar results as option (2) since the 75 km search radius corresponds roughly to the distance between adjacent cells close to the Equator. For the 5 datasets, expanding to a 75 km search radius increases the median upstream area of the neighbour cell and the distance to the neighbour cell to values that are even higher than in the 30 datasets. In fact, the distance to the selected neighbour cell appears to be close to the maximum search radius in many cells, which may not be realistic if there are closer cells with only a slightly smaller upstream area. Option (4) is a very simple attempt to provide a compromise between finding a neighbour cell with a larger upstream area while still limiting the transport distances. Adding an inverse distance weighting to the upstream cells of surrounding cells has relatively little effect for the datasets at 30 resolution: the median distance to the neighbour cell is reduced by only 1 km, while the median upstream area of the neighbour cell is reduced by 13 % to 17 %. At 5 spatial resolution, option (4) reduces the median distance to the selected neighbour cell by almost 75 %, while the median upstream area is only reduced by roughly 50 %. The majority of cells are still assigned a neighbour cell with an upstream area more than 10 times their own. Toolbox users may try out further values for the power parameter, but a comprehensive assessment of the best parameter combination would require simulations with LPJmL to test the effect of different neighbour irrigation inputs on simulated irrigation water withdrawals and irrigated crop yields.

3.3.2 Lakes and rivers

The bottom row of Table 5 compares the global area covered by lakes and rivers at the two spatial resolutions. Both datasets are based on aggregating gridded GLWD level 3 data (Lehner and Döll2004, file “GLWD_level3.zip”) to the target grid. The 5 dataset has about 12 % more area covered by lakes and rivers than the 30 dataset. This difference is mainly due to the Caspian Sea, which is included in the 5 grid but excluded from the 30 grid. It should be noted that lake and river fractions extracted from GLWD level 3 differ slightly from those extracted by polygon intersection from levels 1 and 2 of the source data (files “GLWD_level1.zip” and “GLWD_level2.zip”). However, we find that the difference is less than 400 km2 (<0.02 %) at the global scale.

The last column of the table provides the lake and river area from the Schaphoff18 input dataset which used the same grid as the 30 dataset created by this toolbox but saved grid cell fractions covered by lakes and rivers with a reduced accuracy of integer percent values. For further comparison, we note that the HydroLAKES dataset reports a global surface area of natural lakes of 2.67×106km2, which is about 4 % smaller than the area covered by lakes and rivers in our 5 dataset or about 8 % larger than our 30 dataset (Messager et al.2016). HydroLAKES does not include areas covered by rivers.

Table 6Comparison of reservoir input datasets at 5 and 30 spatial resolutions. The 5 datasets are produced for DDMs by Lehner et al. (2008) (HydroSHEDS) and Eilander et al. (2020, 2021) (MERIT). The 30 datasets are produced for DDMs by Döll and Lehner (2002) (DDM30) and Vörösmarty et al. (2000) (STN-30). Reported catchment areas may be smaller than a single cell in the DDM. Numbers in brackets set reported catchment areas smaller than one grid cell to the size of the grid cell before comparison with DDM upstream areas.

Strong underestimation: DDM upstream area <50 % of reported catchment area; medium underestimation: DDM upstream area ≥50 % and ≤90 % of reported catchment area; good match: DDM upstream area within ±10 % of reported catchment area; medium overestimation: DDM upstream area >10 % and ≤100 % above reported catchment area; strong overestimation: DDM upstream area larger than twice the reported catchment area.

Download Print Version | Download XLSX

3.3.3 Dams and reservoirs

GRanD version 1.3 (Lehner et al.2011, file “GRanD_Version_1_3.zip”) is used for this toolbox application. It includes entries for 7320 dams and reservoirs. Before assigning dams to grid cells, 40 GRanD records with missing storage capacity or marked as either “Destroyed”, “Planned”, “Removed”, “Replaced”, “Subsumed”, or “Under construction” are removed. Missing reservoir areas for 14 reservoirs are estimated using average relationships between area and storage capacity (Lehner et al.2011). No dams are outside the area covered by either the 5 or 30 grid. We set a maximum search radius of 1 for both resolutions but enforce a maximum distance between original dam location and assigned grid cell centre of 15 and 75 km at 5 and 30, respectively. Values of 1 and 1.5 are used for distance penalty pdis and deviation penalty pdev, testing permutations where both penalties have the same value or one is higher than the other. No psign is used to assign a different penalty based on whether the catchment area is over- or underestimated. The number of cells with assigned reservoirs is lower than the total number of reservoirs in GRanD since dams and reservoirs are sometimes located close to each other. The 7280 dams are assigned to 7040–7064 individual grid cells at 5 resolution, depending on the DDM and assignment strategy (Table 6). The number of grid cells with dams is reduced further to 4077–4579 at 30 spatial resolution. The median distance between reported and assigned dam location is about 3 and 20 km at 5 and 30, respectively, if dams are simply assigned to the grid cell their reported coordinates fall into (“grid-based” in Table 6). Distances between reported and assigned locations increase for all weighting-based assignment strategies. This increase is smallest for the strategy with a higher distance weight (pdis=1.5,pdev=1 in Table 6) and highest for the strategy with a higher deviation weight (pdis=1,pdev=1.5). While absolute distances are smaller at 5 than at 30, the relative increase in weighting-based assignment compared to the grid-based assignment is larger at 5. The weighting-based assignment is less likely to differ from the grid-based assignment at 30 than at 5 (see “% of dams not grid-based” in Table 6). The main reason for using a weighting-based assignment strategy is to achieve a better match between catchment areas reported in GRanD and DDM-based upstream areas of the assigned cells, which is used as an indication that modelled dams are assigned to the correct river basin. DDM-derived upstream areas are commonly larger than reported catchment areas, as evidenced by the much higher percentages of dams with overestimation compared to dams with underestimation in Table 6. This is especially true for the datasets at 30, where reported catchment areas are often smaller than one grid cell. The percentage numbers in brackets account for this by setting reported catchment areas that are smaller than one grid cell to the size of the grid cell before comparing them to DDM-derived upstream areas. This alternative evaluation shifts the majority of dams having a “strong overestimation” of DDM-derived upstream areas to the “medium overestimation” category.

Overall, reported catchment areas cannot be matched well at 30 spatial resolution. Using grid-based assignment, only 5.5 %–8 % of dams have a DDM-derived upstream area within 10 % of the reported catchment area (“good match” in Table 6). This increases to 11 %–15 % of dams using the weighting-based assignment strategies. Yet, the upstream areas of about two-thirds of all dams are still more than twice the reported catchment area even with weighting-based assignment strategies.

Reported catchment areas can be matched much better at 5 spatial resolution. More than half of all dams show a “good match” using the weighting-based assignment strategies, while only 13 %–15 % of dams show a strong over-/underestimation.

The weighting-based assignment strategies generally shift dams from the more extreme categories (e.g. “strong over-/underestimation”) towards a better match between DDM-derived upstream area and reported catchment area at both spatial resolutions, yet they are much more effective at 5 than at 30. While upstream areas of many reservoirs are still overestimated using weighting-based assignment, especially at 30, we note that this problem relates mostly to small reservoirs with small catchment areas. The weighting-based assignment strategies greatly improve the positioning of the major reservoirs (Fig. S1 in the Supplement). As expected, the weighting-based approach with pdev=1.5 provides the best match between DDM and reported areas, but it also leads to larger distances between reported and assigned positions than the other assignment approaches. This increases the risk that dams are assigned to the wrong river (even though the upstream area shows a better match) or that upstream–downstream relationships in regions with multiple dams in close vicinity are not represented correctly. While using a larger maximum search distance than in our test application may improve the match between DDM-derived upstream areas and reported catchment areas, it would also increase the risk of a misrepresentation of the river network topology.

The assignment algorithms implemented in the toolbox cannot prevent such misassignments, but they provide ample diagnostic information, including mapping reported and assigned dam locations to allow for manual visual inspection.

https://gmd.copernicus.org/articles/16/3375/2023/gmd-16-3375-2023-f03

Figure 3Evolution of global cropland extent and harvested areas over time. Cropland extent is based on HYDE version 3.2.1 (Klein Goldewijk et al.2017). Harvested areas are based on a combination of data from AQUASTAT (FAO2020a), FAOSTAT (FAO2020b), MIRCA2000 (Portmann et al.2010b), and Monfreda et al. (2008).

Download

3.4 Land use and land management

3.4.1 Land use

In this section we first describe the land use datasets created with this toolbox and then compare our datasets to another land use dataset that was recently developed for phase 2b of the Inter-Sectoral Impact Model Intercomparison Project (ISIMIP2b; Frieler et al.2017) to highlight the effect of some of the assumptions used in generating these kinds of datasets. We use FAOSTAT data downloaded in January 2020 and AQUASTAT data downloaded in April 2020 for this toolbox application. Since FAOSTAT and AQUASTAT source data are updated frequently by the FAO, we expect that potential users of this toolbox will not use the same version of the data, so their results will likely differ somewhat from ours. All data integration of country-level and gridded source data, as well as the spatial disaggregation of country-level crop-specific harvested areas to the grid level, is carried out at 5 spatial resolution. The land use datasets created by the toolbox cover the period 1500–2017. Figure 3 shows the evolution of global cropland extent and harvested areas over that period. Global total cropland and irrigated cropland expanded from 2.6×106 and 42 009 km2 in 1500 to 16×106 and 2.8×106km2 in 2017, respectively. Total harvested areas were smaller than total cropland extent over the whole period, expanding from 2.4×106 in 1500 to 15.5×106km2 in 2017. Irrigated harvested areas were larger than irrigated cropland extent over the whole period, expanding from 58 844 in 1500 to 3.4×106km2 in 2017. The source datasets used to derive crop-specific harvested areas only cover the year 2000 in the case of MIRCA2000 and the MON dataset, 1961–2016 in the case of AQUASTAT, and 1961–2017 in the case of FAOSTAT. FAOSTAT data are not complete for all countries and all years, but more than 90 % of all crop-country data series contain more than 20 data points. Data availability for irrigated harvested areas is generally much lower than for total crop-specific harvested areas. Even though AQUASTAT technically covers almost the same time period as FAOSTAT only about one-third of all crop-country data series in AQUASTAT contain more than one data point, and only about 10 % contain more than two data points. As such, extrapolation and gap-filling are used to expand the source data to the full period of 1500–2017. The extent of total harvested areas based on gap-filling decreases from roughly 1.5×106 (13 %) to 1.3×106km2 (8 %) over the period covered by FAOSTAT data. This includes crops not included in FAOSTAT but added to the dataset based on data from the MON dataset. Due to the sparsity of source data on irrigated harvested areas, there are only 12 years in the whole time series where less than 90 % of global irrigated harvested areas are based on extrapolation or gap-filling of MIRCA2000 and AQUASTAT. The year 2000, which is covered by all four source datasets, requires the least amount of gap-filling with less than 0.2 % of total harvested areas and less than 0.02 % of irrigated harvested areas. Before 1961, all harvested areas are based on extrapolation.

Table 7Comparison of crop-specific harvested areas and assigned growing areas (in km2) in created land use datasets.

a Pasture/managed grass not included in rainfed, irrigated, and total crop sums. b Fallow land is not applicable (n/a) to the harvested area dataset. It is derived from the difference between available cropland and assigned crop growing areas.

Download Print Version | Download XLSX

Table 7 disaggregates global total sums over all crops shown in Fig. 3 and provides global totals for the CFTs simulated by LPJmL for the years 2000 and 2015. The “harvested area” columns are consistent with Fig. 3. As mentioned in Sect. 2.5.5, LPJmL currently does not support simulating multiple cropping systems. Therefore, harvested areas exceeding physical cropland in individual cells are scaled down to crop-specific growing areas that fit into physical cropland for the final land use input datasets. For the 30 dataset, crop-specific harvested areas and physical cropland are aggregated from 5 to 30 before scaling down any harvested areas exceeding physical cropland in individual cells at 30. Table 7 gives global sums of the crop-specific growing areas at 5 and 30 in the columns labelled “5 dataset” and “30 dataset”. The columns labelled “ISIMIP dataset” compare crop-specific growing areas based on this toolbox to the ISIMIP2b dataset. The ISIMIP2b dataset uses the same grid as the 30 dataset from this toolbox.

The global sum of harvested areas across all crops increases from 13.2×106 in 2000 to 15.2×106km2 in 2015, of which roughly 22 % are irrigated and 78 % are rainfed (“total crop sum” and “irrigated crop sum” in Table 7). Assigned growing areas for all crops are lower than the respective harvested areas in both the 5 dataset and 30 dataset. Aggregated across all crops, assigned growing areas are roughly 11.9 %–12.5 % smaller than harvested areas in 2000 and 16.5 %–17.9 % smaller than harvested areas in 2015. This suggests that the practice of multiple cropping has expanded over that period. We note that the difference between harvested areas and growing areas does not correspond directly to the crop area that is actually grown in multiple cropping systems since multiple cropping and fallow land – i.e. cropland not currently used to grow any crops – can occur within the same grid cell but are not explicitly accounted for in the toolbox. Also, the toolbox does not distinguish between annual and perennial crops in its processing of harvested areas. Assigned growing areas are slightly larger in the 30 dataset than the 5 dataset. This is an artefact of the aggregation from 5 to 30 in which some 5 grid cells with multiple cropping and other grid cells with fallow land may average out at the 30 scale. As explained in Sect. 2.5.5, the toolbox designates any cropland area that exceeds the sum of crop-specific growing areas in a grid cell as fallow land. In Table 7 the sum of “total crops + fallow” corresponds to the total available cropland area. We note that this approach differs from other land use datasets. For example, Hurtt et al. (2020) disaggregate cropland into five crop types assuming that each crop's relative share of cropland is equal to its relative share of total harvested areas. The Hurtt et al. (2020) dataset provides the basis of the ISIMIP2b dataset used as comparison here (Frieler et al.2017). Another previous version of a land use input dataset for LPJmL assigned cropland without harvested areas to the “others” category (Fader et al.2010). As mentioned before, multiple cropping and fallow land can occur within the same grid cell in the real world, so this approach is likely to underestimate fallow land. Globally, fallow land shrinks from 3.73.8×106 in 2000 to 3.23.3×106km2 in 2015 while total cropland increases from 15.3×106 to 15.9×106km2 over the same period, again suggesting an overall increase in cropping intensity. While the toolbox allows users to create an input dataset of grid-level irrigated/rainfed fallow land, fallow land is currently not implemented as a land use category in LPJmL (but planned for future model versions). Using the land use dataset created by this toolbox effectively reduces global cropland compared to other land use input datasets.

Even though the total grid area of the 30 dataset exceeds that of the 5 dataset by 7.3×106km2 (Table 4), this mismatch of the land–sea mask has almost no effect on the land use dataset, with a difference in global cropland area of just 6295 km2 (0.04 %) in 2000 and 7362 km2 in 2015. Likewise, global pasture/managed grassland areas in the two datasets differ by just 12 516 km2 (0.04 %) and 12 002 km2 in 2000 and 2015.

Breaking down the total sums into individual crops, we note that the difference between assigned growing areas and harvested areas varies widely among crops but is generally larger for irrigated crops than for rainfed crops, suggesting that multiple cropping is more prominent in irrigated crops. Due to the missing representation of multiple cropping in the assigned growing areas, crop-specific irrigation shares (irrigated crop area as a fraction of total crop area) are generally lower in the 5 and 30 datasets than in the harvested area dataset. Still, the ranking of crops from most to least irrigated is mostly kept intact except for temperate roots and maize, which are swapped in 2000, and temperate cereals, temperate roots, soybean, and tropical cereals in 2015. The former have almost identical irrigation shares, while irrigated temperate roots are the only crop group actually having a larger irrigation share in our 5 and 30 datasets than in the harvested area dataset for the year 2015.

To our knowledge, our land use datasets at 5 and 30 are the only time series of crop-specific growing areas that take into account changes in the relative crop shares over time. Other comparable datasets like the ISIMIP2b dataset or previous datasets developed for LPJmL (e.g. Bondeau et al.2007; Fader et al.2010; Jägermeyr et al.2015) use static crop shares in each grid cell and only scale cropland extent over time. As such, we expect that our land use datasets should perform better in capturing trends of crop-specific areas over time. Comparing crop-specific harvested areas in 2000 and 2015, four rainfed CFTs show a decreasing trend, while the remaining rainfed crops and all irrigated crops show an increasing trend. Our growing area datasets at 5 and 30 resolutions capture the direction of change for all crops. For rainfed crops with a negative trend in harvested areas, the trend is even more negative in our growing area datasets, whereas positive trends for rainfed CFTs are generally smaller in our datasets than the observed trends in harvested areas, with the exception of rainfed sunflower. This dampening of positive trends and amplification of negative trends is consistent with an increase in rainfed cropping intensity over that period, i.e. more rainfed crops grown in multiple cropping systems. For irrigated crops, the trends in our datasets are slightly amplified compared to the corresponding harvested area trends for half of the CFTs and dampened for the other half. Aggregated across all irrigated crops, irrigated growing areas in our 5 and 30 datasets show a more positive trend than irrigated harvested areas. At the same time, irrigated fallow land also increases, suggesting that irrigated cropland expands at a faster pace than irrigated harvested areas, leading to a decrease in irrigated cropping intensity.

Total cropland in the ISIMIP2b dataset is very similar to our 30 dataset. While crop shares evolve over time in our dataset, the ISIMIP2b dataset uses constant crop shares representative of the year 2000 and only scales cropland extent over time to derive its time series. Similarly to our dataset, the ISIMIP2b dataset scales down harvested areas whenever they exceed available cropland in a grid cell. However, harvested areas are also scaled up to fill all available cropland whenever available cropland exceeds harvested areas. As a result, the ISIMIP2b dataset has much larger growing areas and no fallow land. Finally, while our dataset splits total crop-specific harvested areas for each crop into rainfed and irrigated harvested areas based on data from MIRCA2000 and AQUASTAT, the ISIMIP2b dataset uses a very simple approach and assigns the same irrigated share to all crops present in a grid cell. These differences in methodology lead to substantial differences between both datasets even for the year 2000. Crop-specific growing areas (rainfed and irrigated combined) of all crops are larger in the ISIMIP2b dataset than in our dataset. They even exceed crop-specific harvested areas for all crops except rice. Irrigation shares per crop are underestimated by up to 60 % for heavily irrigated crops (e.g. sugar cane, rice, temperate cereals, maize) and overestimated up to a factor of 3.5 for less irrigated crops (e.g. tropical roots, pulses, tropical cereals). Since the ISIMIP2b dataset uses constant crop shares in each grid cell, it also performs poorly in capturing crop-specific trends over time. Rainfed soybeans, sugar cane, and maize show strong positive trends in harvested areas but show little trend in the ISIMIP2b data. Rainfed rapeseed, which shows a 36 % increase in harvested areas, even shows a 9 % decrease in the ISIMIP2b dataset. On the other hand, rainfed rice and tropical cereals show a decreasing trend in harvested areas but an increasing trend in the ISIMIP2b dataset. While all datasets agree on increasing trends for all irrigated crops, trends in our growing area datasets are often closer to the harvested area dataset than the trends in the ISIMIP2b dataset.

The description in this section focuses only on global sums of crop-specific growing areas and does not look at differences between the datasets at the country scale or for even smaller regions. Overall, we believe that our new datasets capture trends in crop-specific growing areas better than previous datasets, at least from the global down to the country scale. Spatial crop patterns within countries are highly uncertain, as has been emphasized both by data publications describing such gridded crop-specific datasets, as well as publications analysing and comparing available datasets (e.g. Leff et al.2004; You and Wood2006; Monfreda et al.2008; Portmann et al.2010a; Anderson et al.2015; Joglekar et al.2019; Yu et al.2020; Grogan et al.2022). Spatial patterns of the datasets created with this toolbox are determined to a large extent by the patterns from Monfreda et al. (2008). As pointed out in the documentation accompanying the MON data download, “These data sets are not intended to be interpreted at the individual grid cell level. Although it is presented at five-minute resolution, the best way to use these maps is to compare counties, states, regions, countries, or continents” (Earthstat Team2020). The same holds true for the land use patterns from this toolbox. The toolbox itself does not check whether crops are assigned to locations suitable for their cultivation. The implicit assumption made in the toolbox is that the spatial patterns from the MON dataset (or any alternative dataset used to replace it) can be used to derive suitable growing areas. However, the spatial redistribution algorithm (Sect. 2.5.4) may assign some harvested areas outside of suitable regions if they cannot be fit into the existing cropland within growing areas defined by the MON dataset. The toolbox provides extensive diagnostic outputs in addition to the generated harvested area pattern. Table S1 in the Supplement gives an example of these diagnostics for the spatial disaggregation of harvested areas in Burkina Faso in 2015. Column “redist.” refers to the harvested area relocated by the spatial redistribution algorithm. A high value of redistributed harvested area indicates that harvested areas calculated by Eq. (12) have overshot multiple cropping suitability in many cells of the country. This can be caused by a number of reasons such as (1) changes in the relative importance of crops within a country over time, e.g. an expansion of cash crops or energy crops compared to staple food crops; (2) uneven cropland expansion or abandonment in some parts of the country; and (3) inconsistencies between the year 2000 crop-specific areas in the MON dataset and FAOSTAT. Column “additive” refers to harvested areas that could not be assigned successfully by the iterative redistribution algorithm within the maximum number of 1000 iterations. They are assigned to grid cells using a simple additive approach (Sect. 2.5.4). Column “OOP” refers to harvested areas assigned to grid cells out of pattern, i.e. grid cells where the crop is not grown according to the MON dataset. Harvested areas out of pattern may put crops into regions that are climatically unsuitable. In some cases, up to 100 % of total harvested areas of a crop can be assigned out of pattern. There are two main reasons for this: (1) the MON dataset does not have a pattern for that crop in that country, indicated by “Pattern = FALSE” in the last column of Table S1, and (2) problems caused by the temporal extrapolation of country-level harvested areas before the period covered by FAOSTAT data. The US is a good example of the latter: major present-day crop growing regions in the US had basically no cropland just 200–250 years ago. Since the dataset created by this toolbox covers the period 1500–2017, present-day crop patterns from the MON dataset may lie outside historical cropland areas.

https://gmd.copernicus.org/articles/16/3375/2023/gmd-16-3375-2023-f04

Figure 4Evolution of global mineral fertilizer and manure application over time.

Download

3.4.2 Nitrogen fertilizer and manure

Application of mineral fertilizers in the generated datasets first starts in 1916 with a global sum of 0.06 Tg N yr−1 (teragrams N per year). Fertilizer application increases rapidly from 1 Tg N yr−1 in 1949 to 81–82 Tg N yr−1 in 1985 and then decreases to roughly 69 Tg N yr−1 in 1995 before rising again to 98–99 Tg N yr−1 in 2017 (top row Fig. 4). Total application is slightly higher in the 30 dataset than the 5 dataset, although differences are less than 1 %. A maximum application threshold of 500 kg N ha−1 is applied to fertilizer rates in the toolbox, which reduces total fertilizer application by up to 2.9 Tg N yr−1 (3.4 %) and 2.7 Tg N yr−1 (3.2 %) at 5 and 30, respectively (“removed by application threshold” in Fig. 4). The reduction is slightly lower in the 30 dataset because the maximum application rate is enforced at the target resolution, where some extreme values may average out in the spatial aggregation.

Global manure application to crops increases from 2.3–2.4 in 1860 to 15.9–17.2 Tg N yr−1 in 2017 in the generated datasets (bottom row in Fig. 4). Global manure application is between 4 %–8 % higher in the 30 dataset than the 5 dataset. However, manure application is substantially lower than the global sums reported in the source dataset (Zhang et al.2017a) at both resolutions. A total of 4 %–12 % of annual manure applied to croplands in the source dataset is lost when rescaling application rates “per grid” to rates “per cropland” because there is no cropland according to the HYDE dataset in several grid cells, where the source dataset (Zhang et al.2017b) reports manure application (labelled as “removed by pre-processing” in Fig. 4). Similar to the fertilizer dataset, a maximum application threshold of 100 kg N ha−1 is enforced at the target resolution, which cuts off about 8 %–18 % (4 %–13 %) of the total manure amount from the source dataset at 5 (30) spatial resolution. Finally, the treatment of fallow land – which is a part of total cropland – has large implications for the total amount of applied manure. Assuming no manure application on fallow land, an additional 15 %–21 % (16 %–22 %) of the total annual manure amount from the source dataset is lost at 5 (30) (“cropland as fallow land” in Fig. 4).

https://gmd.copernicus.org/articles/16/3375/2023/gmd-16-3375-2023-f05

Figure 5Changes in mineral fertilizer application areas and application rates over time. Each coloured line represents the cumulative growing area of the crop in relation to the respective fertilizer application rate for a 5-year time slice. Symbols illustrate the area-weighted 50 % (median), 75 %, and 90 % quantiles of application rates. (a, b) Rainfed temperate cereals, (c, d) rainfed maize, and (e, f) rainfed soybean.

Download

The development of global total applied nitrogen over time reflects both changes in the area that nitrogen is applied to and changes in the application rates. Figure 5 illustrates this for mineral fertilizer application for three different CFTs. The chosen CFTs reflect historical trends for different crop types from the LUH2 source dataset: temperate cereals are an example of C3 annual crops in LUH2, maize is a C4 annual crop, and soybean is an N-fixing crop.

Growing areas for rainfed temperate cereals peak during the early 1980s and then decline until the end of the time series. Fertilizer application rates peak around 1985, then decline until the early 2000s, and rise again towards the end of the time series, although they do not return to the highs of the 1980s.

Growing areas for rainfed maize rise continuously between 1950 and the end of the time series except for two small slumps during the early 1980s and early 2000s. Expansion of maize growing areas speeds up towards the end of the time series. Median fertilizer application rates (depicted as circles in Fig. 5) peak at 70 kg N ha−1 during the early 1980s, then decline for about 15 years, and settle around 61–66 kg N ha−1 after 2000. The 75 % and 90 % quantiles of fertilizer application rates show a more or less continuous increase between 1950 and the end of the time series (triangles and + signs in Fig. 5). This suggests that fertilizer use intensified in high-input maize systems over the whole period but stagnated in lower input systems after the 1980s. Fertilizer application rates for both temperate cereals and maize are very similar between the 5 and 30 datasets.

Even though total growing areas for rainfed soybean are significantly lower than those for maize and temperate cereals, they expand at a much faster rate than the other two crops starting from the early 1960s. Maximum fertilizer application rates for soybean are much higher in the 5 dataset than the 30 dataset until the early 1990s, but these high rates are restricted to very small areas and average out in the spatial aggregation to 30. Median fertilizer application rates for soybean show only small differences between the 5 and 30 datasets: they peak around 1995 at 23 kg N ha−1 in both datasets and then decline to 15 and 14 kg N ha−1, respectively, in the last 5-year time slice. The 75 % quantiles of fertilizer application rates rise until the 1990s and then stagnate around 30–32 kg N ha−1 at both spatial resolutions. The 90 % quantiles of application rates rise until the early 2000s and then decline again. Overall, fertilizer application rates for soybean are much lower than the rates for maize and temperate cereals. This makes sense because soybean is capable of nitrogen fixation from the atmosphere and therefore requires less additional nitrogen fertilizer.

3.5 Technical notes

We note that some of the data processing in this toolbox is quite resource-intensive. Memory requirements for some of the scripts exceed 32 GB of RAM, especially in the case of the test application at 5 spatial resolution. Scripts that allow parallel computation on multiple CPUs may exceed 32 GB of RAM per CPU. Some R packages such as the “raster” package can also create a substantial number of temporary files, so care needs to be taken when running on systems with limited disk space assigned to temporary file systems.

We discovered during tests that the result of the shape intersection between GADM polygons and grid cells shows some dependency on the version of the “sf” package used. The results presented in Sect. 3.1 are based on “sf” version 0.8–1. Testing the code with a newer version of “sf” (1.0–3), the shape intersection at 30 spatial resolution returned 12 additional grid cells containing land and assigned two grid cells to a different country. This is because, starting with version 1.0, the “sf” package uses spherical geometry for operations involving geographic coordinates, based on functionality provided by the “s2” package (Dunnington et al.2021). Earlier versions of “sf” use planar geometry for geographic coordinates. There are options in the “sf” package to switch off “s2” functionality but results are still not completely identical to earlier versions of the package.

For the lake and river input, the effect is negligible as global areas covered by lakes and rivers change only by about 1–2 km2 depending on whether spherical geometry is used or not. This is about 2 orders of magnitude smaller than the difference between aggregating gridded GLWD level 3 data and aggregating polygon-based GLWD level 1 and level 2 data.

We also discovered that soil texture classes and soil pH values derived in Sect. 3.2 show some dependency on package versions. This seems to be related to different versions of the “raster” package assigning slightly different coordinates to cells in the source raster dataset. As a result, a different dominant soil texture class may be selected in cells where two texture classes have virtually identical area shares. In our test, this affected one grid cell in the 30 dataset and 419 grid cells in the 5 dataset.

We do not recommend specific software versions to be used with the toolbox but caution that created input datasets may depend not only on changes in the source datasets but also on software versions.

4 Conclusions

Non-climatic input data for TEMs are often based on various data sources that partially contradict each other, and the processing of these data is not trivial and often not well documented. We have developed a toolbox to create basic inputs for LPJmL as one representative of TEMs in a transparent and flexible manner. The toolbox documents the various source datasets and the data processing to combine datasets of multiple types and origins (e.g. gridded, polygon, country statistics) into input datasets for the model. Often, choices need to be made on how to resolve conflicts between datasets, and the best solution may depend on the intended usage. Therefore options to modify these choices have been implemented so that the toolbox can be used to generate tailor-made input data for different objectives. Similarly, we present code of the LandInG toolbox so that data can be newly combined if new datasets become available or time series need to be extended. The utility of the toolbox was demonstrated by using it to create two parallel sets of model inputs at spatial resolutions of 5 and 30. Beyond a simple comparison of the two resolutions, we have also highlighted the effect of some of the user-settable options and of some interchangeable source datasets on the resultant model inputs even at the same spatial resolution.

Code and data availability

The code of the toolbox is distributed through https://github.com/PIK-LPJmL/LandInG (last access: 10 June 2023). The exact code version used for the sample application is archived at Zenodo under https://doi.org/10.5281/zenodo.7802547 (Ostberg2023). The toolbox uses publicly available datasets for which references are provided in the References.

Supplement

The supplement related to this article is available online at: https://doi.org/10.5194/gmd-16-3375-2023-supplement.

Author contributions

SO developed and implemented the toolbox, carried out the test application, analysed toolbox outputs, and wrote the paper. CM and JH contributed data processing components. All co-authors provided comments and guidance on writing the paper.

Competing interests

At least one of the (co-)authors is a member of the editorial board of Geoscientific Model Development. The peer-review process was guided by an independent editor, and the authors also have no other competing interests to declare.

Disclaimer

Publisher’s note: Copernicus Publications remains neutral with regard to jurisdictional claims in published maps and institutional affiliations.

Financial support

This research has been supported by the Defense Advanced Research Projects Agency under the World Modelers programme (grant no. W911NF1910013).

The publication of this article was funded by the Open Access Fund of the Leibniz Association.

Review statement

This paper was edited by Yilong Wang and reviewed by Jinfeng Chang and two anonymous referees.

References

Amante, C. and Eakins, B. W.: ETOPO1 1 Arc-Minute Global Relief Model: Procedures, Data Sources and Analysis, NOAA Technical Memorandum NESDIS NGDC-24, National Geophysical Data Center, NOAA, https://doi.org/10.7289/V5C8276M, 2009. a

Anderson, W., You, L., Wood, S., Wood-Sichra, U., and Wu, W.: An analysis of methodological and spatial differences in global cropping systems models and maps, Glob. Ecol. Biogeogr., 24, 180–191, https://doi.org/10.1111/geb.12243, 2015. a

Batjes, N.: ISRIC-WISE global data set of derived soil properties on a 0.5 by 0.5 degree grid (Version 3.0), Tech. Rep. Report 2005/08, ISRIC – World Soil Information, Wageningen, https://data.isric.org/geonetwork/srv/eng/catalog.search#/metadata/d9eca770-29a4-4d95-bf93-f32e1ab419c3 (last access: 10 June 2023), 2005. a

Batjes, N.: ISRIC-WISE derived soil properties on a 5 by 5 arc-minutes global grid (ver. 1.2), Tech. Rep. Report 2012/01, ISRIC – World Soil Information, Wageningen, with data set, https://data.isric.org/geonetwork/srv/eng/catalog.search#/metadata/82f3d6b0-a045-4fe2-b960-6d05bc1f37c0 (last access: 10 June 2023), 2012. a

Batjes, N.: Harmonized soil property values for broad-scale modelling (WISE30sec) with estimates of global soil carbon stocks, Geoderma, 269, 61–68, https://doi.org/10.1016/j.geoderma.2016.01.034, 2016. a

Beames, P., Lehner, B., and Anand, M.: Global Reservoir and Dam (GRanD) Database Technical Documentation Version 1.3, McGill University, Montreal, QC, Canada, https://www.globaldamwatch.org/grand (last access: 18 December 2019), 2019. a

Biemans, H., Haddeland, I., Kabat, P., Ludwig, F., Hutjes, R. W. A., Heinke, J., von Bloh, W., and Gerten, D.: Impact of reservoirs on river discharge and irrigation water supply during the 20th century, Water Resour. Res., 47, W03509, https://doi.org/10.1029/2009WR008929, 2011. a

Bivand, R., Keitt, T., and Rowlingson, B.: rgdal: Bindings for the “Geospatial” Data Abstraction Library, R package version 1.4-8, https://CRAN.R-project.org/package=rgdal (last access: 3 February 2020), 2019. a

Bondeau, A., Smith, P. C., Zaehle, S., Schaphoff, S., Lucht, W., Cramer, W., Gerten, D., Lotze-Campen, H., Müller, C., Reichstein, M., and Smith, B.: Modelling the role of agriculture for the 20th century global terrestrial carbon balance, Glob. Change Biol., 13, 679–706, https://doi.org/10.1111/j.1365-2486.2006.01305.x, 2007. a

Dunnington, D., Pebesma, E., and Rubak, E.: s2: Spherical Geometry Operators Using the S2 Geometry Library, R package version 1.0.7, https://CRAN.R-project.org/package=s2 (last access: 26 October 2021), 2021. a

Döll, P. and Lehner, B.: Validation of a new global 30-min drainage direction map, J. Hydrol., 258, 214–231, https://doi.org/10.1016/S0022-1694(01)00565-0, 2002 (data available at: https://www.uni-frankfurt.de/45218101/DDM30, last access: 20 October 2021). a, b, c, d, e

Earthstat Team: Harvested Area and Yield for 175 Crops, http://www.earthstat.org/harvested-area-yield-175-crops/ (last access: 26 July 2020), 2020. a

Eilander, D., Winsemius, H. C., Van Verseveld, W., Yamazaki, D., Weerts, A., and Ward, P. J.: MERIT Hydro IHU, Zenodo [data set], https://doi.org/10.5281/zenodo.5166932, , 2020. a, b, c

Eilander, D., van Verseveld, W., Yamazaki, D., Weerts, A., Winsemius, H. C., and Ward, P. J.: A hydrography upscaling method for scale-invariant parametrization of distributed hydrological models, Hydrol. Earth Syst. Sci., 25, 5287–5313, https://doi.org/10.5194/hess-25-5287-2021, 2021. a, b, c

Fader, M., Rost, S., Müller, C., Bondeau, A., and Gerten, D.: Virtual water content of temperate cereals and maize: Present and potential future patterns, J. Hydrol., 384, 218–231, https://doi.org/10.1016/j.jhydrol.2009.12.011, 2010. a, b

FAO: AQUASTAT database, Food and Agriculture Organization of the United Nations, Rome, http://www.fao.org/nr/water/aquastat/data/query/index.html?lang=en (last access: 17 April 2020), 2020a. a, b, c

FAO: FAOSTAT database, Food and Agriculture Organization of the United Nations, Rome, http://www.fao.org/faostat/en/ (last access: 27 January 2020), 2020b. a, b, c, d

FAO/IIASA/ISRIC/ISSCAS/JRC: Harmonized World Soil Database (version 1.21), FAO, Rome, Italy and IIASA, Laxenburg, Austria, https://iiasa.ac.at/web/home/research/researchPrograms/water/HWSD.html (last access: 11 March 2021), 2012. a, b

Fischer, G., Nachtergaele, F. O., Prieler, S., Teixeira, E., Tóth, G., van Velthuizen, H., Verelst, L., and Wiberg, D.: Global Agro‐Ecological Zones (GAEZ v3.0) Model Documentation, IIASA, Laxenburg, Austria and FAO, Rome, Italy, https://www.gaez.iiasa.ac.at/ (last access: 10 July 2023), 2012. a

Frieler, K., Lange, S., Piontek, F., Reyer, C. P. O., Schewe, J., Warszawski, L., Zhao, F., Chini, L., Denvil, S., Emanuel, K., Geiger, T., Halladay, K., Hurtt, G., Mengel, M., Murakami, D., Ostberg, S., Popp, A., Riva, R., Stevanovic, M., Suzuki, T., Volkholz, J., Burke, E., Ciais, P., Ebi, K., Eddy, T. D., Elliott, J., Galbraith, E., Gosling, S. N., Hattermann, F., Hickler, T., Hinkel, J., Hof, C., Huber, V., Jägermeyr, J., Krysanova, V., Marcé, R., Müller Schmied, H., Mouratiadou, I., Pierson, D., Tittensor, D. P., Vautard, R., van Vliet, M., Biber, M. F., Betts, R. A., Bodirsky, B. L., Deryng, D., Frolking, S., Jones, C. D., Lotze, H. K., Lotze-Campen, H., Sahajpal, R., Thonicke, K., Tian, H., and Yamagata, Y.: Assessing the impacts of 1.5 °C global warming – simulation protocol of the Inter-Sectoral Impact Model Intercomparison Project (ISIMIP2b), Geosci. Model Dev., 10, 4321–4345, https://doi.org/10.5194/gmd-10-4321-2017, 2017. a, b, c

GADM: Database of Global Administrative Areas, version 3.6, https://gadm.org (last access: 16 August 2018), 2018. a, b, c, d

Gagolewski, M.: R package stringi: Character string processing facilities, http://www.gagolewski.com/software/stringi/ (last access: 3 February 2020), 2019. a

Grogan, D., Frolking, S., Wisser, D., Prusevich, A., and Glidden, S.: Global gridded crop harvested area, production, yield, and monthly physical area data circa 2015, Sci. Data, 9, 15, https://doi.org/10.1038/s41597-021-01115-2, 2022. a

Harris, I., Osborn, T. J., Jones, P., and Lister, D.: Version 4 of the CRU TS monthly high-resolution gridded multivariate climate dataset, Sci. Data, 7, 109, https://doi.org/10.1038/s41597-020-0453-3, 2020. a, b

Hengl, T., Mendes de Jesus, J., Heuvelink, G. B. M., Ruiperez Gonzalez, M., Kilibarda, M., Blagotić, A., Shangguan, W., Wright, M. N., Geng, X., Bauer-Marschallinger, B., Guevara, M. A., Vargas, R., MacMillan, R. A., Batjes, N. H., Leenaars, J. G. B., Ribeiro, E., Wheeler, I., Mantel, S., and Kempen, B.: SoilGrids250m: Global gridded soil information based on machine learning, PLoS One, 12, e0169748, https://doi.org/10.1371/journal.pone.0169748, 2017. a

Hiebert, J.: udunits2: Udunits-2 Bindings for R, r package version 0.13, https://CRAN.R-project.org/package=udunits2 (last access: 4 February 2020), 2016. a

Hijmans, R. J.: raster: Geographic Data Analysis and Modeling, R package version 3.0-12, https://CRAN.R-project.org/package=raster (last access: 5 February 2020), 2020. a

Hurtt, G. C., Chini, L., Sahajpal, R., Frolking, S., Bodirsky, B. L., Calvin, K., Doelman, J. C., Fisk, J., Fujimori, S., Klein Goldewijk, K., Hasegawa, T., Havlik, P., Heinimann, A., Humpenöder, F., Jungclaus, J., Kaplan, J. O., Kennedy, J., Krisztin, T., Lawrence, D., Lawrence, P., Ma, L., Mertz, O., Pongratz, J., Popp, A., Poulter, B., Riahi, K., Shevliakova, E., Stehfest, E., Thornton, P., Tubiello, F. N., van Vuuren, D. P., and Zhang, X.: Harmonization of global land use change and management for the period 850–2100 (LUH2) for CMIP6, Geosci. Model Dev., 13, 5425–5464, https://doi.org/10.5194/gmd-13-5425-2020, 2020 (data available at: https://luh.umd.edu/, last access: 8 July 2021). a, b, c, d, e

IIASA/FAO: Global Agro-ecological Zones (GAEZv3.0), IIASA, Laxenburg, Austria and FAO, Rome, Italy, http://www.gaez.iiasa.ac.at/ (last access: 17 July 2020), 2012. a, b, c, d

Jägermeyr, J., Gerten, D., Heinke, J., Schaphoff, S., Kummu, M., and Lucht, W.: Water savings potentials of irrigation systems: global simulation of processes and linkages, Hydrol. Earth Syst. Sci., 19, 3073–3091, https://doi.org/10.5194/hess-19-3073-2015, 2015. a, b

Joglekar, A. K. B., Wood-Sichra, U., and Pardey, P. G.: Pixelating crop production: Consequences of methodological choices, PLOS ONE, 14, 1–16, https://doi.org/10.1371/journal.pone.0212281, 2019. a

Klein Goldewijk, K., Beusen, A., Doelman, J., and Stehfest, E.: Anthropogenic land use estimates for the Holocene – HYDE 3.2, Earth Syst. Sci. Data, 9, 927–953, https://doi.org/10.5194/essd-9-927-2017, 2017 (data available at: https://www.pbl.nl/en/image/links/hyde, last access: 25 October 2017). a, b, c, d, e

Koirala, S.: Soil Texture Map, http://hydro.iis.u-tokyo.ac.jp/~sujan/research/gswp3/soil-texture-map.html (last access: 15 March 2021), 2011. a

Lange, S.: Trend-preserving bias adjustment and statistical downscaling with ISIMIP3BASD (v1.0), Geosci. Model Dev., 12, 3055–3070, https://doi.org/10.5194/gmd-12-3055-2019, 2019. a

Leff, B., Ramankutty, N., and Foley, J. A.: Geographic distribution of major crops across the world, Global Biogeochem. Cy., 18, GB1009, https://doi.org/10.1029/2003GB002108, 2004. a

Lehner, B.: HydroSHEDS Technical Documentation Version 1.2, Conservation Science Program, World Wildlife Fund US, Washington, D.C., https://hydrosheds.org (last access: 2 March 2022), 2013. a

Lehner, B. and Döll, P.: Development and validation of a global database of lakes, reservoirs and wetlands, J. Hydrol., 296, 1–22, https://doi.org/10.1016/j.jhydrol.2004.03.028, 2004 (data available at: https://www.worldwildlife.org/pages/global-lakes-and-wetlands-database, last access: 15 August 2018). a, b, c, d

Lehner, B., Verdin, K., and Jarvis, A.: New Global Hydrography Derived From Spaceborne Elevation Data, Eos, Transactions American Geophysical Union, 89, 93–94, https://doi.org/10.1029/2008EO100001, 2008 (data available at: https://www.hydrosheds.org, last access: 18 May 2022). a, b, c, d

Lehner, B., Liermann, C. R., Revenga, C., Vörösmarty, C., Fekete, B., Crouzet, P., Döll, P., Endejan, M., Frenken, K., Magome, J., Nilsson, C., Robertson, J. C., Rödel, R., Sindorf, N., and Wisser, D.: High-resolution mapping of the world's reservoirs and dams for sustainable river-flow management, Front. Ecol. Environ., 9, 494–502, https://doi.org/10.1890/100125, 2011 (data available at: https://www.globaldamwatch.org/grand, last access: 18 December 2019). a, b, c, d, e

Lutz, F., Herzfeld, T., Heinke, J., Rolinski, S., Schaphoff, S., von Bloh, W., Stoorvogel, J. J., and Müller, C.: Simulating the effect of tillage practices with the global ecosystem model LPJmL (version 5.0-tillage), Geosci. Model Dev., 12, 2419–2440, https://doi.org/10.5194/gmd-12-2419-2019, 2019. a

Messager, M. L., Lehner, B., Grill, G., Nedeva, I., and Schmitt, O.: Estimating the volume and age of water stored in global lakes using a geo-statistical approach, Nat. Commun., 7, 13603, https://doi.org/10.1038/ncomms13603, 2016. a, b

Microsoft and Weston, S.: foreach: Provides Foreach Looping Construct, R package version 1.4.7, https://CRAN.R-project.org/package=foreach (last access: 3 February 2020), 2019. a, b

Microsoft and Weston, S.: doParallel: Foreach Parallel Adaptor for the “parallel” Package, R package version 1.0.17, https://CRAN.R-project.org/package=doParallel (last access: 9 June 2022), 2022. a

Monfreda, C., Ramankutty, N., and Foley, J. a.: Farming the planet: 2. Geographic distribution of crop areas, yields, physiological types, and net primary production in the year 2000, Global Biogeochem. Cy., 22, GB1022, https://doi.org/10.1029/2007GB002947 2008 (data available at: http://www.earthstat.org/, last access: 30 October 2018). a, b, c, d, e, f, g

Mueller, N.: Crop-specific global fertilizer application rates from “Closing yield gaps through nutrient and water management”, Version 1, Zenodo, https://doi.org/10.5281/zenodo.5260732, 2012. a, b, c

Mueller, N. D., Gerber, J. S., Johnston, M., Ray, D. K., Ramankutty, N., and Foley, J. A.: Closing yield gaps through nutrient and water management, Nature, 490, 254–257, https://doi.org/10.1038/nature11420, 2012. a, b, c, d

NASA/METI/AIST/Japan Spacesystems and U.S./Japan ASTER Science Team: ASTER Global Digital Elevation Model V003, distributed by NASA EOSDIS Land Processes DAAC, https://doi.org/10.5067/ASTER/ASTGTM.003, 2019. a

Natural Earth: Free vector and raster map data @ naturalearthdata.com, https://www.naturalearthdata.com (last access: 3 July 2020), 2018. a

NOAA National Geophysical Data Center: ETOPO1 1 Arc-Minute Global Relief Model, NOAA National Centers for Environmental Information, https://doi.org/10.7289/V5C8276M, 2009. a, b

OpenStreetMap: Land polygons, https://osmdata.openstreetmap.de/data/land-polygons.html (last access: 3 July 2020), 2020. a

Ostberg, S.: Code for LandInG v.1.0 sample application at 5 arc-minute and 30 arc-minute resolution, Zenodo [code], https://doi.org/10.5281/zenodo.7802547, 2023. a

Pebesma, E.: Simple Features for R: Standardized Support for Spatial Vector Data, R J., 10, 439–446, https://doi.org/10.32614/RJ-2018-009, 2018. a

Pebesma, E.: lwgeom: Bindings to Selected “liblwgeom” Functions for Simple Features, R package version 0.1-7, https://CRAN.R-project.org/package=lwgeom (last access: 4 February 2020), 2019. a

Pierce, D.: ncdf4: Interface to Unidata netCDF (Version 4 or Earlier) Format Data Files, R package version 1.17, https://CRAN.R-project.org/package=ncdf4 (last access: 3 February 2020), 2019. a

Portmann, F. T., Siebert, S., and Döll, P.: MIRCA2000-Global monthly irrigated and rainfed crop areas around the year 2000: A new high-resolution data set for agricultural and hydrological modeling, Global Biogeochem. Cy., 24, GB1011, https://doi.org/10.1029/2008GB003435, 2010a. a, b

Portmann, F. T., Siebert, S., and Döll, P.: MIRCA2000, Version 1.1, Zenodo [data set], https://doi.org/10.5281/zenodo.7422506, 2010b. a, b, c

R Core Team: R: A Language and Environment for Statistical Computing, R Foundation for Statistical Computing, Vienna, Austria, https://www.R-project.org/ (last access: 12 December 2019), 2019. a

Ramankutty, N., Evan, A. T., Monfreda, C., and Foley, J. A.: Farming the planet: 1. Geographic distribution of global agricultural lands in the year 2000, Global Biogeochem. Cy., 22, GB1003, https://doi.org/10.1029/2007GB002952, 2008 (data available at: http://www.earthstat.org/, last access: 31 January 2019). a, b, c

Rost, S., Gerten, D., Bondeau, A., Lucht, W., Rohwer, J., and Schaphoff, S.: Agricultural green and blue water consumption and its influence on the global water system, Water Resour. Res., 44, W09405, https://doi.org/10.1029/2007WR006331, 2008. a, b, c

Schaphoff, S., Heyder, U., Ostberg, S., Gerten, D., Heinke, J., and Lucht, W.: Contribution of permafrost soils to the global carbon budget, Environ. Res. Lett., 8, 014026, https://doi.org/10.1088/1748-9326/8/1/014026, 2013. a, b

Schaphoff, S., Forkel, M., Müller, C., Knauer, J., von Bloh, W., Gerten, D., Jägermeyr, J., Lucht, W., Rammig, A., Thonicke, K., and Waha, K.: LPJmL4 – a dynamic global vegetation model with managed land – Part 2: Model evaluation, Geosci. Model Dev., 11, 1377–1403, https://doi.org/10.5194/gmd-11-1377-2018, 2018a. a, b, c, d

Schaphoff, S., von Bloh, W., Rammig, A., Thonicke, K., Biemans, H., Forkel, M., Gerten, D., Heinke, J., Jägermeyr, J., Knauer, J., Langerwisch, F., Lucht, W., Müller, C., Rolinski, S., and Waha, K.: LPJmL4 – a dynamic global vegetation model with managed land – Part 1: Model description, Geosci. Model Dev., 11, 1343–1375, https://doi.org/10.5194/gmd-11-1343-2018, 2018b. a, b, c, d

Schulzweida, U.: CDO User Guide, Zenodo, https://doi.org/10.5281/zenodo.3539275, 2019. a

Soil Science Division Staff: Soil Survey Manual, USDA Handbook 18, Government Printing Office, Washington, D.C., https://www.nrcs.usda.gov/resources/guides-and-instructions/soil-survey-manual (last access: 10 June 2023), 2017. a

Takaku, J., Tadono, T., Tsutsui, K., and Ichikawa, M.: Validation of `AW3D' Global DSM Generated from ALOS PRISM, in: ISPRS Annals of the Photogrammetry, Remote Sensing and Spatial Information Sciences, vol. III-4, XXIII ISPRS Congress, 12–19 July 2016, Prague, Czech Republic, https://doi.org/10.5194/isprsannals-III-4-25-2016 2016 (data available from Japan Aerospace Exploration Agency (JAXA), https://www.eorc.jaxa.jp/ALOS/en/dataset/aw3d30/aw3d30_e.htm, last access: 10 June 2023). a

UNSD: Standard Country or Area Codes for Statistics Use, United Nations, New York, USA, https://unstats.un.org/unsd/methodology/m49/ (last access: 24 March 2022), 2022. a

USGS EROS: SRTM 1 Arc-Second Global, Earth Resources Observation and Science (EROS) Center, https://doi.org/10.5066/F7PR7TFT, 2014. a

von Bloh, W., Schaphoff, S., Müller, C., Rolinski, S., Waha, K., and Zaehle, S.: Implementing the nitrogen cycle into the dynamic global vegetation, hydrology, and crop growth model LPJmL (version 5.0), Geosci. Model Dev., 11, 2789–2812, https://doi.org/10.5194/gmd-11-2789-2018, 2018. a, b

Vörösmarty, C. J., Fekete, B. M., Meybeck, M., and Lammers, R. B.: Global system of rivers: Its role in organizing continental land mass and defining land-to-ocean linkages, Global Biogeochem. Cy., 14, 599–621, https://doi.org/10.1029/1999GB900092, 2000 (data available at: https://wsag.unh.edu/Stn-30/stn-30.html, last access: 20 October 2021). a, b, c, d

Waha, K., Dietrich, J. P., Portmann, F. T., Siebert, S., Thornton, P. K., Bondeau, A., and Herrero, M.: Multiple cropping systems of the world and the potential for increasing cropping intensity, Global Environ. Chang., 64, 102131, https://doi.org/10.1016/j.gloenvcha.2020.102131, 2020. a, b

Wessel, P. and Smith, W. H. F.: A global, self-consistent, hierarchical, high-resolution shoreline database, J. Geophys. Res.-Sol. Ea., 101, 8741–8743, https://doi.org/10.1029/96JB00104, 1996. a, b

Wessel, P., Luis, J. F., Uieda, L., Scharroo, R., Wobbe, F., Smith, W. H. F., and Tian, D.: The Generic Mapping Tools Version 6, Geochem. Geophy. Geosy., 20, 5556–5564, https://doi.org/10.1029/2019GC008515, 2019. a

Weston, S.: doMPI: Foreach Parallel Adaptor for the Rmpi Package, r package version 0.2.2, https://CRAN.R-project.org/package=doMPI (last access: 4 February 2020), 2017. a

Wu, H., Kimball, J. S., Li, H., Huang, M., Leung, L. R., and Adler, R. F.: A new global river network database for macroscale hydrologic modeling, Water Resour. Res., 48, 2012WR012313, https://doi.org/10.1029/2012WR012313, 2012. a

Yamazaki, D., Ikeshima, D., Tawatari, R., Yamaguchi, T., O'Loughlin, F., Neal, J. C., Sampson, C. C., Kanae, S., and Bates, P. D.: A high-accuracy map of global terrain elevations, Geophys. Res. Lett., 44, 5844–5853, https://doi.org/10.1002/2017GL072874, 2017. a

You, L. and Wood, S.: An entropy approach to spatial disaggregation of agricultural production, Agr. Syst., 90, 329–347, https://doi.org/10.1016/j.agsy.2006.01.008, 2006. a

Yu, H.: Rmpi: Parallel Statistical Computing in R, R News, 2, 10–14, https://cran.r-project.org/doc/Rnews/Rnews_2002-2.pdf (last access: 10 June 2023), 2002. a

Yu, Q., You, L., Wood-Sichra, U., Ru, Y., Joglekar, A. K. B., Fritz, S., Xiong, W., Lu, M., Wu, W., and Yang, P.: A cultivated planet in 2010 – Part 2: The global gridded agricultural-production maps, Earth Syst. Sci. Data, 12, 3545–3572, https://doi.org/10.5194/essd-12-3545-2020, 2020.  a, b

Zhang, B., Tian, H., Lu, C., Dangal, S. R. S., Yang, J., and Pan, S.: Global manure nitrogen production and application in cropland during 1860–2014: a 5 arcmin gridded global dataset for Earth system modeling, Earth Syst. Sci. Data, 9, 667–678, https://doi.org/10.5194/essd-9-667-2017, 2017a. a, b

Zhang, B., Tian, H., Lu, C., Dangal, S. R. S., Yang, J., and Pan, S.: Manure nitrogen production and application in cropland and rangeland during 1860 – 2014: A 5-minute gridded global data set for Earth system modeling, PANGAEA [data set], https://doi.org/10.1594/PANGAEA.871980, 2017b. a, b, c, d, e

Download
Short summary
We present a new toolbox for generating input datasets for terrestrial ecosystem models from diverse and partially conflicting data sources. The toolbox documents the sources and processing of data and is designed to make inconsistencies between source datasets transparent so that users can make their own decisions on how to resolve these should they not be content with our default assumptions. As an example, we use the toolbox to create input datasets at two different spatial resolutions.