First, the measured radiation (as provided by each station that measured both ISWR, TA and RH) is interpolated over the domain:
Then the effects of the terrain on the radiation field are accounted for. These are twofold: first the topography can cast shade on some parts of the domain and second some radiation can be reflected by the terrain on some other cells (see Radiation balance).
This handles the shading of cells by the topography. The position of the sun is computed and the cells that don't have a direct view of the sun only receive the diffuse fraction of the global radiation while the cells with direct view of the sun receive both the direct and diffuse components. Please keep in mind that when looking for the horizon (in order to compute shading), the search will stop at cells that are set to nodata in the dem. This means that nodata cells on the border of the domain of interest will prevent searching for shading outside of the domain while nodata cells within the domain should be as much as possible avoided.
The second effect is computed when the key Terrain_Radiation is set to true (by default it is set to false) in the [EBalance] section of the configuration file and is handled by a choice of various algorithms, as chosen in the configuration file with the key Terrain_Radiation_Method that can take any of the following choices: