README.txt

Execute the files in the following order:
0) Before running the script the neccessary input/output directories need to be specified in the .ksh and .py files. Also the gridtype for remapping need to be created in the data_processing files.
1) f2py -c -m sdii sdii.f90
2) python sdii.py
3) data_processing_part1.ksh
4) f2py -c -m erosivity erosivity.f90
5) python R_factor.py
6) f2py -c -m C_factor C_factor.f90
7) python C_factor.py
8) data_processing_part2.ksh - Part 1
9) f2py -c -m erosion erosion.f90
10) python erosion.py 
11) data_processing_part2.ksh - Part 2
12) python erosion_per_PFT.py
13) data_processing_part2.ksh - Part 3


When using this erosion model please cite the paper Naipal et al. (2019)

The calculation of the S and K factors is not included here. For more information on how to calculate those factors see NAipal et al. (2015) in GMD. 
Data needed to run the model can be obtained upon request.