Codes for the paper "Quantifying the impacts of DEM uncertainty on clear-sky surface shortwave radiation estimation in typical mountainous areas"
Here we share two python codes to calculate DSR and NSR on sloping terrain.
1. Calculate horizontal direct and diffuse radiation using predictHorizon.py
The inputs are solar angles, dem, aod, water vapor, and albedo.
The random forest model (horizonDirDif.pkl, a little large in memory space) could be obtained by contacting ma_yichuan@whu.edu.cn.
2. Calculate the DSR and NSR over sloping terrain using TC.py
The inputs are solar angles, direct and diffuse radiation from 1, and topographic parameters.
Note that topographic parameters can be derived from DEM data using gdal (https://gdal.org/) and TopoToolbox (https://topotoolbox.wordpress.com/).
We are now solving the technical issues in generating DSR and NSR products in mountains, and limited technical support can be available.
If you have any problems, please feel free to contact Yichuan Ma at ma_yichuan@whu.edu.cn.