Skip to content

Data download

Giacomo Falchetta edited this page Sep 21, 2023 · 10 revisions

Downloading the database

_3Q9bsnBuPZcg-ypAVKUOXxCZPro-FFeXuOyGq4CqMxi1gjciSvJoPMKwwYj4pa6rqjXpstRV1rXr06wnmhAauXdQnDLj-HIIddHQQn91FNsHytOyO1oBg=s2048

The data to run the RE4AFAGRI platform is partially shared among models, and partially model-specific. For this reason, and to enable users to selectively run one or more of the RE4AFAGRI platform models, we make four distinct databases available, one for each of the four models.

The RE4AFAGRI database to run the platform is avaiable at the official Zenodo repository of the RE4AFAGRI platform.

  • For WaterCROP: the input data allows running the model for the entire sub-Saharan African region.

  • For M-LED: the input data are pre-prepared for the following countries.

    • Zambia
    • Rwanda
    • Nigeria
    • Zimbabwe
    • Kenya

Note that for M-LED also an automatic download option exists: it is possible to set the parameter download_data parameter (row 14 of MLED_hourly.r) to TRUE, which will automatically download and unzip the M-LED database from Zenodo for the specified country run. Note: after the first run and download the parameter should switched back to FALSE to avoid re-downloading the whole database at the next model run, unless the new run is carried out on another country, in which case the country-specific database will be downloaded for the new country.

Finally, the examples and exercises page contains information useful to prepare input data for M-LED for additional countries.

  • For OnSSET: the input data are pre-prepared for the country study of Zambia and the examples and exercises page contains information useful to prepare input data for OnSSET for additional countries.

  • For NEST: the input data are pre-prepared for the country study of Zambia and the examples and exercises page contains information useful to prepare input data for NEST for additional countries.

Linking the database folder path into the models' source code

Once downloaded, the database(s) (a zipped folder for each of the four models) should be extracted. The exact full path to the database (e.g. C:/Users/[yourusername]/Documents/RE4AFAGRI_database/... should be parsed onto the different model at the following positions:

  • For WaterCROP: at lines 1, 4, 21, 55, 65, 68 - and subsequently for each crop - and 785 of the 'WaterCROP1_ETactual.mat' file at lines 9, 14, 20, 94 of the 'WaterCROP2_Irrigation_requirements.mat' file
  • For M-LED: at line 10 of the MLED_hourly.R file, defining the db_folder parameter
  • For OnSSET: include the OnSSET replication data folder unzipped in onsset\onsset_replication (more details in the OnSSET Wiki page)
  • For NEST: The database only raw data needed in the pre-processing phase. The data needed to run the model is already included in this Github repository