Firstly, clone or download the repository. Now run all the following scripts, in order:
- Sample points for each county:
src/01-sample-points.R
- Download SSURGO variables (bulk density, SOC, etc.):
src/02-download-ssurgo.R
- Download top daily 9 km resolution Volumetric Water Content (VWC) raster files from Crop-CASMA:
src/03-download-vwc.R
- Preprocess VWC data:
src/04-preprocess-vwc.R
- Download daily precipitation data from NASA POWER:
src/05-download-precipitation.R
- Download evapotranspiration data from GEE:
src/06-download-evapotranspiration.R
Disclaimer: This part needs a lot of additional dependencies (python, rgee, etc.). Follow the instructions contained on the script to setup everything you need.
- Merge all data:
src/07-merge-data.R
- Run a linear mixed model:
src/08-model.R
Tested on:
- Windows 10
- Ubuntu 22