This is the code base for the paper "Biome-specific climatic space defined by temperature and precipitation predictability".
The code structures are:
- Folder "analyses" stores all the preliminary analysis output pdf files
- Folder "data" stores all the input data and processed data
- Folder "functions" stores all the source code to generate the analyses
- Folder "Plots" stores all the manuscript figures
- Folder "R" stores the setting scripts, i.e. variables and settings that should have a global attribute.
- Folder "Tables" stores all the manuscript tables
- The script "Run_program.R" initiate the analysis
There are several issues you should be aware of before initiating the simulation:
- The raw data should be downloaded first and put into the correct directory "data/raw_data". There is a function to download the data but it just prints out where the data is and what name you need to download instead of downloading the data for you.
- Some functions take some time to run (already commented with # of hours needed in the program).
- For the functions that are time-consuming to run, I performed data analysis using all climate data first, but later decided to only use part of the data (e.g. ~ 1000 data points per biome rather than > 10000 per biome) selected randomly as the results don't really differ that much.
- The entire repository includes all functions used in performing the analyses - many of the functions are no longer needed for the manuscript, but may be of interests to some other studies.
This repository is maintained by Mingkai Jiang ([email protected]).