the Creative Commons Attribution 4.0 License.

the Creative Commons Attribution 4.0 License.

# Effects of complex terrain on the shortwave radiative balance: a sub-grid-scale parameterization for the GFDL Earth System Model version 4.1

### Sergey Malyshev

### Nathaniel Chaney

### David Paynter

### Raymond Menzel

### Elena Shevliakova

Parameterizing incident solar radiation over complex topography regions in Earth system models (ESMs) remains a challenging task. In ESMs, downward solar radiative fluxes at the surface are typically computed using plane-parallel radiative transfer schemes, which do not explicitly account for the effects of a three-dimensional topography, such as shading and reflections. To improve the representation of these processes, we introduce and test a parameterization of radiation–topography interactions tailored to the Geophysical Fluid Dynamics Laboratory (GFDL) ESM land model. The approach presented here builds on an existing correction scheme for direct, diffuse, and reflected solar irradiance terms over three-dimensional terrain. Here we combine this correction with a novel hierarchical multivariate clustering algorithm that explicitly describes the spatially varying downward irradiance over mountainous terrain. Based on a high-resolution digital elevation model, this combined method first defines a set of sub-grid land units (“tiles”) by clustering together sites characterized by similar terrain–radiation interactions (e.g., areas with similar slope orientation, terrain, and sky view factors). Then, based on terrain parameters characteristic for each tile, correction terms are computed to account for the effects of local 3D topography on shortwave radiation over each land unit. We develop and test this procedure based on a set of Monte Carlo ray-tracing simulations approximating the true radiative transfer process over three-dimensional topography. Domains located in three distinct geographic regions (Alps, Andes, and Himalaya) are included in this study to allow for independent testing of the methodology over surfaces with differing topographic features. We find that accounting for the sub-grid spatial variability of solar irradiance originating from interactions with complex topography is important as these effects led to significant local differences with respect to the plane-parallel case, as well as with respect to grid-cell-scale average topographic corrections. We further quantify the importance of the topographic correction for a varying number of terrain clusters and for different radiation terms (direct, diffuse, and reflected radiative fluxes) in order to inform the application of this methodology in different ESMs with varying sub-grid tile structure. We find that even a limited number of sub-grid units such as 10 can lead to recovering more than 60 *%* of the spatial variability of solar irradiance over a mountainous area.

- Article
(27871 KB) - Full-text XML
- BibTeX
- EndNote

The presence of three-dimensional topography exerts an important control on the amount of solar radiation received by land. Over complex terrain, the incoming solar beam not only undergoes scattering and absorption within the atmospheric column but is also further modulated by the relative orientation of land surfaces and the potential shading and reflection effects of neighboring slopes (Sirguey, 2009; Lenot et al., 2009; Lamare et al., 2020; Picard et al., 2020). The effect of surface roughness was recently shown to have important effects over snow-covered surfaces, leading to a net decrease in surface reflectivity (Larue et al., 2020).

Together, these effects lead to a spatially heterogeneous distribution of the radiative fluxes received by the surface. In turn, this heterogeneity can have important consequences for the local energy and water balance and interact with other spatially varying land processes such as evaporation (Brutsaert, 2013), snow melting (McCabe and Clark, 2005; Bales et al., 2006; Sirguey et al., 2009), and vegetation dynamics (Granger and Schulze, 1977; Gu et al., 2002).

Representing these processes at increasingly fine scales is the goal of state-of-the-art land components of Earth system models (ESMs) (i.e., land models). However, global circulation models (GCMs) routinely compute shortwave radiative fluxes based on plane-parallel (PP) radiative transfer schemes, which do not account for the effect of topography. This discrepancy poses a challenge for adequately capturing sub-grid-scale processes in land models.

Several models have been proposed to account for the interaction of downward solar irradiance with complex topography, accounting for slope orientation and shading effects (Isard, 1986; Hay and McKay, 1985; Duguay, 1993) and the effect of surrounding slopes (Dozier, 1980; Dubayah et al., 1990; Dozier and Frew, 1990).

A recently developed radiation parameterization was developed to predict radiative fluxes over mountainous terrain via multiple linear regression (Chen et al., 2006; Lee et al., 2011). This approach (henceforth termed LLH) links flux corrections over mountains to a set of grid-cell-average terrain variables, which summarize the three-dimensional nature of the land surface and are used as predictors for shortwave fluxes. The LLH parameterization for shortwave radiation over mountains has been implemented in Global Climate Models (GCMs) and the Weather Research and Forecasting (WRF) model; it has been extensively tested over the Tibetan Plateau and the western United States (Liou et al., 2007; Essery and Marks, 2007; Gu et al., 2012; Lee et al., 2013, 2015, 2019).

However, it is expected that sub-grid variability of these topographic effects may play a relevant role given the heterogeneous nature of surface reflectivity and topographic features at scales smaller than the typical GCM grid cell. The importance of accounting for sub-grid-scale topography when correcting shortwave radiative fluxes over mountains was recently pointed out by an application of LLH to the DOE E3SM Exascale Earth System Model, varying model resolution over a range of scales relevant for land processes (Hao et al., 2021).

This problem is especially relevant since in recent years the development of land models has increasingly been focused on the description of sub-grid variability of terrain properties (Tesfa and Leung, 2017; Chaney et al., 2018). For example, in the current iteration of the Geophysical Fluid Dynamics Laboratory (GFDL) land model, this objective is achieved by summarizing grid cell heterogeneity in sets of land units (termed “tiles”) characterized by approximately homogeneous physical features (Shevliakova et al., 2009; Milly et al., 2014; Zhao et al., 2018; Dunne et al., 2020), including elevation, land cover, soil properties, and other environmental variables (Chaney et al., 2018). In the GFDL land model, such a sub-grid representation has not been yet tailored to describing the interaction of shortwave radiation with topography. The objective of this work is bridging this discrepancy and developing a sub-grid parameterization for the effects of radiation over complex topography in the GFDL land model.

The sub-grid model structure is constructed using a hierarchical multivariate clustering approach (Chaney et al., 2016, 2018) to partition land domains in a set of clusters or tiles. Tiles are here defined as land units characterized by homogeneous topographic effects with respect to downward shortwave radiation. Thus, the terrain variables used for clustering land surfaces encode the physical mechanisms determining the spatial variability of radiative fluxes, such as shading and reflection from nearby slopes.

This clustering approach provides a parsimonious way to include high-resolution terrain information in global ESM simulations while limiting the number of sub-grid element employed. For each terrain tile, characterized by homogeneous terrain properties, we then develop an average correction to the downward solar fluxes to account for the effects of local topography. This approach thus bridges the gap between the scale at which radiation and other physical processes are represented in the GFDL ESM and allows us to study how the sub-grid heterogeneity of these processes impacts the long-term evolution of the coupled physical system.

In the following, we present this new methodology and test it over three mountainous sites located in different geographic regions (Alps, Andes, Himalayas), showing how model resolution and number of tiles impact the performance of the methodology. Given the wide range of spatial scale involved in the description of sub-grid topography, we evaluate the performance of the parameterization across scales, focusing in particular on the possible nonlinear dependence of incident radiation on topographic features and validating the model over independent sites.

The paper is organized as follows: we first review the existing parameterization for radiation over rugged terrain (Lee et al., 2011) and tailor it to our problem. This in turn requires training a model to predict topography-driven corrections for radiative fluxes based on terrain properties. Finally, we present the clustering algorithm used to divide the domain study in tiles, so as to compute local flux corrections over homogeneous regions.

The approach is then validated using different domains for independent training and testing of the methodology (Sect. 3.2), exploring the effects of terrain resolution and possible consequences of nonlinear radiation–topography interactions. Finally, we explore how different tiling structures with increasing resolution improve the representation of the spatially varying radiation fields over mountains (Sect. 3.4). We close by discussing assumptions and limitations of the proposed methodology and suggesting future developments.

In order to properly account for the effects of land heterogeneity on the radiative transfer in ESMs, key variables must be obtained from high-resolution terrain datasets and properly summarized in order to capture their fine-scale effects on shortwave radiation fluxes. To this end, here we start by defining the radiative and terrain variables used to predict radiation over 3D topography. Then, we describe (i) the Monte Carlo ray-tracing algorithm used for training and testing the predictive model, (ii) the terrain-clustering algorithm used to classify land units based on the local topographic effects on radiation fluxes, and (iii) the predictive models used to link terrain properties to radiative fluxes in each land cluster. Together, these three steps provide a framework for computing fine-scale corrections to the shortwave radiation received by sub-grid land units in the GFDL land model.

## 2.1 Characterizing shortwave radiation over mountainous terrain

A parameterization explicitly accounting for the effects of 3D topography on the shortwave radiation budget was proposed by Lee et al. (2011) based on the results of Monte Carlo photon-tracing simulations (Chen et al., 2006). Here we adopt a similar approach and, following the formalism introduced by Lee et al. (2011), classify the shortwave radiation incident at a target point at the surface into five distinct components: the direct and diffuse downward solar fluxes (*F*_{dir} and *F*_{dif}), and their terrain-reflected counterparts (*F*_{rdir}, *F*_{rdif}), which represent, respectively, direct beam or diffuse photons reaching the target site after a single reflection from neighboring terrain. Finally, a coupled flux component (*F*_{coup}) consists of photons first reflected by the surface and then either back-scattered by the atmosphere or reflected multiple times by the surface before reaching the target site. For a flat surface ${F}_{\mathrm{rdir}},{F}_{\mathrm{rdif}}=\mathrm{0}$, while ${F}_{\mathrm{dir}},{F}_{\mathrm{dif}},{F}_{\mathrm{coup}}\ne \mathrm{0}$ in general. We note that in the GFDL land model, diffuse radiation received by a flat surface with albedo *α* (${F}_{\mathrm{dif},[\mathrm{LM}\mid \mathit{\alpha}]}$) corresponds here to the sum of *F*_{dif} and *F*_{coup}. We note that these quantities can be computed separately by first computing the diffuse flux corresponding to a black surface (${F}_{\mathrm{dif},[\mathrm{LM}\mid \mathit{\alpha}=\mathrm{0}]}$), in which case the coupled flux is zero, and by then computing the coupled flux for the actual land surface as ${F}_{\mathrm{coup}}={F}_{\mathrm{dif},[\mathrm{LM}\mid \mathit{\alpha}]}-{F}_{\mathrm{dif},[\mathrm{LM},\mathit{\alpha}=\mathrm{0}]}$. Conversely, the diffuse flux can be obtained as ${F}_{\mathrm{dif}}={F}_{\mathrm{dif},[\mathrm{LM}\mid \mathit{\alpha}=\mathrm{0}]}$. Based on this formalism, the normalized flux differences between the traditional plane-parallel (PP) case and the topography-aware case (3D) are the object of our analysis, which can be used to correct the shortwave radiative balance in ESMs. Following Lee et al. (2011), these quantities are expressed as follows.

Here the direct-reflected and diffuse-reflected components are normalized with respect to the corresponding non-reflected flux component since they are equal to zero in the plane-parallel case (Lee et al., 2011). These quantities are defined in Eq. (1) for a given surface albedo value. While direct and diffuse component are independent of surface albedo, the reflected flux components are linearly dependent on albedo. Finally, the coupled flux is nonlinearly dependent on surface albedo. A schematic representation of these flux components is reported in Fig. 1. Predicting these five *f*_{i} terms over land tiles representing heterogeneous terrain properties is the objective here. To this end, a predictive model linking the *f*_{i} terms to tile terrain properties is necessary. To train such a model, we use ray-tracing simulations, which are discussed next.

## 2.2 A Monte Carlo ray-tracing algorithm

Due to the complex interactions involved, topographic effects on shortwave radiation are generally studied based on Monte Carlo (MC) ray-tracing techniques, which approximate the three-dimensional radiative transfer process by tracking the fate of a large number of photons (Miesch et al., 1999; Chen et al., 2006; Mayer et al., 2010).

Here, in order to develop a predictive model for the 3D radiation correction terms, we employed a MC algorithm (sometimes referred to as photon-tracing or ray-tracing algorithm) to approximate the true physics of radiation–topography interactions. These high-resolution simulations are used to calibrate the predictive models for topographic effects over each tile and to validate the proposed parameterization. The MC scheme explicitly describes the interaction of downwelling shortwave radiation with a 3D surface corresponding to a region characterized by complex topography. The algorithm was implemented in a software package, which is made available online (Zorzetto, 2022a). The MC method has been widely used to study radiation interaction with 3D surfaces (Chen et al., 2006; Lee et al., 2011; Mayer, 2009; Mayer et al., 2010; Villefranque et al., 2019; Larue et al., 2020). The MC model adopted here broadly follows previous models developed by Chen et al. (2006) and Mayer (2009).

In our MC algorithm, photons are randomly released at the top of atmosphere (TOA) and travel in a direction determined by the Sun's zenith *θ*_{0} and azimuth *ϕ*_{0} angles. After a path of random length, which depends on the optical properties of the medium, the photon encounters scattering or absorption based on the single-scattering albedo properties of the atmospheric constituents (Fu and Liou, 1992; Liou, 2002). In the present simulation, we used for each site optical properties computed from the RRTMGP radiation code (Pincus et al., 2019) using the GFDL AM4 model (Zhao et al., 2018). We note that the Monte Carlo model is run offline, prescribing the atmospheric profile and solar position in each model run. The atmospheric column used in the model is composed of 34 layers characterized by optical properties, which encode the absorption and Rayleigh scattering of photons by gas molecules. We limit our analysis to aerosol-free and clear-sky conditions, similar to previous studies (Chen et al., 2006; Lee et al., 2011). Therefore, atmospheric properties are completely determined by optical depths and single-scattering albedo at each level (Liou, 2002). The lower boundary of the simulation domain is derived from high-resolution (90 m) terrain model derived from the Shuttle Radar Topography Mission (SRTM) dataset (Farr et al., 2007). SRTM elevation fields are used to construct a three-dimensional surface characterized by triangular mesh elements characterized by uniform albedo and Lambertian reflection. In the following we refer to “pixel” as the image elements of the high-resolution input digital elevation maps, to clarify the difference with land model grid cell and land model sub-grid units, termed “tiles” in the following.

In each MC simulation, photons are tracked from the TOA until they are absorbed or leave the simulation domain. For each photon, interactions with atmospheric constituents (scattering or absorption) and with land surface elements (absorption or reflection) are used to characterize the nature of radiation incident over surface elements. Tracking the path of each photon, the downward irradiance is then decomposed into the five flux terms introduced in Sect. 2.1. If *E*_{0} is the radiation incident at the TOA with a cosine of the zenith angle *μ*_{0}=cos *θ*_{0}, then the horizontal distribution of solar irradiance received by the land surface is given by (Mayer, 2009)

where *w*_{i} is the energy of the *i*th incident photon, *N* is the total number of photons tracked in the simulation over a domain with area *A*, and ${N}_{k,l}^{\left(s\right)}$ is the number of photons absorbed by the surface within grid cell (*k*,*l*) with area horizontal plane surface area *A*_{k,l}. Photons are released with unit energy at the TOA and lose a fraction of this energy through absorption in each atmospheric layer (Mayer, 2009) or through absorption at the ground. Therefore, Eq. (2) evaluates the spatial distribution of solar irradiance based on the density of photons that are absorbed at the surface. While a 3D mesh is used in the Monte Carlo simulations, the area of the cell *A*_{(k,l)} is defined as the area of the cell on the horizontal plane. Equation (2) expresses the radiation received by a single land surface cell as a fraction of the radiation flux at the top of the surface *E*_{0} by summing the energy *w*_{i} of all the photons absorbed by the surface over that area. Since the interactions of each photon are tagged (e.g., keeping track of atmospheric scattering and any previous reflections at the surface) the radiation received can be directly classified in one of the five flux components, as defined in Eq. (1).

For two independent domains located in the Alps and Peru (Fig. 2), the MC calculations were repeated for six solar zenith angle values ($\mathrm{cos}{\mathit{\theta}}_{\mathrm{0}}\in \left\{\mathrm{0.1},\mathrm{0.25},\mathrm{0.4},\mathrm{0.55},\mathrm{0.7},\mathrm{0.85}\right\}$), four solar azimuth angles (${\mathit{\varphi}}_{\mathrm{0}}\in \left\{\mathrm{0},\mathit{\pi}/\mathrm{2},\mathit{\pi},\mathrm{3}\mathit{\pi}/\mathrm{2}\right\}$), and a uniform surface reflectivity value set to *α*_{s}=0.3. While only two domains are used for MC calculations due to the computational expense of this procedure, an additional domain located in high mountain Asia (Fig. 2) is used to further test the results of the spatial clustering over areas with different topographic features.

## 2.3 Predicting radiative fluxes over complex terrain

Over mountainous regions, the local irradiance at the surface can exhibit significant departures from its areal-average value at spatial scales routinely resolved in ESMs due to the complexity of topography and surface properties. In order to develop a simple parameterization to explain the magnitudes of these departures over mountains areas, we need predictor variables encoding the interaction between downward radiation and topographic features. For this purpose, here we define a set of relevant variables following previous work by Chen et al. (2006) and Lee et al. (2011). The terrain variables used to predict downward fluxes are (i) the sky view factor *V*_{d}, which represents the ratio of diffuse sky irradiance at a point on an unobstructed horizontal surface under the assumption of isotropic diffuse radiation (Dozier and Frew, 1990; Helbig et al., 2009); (ii) the terrain configuration *C*_{t}, which quantifies the contribution to the irradiance at a point originated by reflections from surrounding mutually visible slopes; and (iii) the solar incident angle *μ*_{i}, which is the angle between the direct solar beam and the normal to the surface. These terrain variables are derived from the Shuttle Radar Topography Mission (SRTM, Farr et al., 2007) high-resolution (90 m) terrain information.

In order to compute the sky view factor, we use the rapid procedure proposed by Dozier and Frew (1990), whereby the unobstructed fraction of sky hemisphere is approximated as

for a point with slope *θ*_{s}, aspect *ϕ*_{s}, and horizon angle *H*_{ϕ} (i.e., angular distance between zenith and local horizon along the generic azimuth direction *ϕ*). The terrain configuration, which quantifies the reflected radiation received by surrounding slopes in direct sight, can then be obtained as ${C}_{\mathrm{t}}\simeq (\mathrm{1}+\mathrm{cos}{\mathit{\theta}}_{\mathrm{s}})/\mathrm{2}-{V}_{\mathrm{d}}$ following the approach by (Dozier and Frew, 1990).

While fields of *V*_{d} and *C*_{t} can be computed offline for any given elevation map, the Sun's incidence angle on a surface does depend on the Sun's position through the local zenith and azimuth angles (*θ*_{0},*ϕ*_{0})

where topographic information is encoded in the two terms ${S}_{sa}=\mathrm{sin}{\mathit{\theta}}_{\mathrm{s}}\mathrm{sin}{\mathit{\varphi}}_{\mathrm{s}}/\mathrm{cos}{\mathit{\theta}}_{\mathrm{s}}$ and ${C}_{sa}=\mathrm{sin}{\mathit{\theta}}_{\mathrm{s}}\mathrm{cos}{\mathit{\varphi}}_{\mathrm{s}}/\mathrm{cos}{\mathit{\theta}}_{\mathrm{s}}$. Here *μ*_{i} is the cosine of the solar incidence angle (i.e., angle between the incoming direct light beam and the normal to the land surface), while *μ*_{0} is the cosine of the solar zenith angle (i.e., the incidence angle with respect to a horizontal plane). Additionally, for parameterizing the effect of topography on diffuse radiation, we use a standardized elevation ${h}_{n}=\left(h-{\mathit{\mu}}_{h}\right)/{\mathit{\sigma}}_{h}$ obtained by normalizing elevation based on its grid cell average *μ*_{h} and standard deviation *σ*_{h}.

For the purpose of parameterizing solar fluxes, we divide these terrain variables by the local terrain slope obtaining the normalized variables ${\stackrel{\mathrm{\u0303}}{\mathit{\mu}}}_{i}={\mathit{\mu}}_{i}/\mathrm{cos}{\mathit{\theta}}_{\mathrm{s}}$, ${\stackrel{\mathrm{\u0303}}{V}}_{\mathrm{d}}={V}_{\mathrm{d}}/\mathrm{cos}{\mathit{\theta}}_{\mathrm{s}}$, and ${\stackrel{\mathrm{\u0303}}{C}}_{\mathrm{t}}={C}_{\mathrm{t}}/\mathrm{cos}{\mathit{\theta}}_{\mathrm{s}}$ as recommended by (Lee et al., 2013). Note that while ${V}_{\mathrm{d}}\in [\mathrm{0},\mathrm{1}]$, the ratio ${\stackrel{\mathrm{\u0303}}{V}}_{\mathrm{d}}={V}_{\mathrm{d}}/\mathrm{cos}{\mathit{\theta}}_{\mathrm{s}}$ can sometimes be larger than 1.
In previous work (Lee et al., 2011) these terrain predictors are averaged over an area representative of an entire model grid cell and used as predictors to derive average correction terms *f*_{i} for the five flux components introduced in Sect. 2.1. Here, high-resolution fields of these predictor variables are first computed based on the original 90 m digital elevation maps. These fields are then employed to inform the partitioning of the land domain into a set of tiles for which we expect topography to have a similar effect on radiation. This step is achieved using a hierarchical clustering methodology described next. Based on this partitioning, relations to predict the topographic effects on radiation (the *f*_{i}'s) will be applied to each tile independently.

## 2.4 Hierarchical clustering of terrain properties

In order to capture the spatial variability of radiative fluxes, here we employ a hierarchical multivariate clustering approach (HMC) which was recently introduced to study the role of heterogeneity in hydrological and land models (Chaney et al., 2016, 2018). Here we tailor HMC to the case of shortwave radiative fluxes by performing the land clustering based on terrain properties (namely ${\stackrel{\mathrm{\u0303}}{\mathit{\mu}}}_{i}$, ${\stackrel{\mathrm{\u0303}}{V}}_{\mathrm{d}}$, and ${\stackrel{\mathrm{\u0303}}{C}}_{\mathrm{t}}$), which are known to modulate the downwelling radiation over mountains as discussed in the previous section.

The land fraction of the study sites, which are chosen to represent an ESM grid cell that is typical in size, is first divided into a maximum of three components: soil, glacier, and lake. The soil fraction is then subdivided into a set of tiles characterized by homogeneous terrain properties relevant for capturing the effects of topography on radiative transfer. Additionally, lake and glacier areas, where present, are treated as individual separate tiles. We note that in the domains selected for this study, lake and glacier areas constitute a small fraction of the total grid cell area. When applying the methodology to areas where glaciers cover a large fraction of the grid cell, it may be useful to also partition glacier areas into multiple clusters. This can be done following the same methodology described here, since for the purpose of radiation–terrain interactions the only relevant parameter would be the average albedo of each cluster (land or glacier). In our approach, the land clustering is based on four terrain variables: normalized sky view factor, terrain configuration, *S*_{sa}, and *C*_{sa}. Note that these variables are independent of the Sun's position. Once the direction of the incoming beam is given (*ϕ*_{0} and cos *θ*_{0}), average values of *S*_{sa} and *C*_{sa} over any given tile uniquely identify the solar incident angle for each point on the land surface by means of Eq. (4).

A conceptual summary of this clustering procedure is described in Fig. 3. The digital elevation map (Fig. 3a) is used to compute the drainage network (Fig. 3e) necessary to partition the domain in basins (Fig. 3b, c) based on a threshold area of 1×10^{5}m^{2}. Basins are in turn subdivided into hillslopes (Fig. 3f) following Chaney et al. (2018): each basin is divided into up to three contiguous hillslope elements, corresponding to the left side, right side, and headwaters.

Then, hillslope elements are aggregated into *k* “characteristic hillslopes” via k-means clustering (MacQueen et al., 1967) in the four-dimensional space of the variables ${\stackrel{\mathrm{\u0303}}{V}}_{\mathrm{d}}$, ${\stackrel{\mathrm{\u0303}}{C}}_{\mathrm{t}}$, *S*_{sa}, and *C*_{sa}. This enables us to obtain land units characterized by similar radiation–topography interactions. Figure 3g shows the spatial distribution of these characteristic hillslope clusters for the case *k*=5.

Finally, each of these *k* land units is further partitioned into *p* sub-units by a second application of the k-means clustering algorithm based on the four variables ${\stackrel{\mathrm{\u0303}}{V}}_{\mathrm{d}}$, ${\stackrel{\mathrm{\u0303}}{C}}_{\mathrm{t}}$, *S*_{sa}, and *C*_{sa}. In Fig. 3h we show the result of this procedure, which yields 25 tiles in this example.

In this application any areas covered by glaciers or lakes are treated as separate land units. Therefore, in the current configuration the number of tiles (*n*_{t}) used to describe land heterogeneity within a single land model grid cell varies between *k*⋅*p* and $k\cdot p+\mathrm{2}$ depending on the presence of lake and glacier units. The reason for the first step (subdivision of land in characteristic hillslopes) originates from the desire of partitioning land in hydrologically coherent units. In the context of shortwave radiation received by land, it is important to understand what the effects and the benefits of this multilevel clustering are. Therefore, we will test the methodology for different tile configurations over the same domains.

A natural test for the ability of the tiled grid to reproduce the actual spatial distribution of solar radiation can be performed as follows. We here test the results for multiple HMC configurations obtained by varying the number of characteristic hillslopes (*k*), as well as the number of land units within each characteristic hillslope (*p*). For illustration purposes, we consider the following two cases: a fixed value of *k*=5 and a varying *p* and the opposite (varying *k*, setting *p*=5). This experiment leads to a set of grid configurations with a number of tiles per grid cell varying from 5 to 1000, with different weights given to the first level (partitioning of land in hillslopes) and the second level, in which each characteristic hillslope is further subdivided into *p* homogeneous land units contributing to the overall number of tiles *n*_{t}. This experiment thus elucidates the relative performance of the two different levels of the hierarchical clustering approach in capturing the spatial heterogeneity of the domain.

Therefore, based on this procedure, the land model grid cells are subdivided into a number of tiles *n*_{t}. A maximum of two additional tiles can be included representing lake and a glacier areas if these are present in a given grid cell. Glacier boundaries are determined using the GLIMS database (Raup et al., 2007). Each tile is characterized by statistically homogeneous values of the variables of interest for 3D radiative transfer. Over each tile $t=\mathrm{1},\mathrm{\dots},{n}_{\mathrm{t}}$, we then compute the average value of each predictor variable. For a generic variable $\mathrm{\Theta}\in \left\{{\stackrel{\mathrm{\u0303}}{V}}_{\mathrm{d}},{\stackrel{\mathrm{\u0303}}{C}}_{\mathrm{t}},{S}_{sa},{C}_{sa}\right\}$ we have

with the $<\cdot {>}_{\mathrm{t}}$ operator representing the operation of average over the points classified as part of tile t, 𝟙_{t} is the indicator function selecting tile t (${\mathbb{1}}_{\mathrm{t},i}=\mathrm{1}$ if pixel *i* of the high-resolution terrain map belongs to tile t, ${\mathbb{1}}_{\mathrm{t},i}=\mathrm{0}$ otherwise). *A*_{i} and Θ_{i} are the area and value of the property Θ computed for the *i*th pixel in a high-resolution terrain map with *n*_{p} pixels. For the solar incidence angle, once the solar position is known we can write its average value over a tile t as

Therefore, the average values of these quantities over each tile represent the “characteristic” value of the properties over that tile and can be used to summarize the effect of multi-scale radiative transfer over mountainous regions.

## 2.5 A predictive model for the flux correction terms

The final step needed in order to parameterize the effect of complex topography on incident shortwave radiation is specifying a predictive model to link the terrain variables defined in Sect. 2.3 to the five flux components (Sect. 2.1). This step will enable us to extend the results of costly ray-tracing simulations at the global scale and provide predictive equations that can be directly applied to high-resolution terrain maps as well as to the local averages from the tiling structure defined in Sect. 2.4.

Here we focus on two different approaches, namely a multiple linear regression model (MLR, based on the previous LLH parameterization) and an alternative approach based on random forest regression (RFR). We explore these two distinct families of statistical models in order to evaluate the potential role on nonlinearity for different radiation flux terms, keeping in mind that MLR, the simpler statistical model, is in general to be preferred due to the greater ease of interpretation it provides and its reduced computational expense when employed in Earth system models.

MC photon-tracing simulations are performed at the native 90 m resolution of terrain products available. In the following analysis, results are coarsened at a range of spatial scales up to 10 km in order to test the robustness of the proposed parameterization to the spatial scale of the terrain variable used as predictors, and explore potential dependencies of radiation–topography interaction on the spatial scale considered. In each case, both MC simulation results and terrain properties are averaged at the same spatial resolution in order to train and test the predictive model at that specific spatial scale. MC simulations corresponding to the 3D case (i.e., over a three-dimensional surface) and over a flat surface (plane-parallel case, PP) were subtracted in order to compare the “true” flux deviations as defined in Eq. (1). Additionally, given the finite extension of the domain used in the MC simulations, spurious effects may be present due to the periodic boundary conditions imposed, especially for the lower values of solar zenith angle. To mitigate this issue, only the central part of each simulation domain (of size $\sim \mathrm{1}{}^{\circ}\times \mathrm{1}{}^{\circ}$) is used to train the predictive model. A fraction of size 0.2 times the linear dimension of the domain in discarded at each boundary.

The MC simulations were repeated for varying zenith angles (from *μ*_{0}=0.1 to *μ*_{0}=0.85) and four azimuth angles. The results for each azimuth are pulled together so that a single predictive model for each zenith angle is derived. For application to ESMs, the results should be interpolated when predictions for a generic zenith angle are needed.

After training each model for each solar zenith angle and flux component, we obtain a set of predictive equations linking the *f*_{i}'s (i.e., the normalized deviation between 3D and PP case) to the terrain predictors at the same spatial scale:

where *g* represents the parametric relations linking flux correction terms to terrain variables for different predictive models (m=MLR or m=RFR). These equations are derived for each flux component, solar zenith angle cos *θ*_{0}, and spatial scale Δ*x*. We note that these equations were derived for a single surface reflectivity value. The direct and diffuse flux components are independent of albedo. Reflected fluxes are linearly dependent on albedo, meaning that the predicted value can be rescaled by the surface albedo. Finally, *g*_{coup} is nonlinearly dependent on the surface albedo, meaning that predictions for different albedo values can, e.g., be obtained by interpolation (Lee et al., 2011). Once the *f*_{i} dimensionless predictions are available, the dimensional value of shortwave fluxes over rugged terrain can finally be obtained from Eq. (1). In general, simply applying a correction to the downward radiation received by land will not ensure energy conservation. This is expected in general, as some of the 3D topographic effects parameterized here would in general lead to energy fluxes between neighboring land model grid cells. A procedure was proposed by (Lee et al., 2015) that can be used to address this issue. In this approach, an effective albedo *α*_{3D} is computed for each land grid cell, such that a grid cell characterized by this *α*_{3D} and forced by plane-parallel radiation (PP) absorbs the same amount of radiation as in the case of a surface characterized by actual land albedo *α*, while forced by the 3D-corrected downward radiation fluxes. By returning the 3D albedo (which effectively represents the reflectivity of a “rough” but flat land surface) to the atmosphere, energy is conserved while accounting for the 3D topographic correction.

## 3.1 Spatial distribution of solar irradiance

A representative output obtained from Monte Carlo ray-tracing simulations for the eastern Alps (EastAlps in Fig. 2) domain is portrayed in Fig. 4, featuring the spatial distribution of differences between 3D topography and the PP case for a given incoming solar beam direction, while fields of the corresponding terrain variables for the same domain are reported in Fig. 5.

The direct flux appears to be prominently modulated by the presence of topography, with the distribution of shaded slopes following that of solar incident angles computed based on the solar angles for the current simulation (Fig. 5). In the case of the diffuse flux, differences between the 3D and PP simulations are less apparent, while a similar behavior is observed for the reflected flux components.

From visual inspection of these simulation results, it is apparent that the spatial variation in the direct flux is primarily controlled by the solar incident angle. The diffuse flux, on the other hand, shows a spatial variability primarily consistent with that of the sky view factor, as expected based on previous studies (Chen et al., 2006). Reflected and coupled flux spatial variability appear to be more complex, potentially controlled by the terrain configuration. This exploratory analysis reveals that, with the sole exception of the direct flux component, variations in downward fluxes are arguably not explained by a single linear relation but can in general involve multiple terrain predictors and potentially nonlinear effects. This hypothesis will be tested in the next section by examining the skill of a linear and nonlinear model when describing these relationships.

For the direct flux, histograms of the normalized differences between PP and 3D simulations are featured in Fig. 6, where the simulation results have been aggregated at a range of increasing spatial averaging scales. For low solar zenith angles, the frequency distribution of *f*_{dir} tends to have an atom at −1, a lower boundary value corresponding to the case of complete shade. This is clearly a limitation for the linear model approach, since this behavior imposes a nonlinear relation between *f*_{dir} and terrain variables (solar incident angle and sky view). However, averaging the results at increasing spatial scales we see this effect progressively diminishes, as the probability of a complete shade decreases. For both the domains examined in Fig. 6, this behavior is similar and similarly decreases with the cosine of the solar zenith angle. We note that at spatial scales larger than approximately 5 km the effect disappears. We note that it is a this range of scales that previous parameterization of 3D radiation over mountains were trained (Lee et al., 2011).

## 3.2 Model evaluation: sensitivity to the spatial scale and role of nonlinear effects

To quantify the sensitivity of the proposed methodology on the resolution of terrain data, we aggregate the MC-simulated radiation fields and corresponding terrain variables fields at increasing spatial scales (${L}_{\mathrm{s}}\in \left\{\mathrm{0.5},\mathrm{1},\mathrm{2},\mathrm{3},\mathrm{5},\mathrm{10}\right\}$ km), and in each case the predictive models are fit as described in Sect. 2.5, comparing the relative performance of multiple linear regressor and random forest predictions.

As shown in Fig. 7, the difference between RFR and MLR prediction skills is most relevant for the direct and direct-reflected flux components in the case of low solar zenith angles, and are also significant in the case of diffuse and coupled fluxes. In these two latter cases, the difference between RFR and MLR skills persists for all *μ*_{0} values and is thus not limited to cases where the Sun is relatively low on the horizon, as is the case for direct and direct-reflected fluxes. The reflected diffuse component is quite linear, as shown by the small difference between random forest and linear regressor predictive skills. For the direct-reflected flux this only happens for large enough values of the cosine of the solar zenith angle (*μ*_{0}>0.55).

The predictive model for the direct flux shows high values of coefficients of determination (*R*^{2}), with similar performance for RFR and MLR, indicating that a linear model is well suited to describe this quantity. The only discrepancy is observed for very low solar angles (*μ*_{0}=0.1), a case in which RFR outperforms the MLR. We believe this is primarily due to the effect of completely shaded areas in the domain, which are characterized by sharp transitions better described by an ensemble of decision trees due to the nonlinear behavior. We note that this effect is relevant only for comparatively small spatial scales (*L*_{s}<3 km) and low solar angles and similarly impacts the direct-reflected flux, which as expected is modulated by the amount of direct light received at the surface. In the case of larger spatial averaging scales and larger solar angles, the MLR describes the direct flux with great accuracy. Moreover, the poorer model performance at the low solar angles is mitigated by the fact that these conditions (e.g., dusk and dawn) generally account for a small fraction of the irradiance received by land over most geographic locations and times of the year.

Reflected direct and reflected diffuse fluxes also exhibit a clear linear dependence on the terrain predictors, with MLR and RFR having similar *R*^{2} values at all averaging scales and solar angles, with the only difference between the two approaches again appearing for the reflected direct flux for very small solar angles.

Appreciable differences between MLR and RFR are observed for diffuse and coupled fluxes. In these cases, it appears that diffuse radiation is better described by a nonlinear model, as is the case for irradiance originating from multiple reflections at the ground and atmospheric scattering (*f*_{coup}). In these cases, consistent with previous findings by (Lee et al., 2011), the predictive ability of linear models is lower.

These out-of-sample results were obtained using training data from the Peru domain and testing data from the eastern Alps domain. For completeness, we also ran the opposite configuration (switching training and testing domains) and found similar results.

In all cases in which predictive skills of MLR and RFR diverge, we observe that when comparing in-sample and out-of-sample performance the loss of predictive skill is larger in the case of RFR. This finding is not surprising. Given the additional model complexity of the RFR approach with respect to MLR, our analysis confirms that it is more prone to overfitting the calibration dataset. Once this overfitting tendency is accounted for, our analysis selects the MLR as model of choice since applications of the methodology do inevitably require extrapolation of the results to new domains.

Based on these results, we generally recommend the adoption of the linear regression models at least for direct and reflected fluxes, given the good performance and model simplicity. Applications of RFR are in principle possible in ESMs, and it has been shown here to have good predictive performance for this specific problem. However, this comes at the cost of a lower interpretability, and based on the present analysis here RFR is not the model of choice, given the limited increase in predictive skill with respect to MLR, especially when tested in cross validation.

## 3.3 Nonlinearity and effect of averaging for the direct flux

The direct flux component is characterized by a nonlinear behavior in the case of completely shaded areas.

This behavior should be taken into account in our model, as averaging terrain properties over tiles with varying characteristic size and spatial configuration would lead in general to changes in the average predicted *f*_{dir} for a given tile if model predictions are averaged over areas that include partial shades in the high-resolution true field. One possible way to capture this behavior is to predict *f*_{dir} first over an entire grid cell to obtain its average value and then impose the rule that tile-by-tile predictions must match the average value of the direct flux correction over the entire grid cell ($\langle {\stackrel{\mathrm{\u0303}}{f}}_{\mathrm{dir}}\rangle $). This can be achieved through the following transformation for a generic tile $i=\mathrm{1},\mathrm{\dots}{n}_{\mathrm{t}}$. We define the corrected value $\stackrel{\mathrm{\u0303}}{{f}_{\mathrm{dir}}^{\left(i\right)}}$ as

This correction was obtained by imposing the rule that the ${\stackrel{\mathrm{\u0303}}{f}}_{\mathrm{dir}}$ values predicted by the model for each tile conserve the grid-cell-average value, by correcting the original value $\langle {f}_{\mathrm{dir}}\rangle ={\sum}_{i=\mathrm{1}}^{{n}_{\mathrm{t}}}{p}_{i}{f}_{\mathrm{dir}}^{\left(i\right)}$, with *p*_{i} the fractional area of the grid cell assigned to tile *i*. This transformation also preserves the minimum value over the grid cells, meaning that ${\stackrel{\mathrm{\u0303}}{f}}_{\mathrm{dir}}^{\left(\mathrm{min}\right)}={f}_{\mathrm{dir}}^{\left(\mathrm{min}\right)}={\mathrm{min}}_{i=\mathrm{1}}^{{n}_{\mathrm{t}}}{f}_{\mathrm{dir}}^{\left(i\right)}$. For other flux variables this correction is not necessary if a linear model is used for predicting their average values over tiles (as done here).

Figure 8 shows the frequency distribution of corrections for the various flux terms that vary in their number of tiles. In particular, for the direct flux the distribution of tile-by-tile estimates is shown to converge with the histograms of the full high-resolution results for *n*_{t}=250 tiles. Thus, application of the correction given in Eq. (12) allows us to preserve the grid-cell-average correction while adequately representing the sub-grid-scale variability of *f*_{dir}.

## 3.4 Model sensitivity to the number of tiles used

The predictive model can be used to produce tile-by-tile estimate of flux differences and compare results with those predicted for the original high-resolution terrain map. We repeat this analysis for different configurations of the hierarchical clustering scheme to test the sensitivity of the results to the number of tiles used to characterize domain heterogeneity. While the MC simulations were performed over two domains only, here we perform the clustering analysis over all three domains, comparing predictions obtained by applying the 3D radiation corrections to the original high-resolution terrain data with the same approach to the sub-grid tiling structures for a varying number of land clusters. We expect a larger number of tiles to lead to a better representation of the flux component over rugged terrain. However, a number of tiles that is too high would not be feasible for running ESMs over large domains or the entire globe.

An example of the spatial distribution of tiles obtained by applying the HMC algorithm is reported in Fig. 9 for the eastern Alps domain, where the land domain is partitioned into 5 and 25 clusters. Two additional tiles are used to represent lakes and glaciers, which are present over this domain, albeit accounting for a small fraction of the surface. Once the tiled grid is defined using the HMC method, local averages of terrain parameters can be computed directly over each land unit. For example, the lower panels in Fig. 9 show the spatial distributions of the terrain view factor ${\stackrel{\mathrm{\u0303}}{C}}_{\mathrm{t}}$) averaged over each tile, showing that the larger number of tiles greatly improves the representation of the spatial variability of topography.

We then tested the ability of the tiled grid when reproducing the actual spatial distribution of solar radiation by first examining the results obtained by separately varying the number of characteristic hillslopes *k* (while keeping *p* fixed) and comparing the results with the results for variable *p* and fixed *k*. This analysis is intended to test the robustness of the method to different sub-grid land partitioning schemes.

Figures 10 and 11 show how increasing the number of land tiles improves the description of the direct flux and diffuse flux components, respectively, over the eastern Alps domain. Note that the same disaggregation of the domain in tiles is used for predicting the distribution of both variables. Even in the case of a fairly low number of tiles (e.g., five tiles in Figs.10b and 11b) the sub-grid structure is able to capture the main feature of both direct and diffuse radiation fields, even though their variations are known to be controlled by different terrain properties (primarily aspect and sky view, respectively, as can be seen by the spatial distribution of direct and diffuse fluxes in the high-resolution results). For both *f*_{dir} and *f*_{dif}, the tile-by-tile predictions appear to converge to the original high-resolution field when increasing the number of tiles (results for 25 and 250 tiles are shown in the lower panels of Figs. 10 and 11). Note that this result is quite significant, since for the domain examined here the number of points needed to obtain the high-resolution field without using a clustering approach would be on the order of 10^{6} (for a $\mathrm{1}{}^{\circ}\times \mathrm{1}{}^{\circ}$ grid cell at the native 90 m resolution of SRTM data).

To obtain a more quantitative description of the convergence to the high-resolution fields, we show how spatial statistics of the radiation fields (spatial standard deviation *σ*_{x}, skewness *γ*_{x}, and kurtosis *ξ*_{x}) vary with increasing tile count with respect to the same statistics computed for the reference high-resolution field.

For all the terrain predictors (Fig. 12) we find that when increasing the number of tiles, the spatial variability of terrain predictors converges to that of original high-resolution fields as expected. However, this convergence appears to be faster for the solar incidence angle when compared to ${\stackrel{\mathrm{\u0303}}{V}}_{\mathrm{d}}$ and ${\stackrel{\mathrm{\u0303}}{C}}_{\mathrm{t}}$. Higher-order statistics of the spatial fields (skewness and kurtosis) also tend to converge to the high-resolution field values, albeit with a larger variability. While spatial standard deviation is generally used as a metric for assessing spatial variability, examining skewness and kurtosis helps to make sure the entire distribution of tile-by-tile results converges to the high-resolution benchmark, since they better capture asymmetry and extremes in tile values. However, we note that these metrics are not very meaningful for the smallest number of tiles shown in Fig. 12) due to the small sample size. However, the fact that for a large enough number of tiles (e.g., *n*_{t}>20) these metrics appear to converge to the true values increases our confidence that the hierarchical clustering scheme provides a good description of the topography heterogeneity.

For the flux variables (Fig. 13) we find a similar behavior, with convergence of the spatial standard deviation being generally faster than that of higher-order statistics. In this case, the convergence is faster for the direct flux and slower for all other flux component, as expected since *F*_{dir} is primarily controlled by ${\stackrel{\mathrm{\u0303}}{\mathit{\mu}}}_{i}$, while the other flux components show a relevant dependence on either the sky view factor or terrain configurations.

To further analyze the configuration of the tiling structure used, we also tested different tiling configurations obtained by fixing the number of characteristic hillslopes (*k*=5) and varying the number of lower-level land units in each hillslope (*p*) or conversely varying *k* with *p*=5 fixed. Results from both of these approaches are reported in Figs. 12 and 13. We find that generally convergence is faster using a larger *p*, i.e., dividing each characteristic slope in a larger number of tiles as opposed to increasing the number of characteristic hillslopes. This is not surprising. However, differences are generally small, and therefore the model proposed appears flexible and can in principle be applied with tiling that has been predefined in order to also accommodate for other physical processes.

## 3.5 Magnitude of predicted fluxes over varying atmospheric conditions

The presence of clouds adds considerable complexity to the problem of radiation–topography interactions and has not been considered in our work. A complete understanding of 3D land–atmosphere interactions would require us to extend our analysis to a large range of atmospheric conditions, which would be computationally costly, requiring a large number of ray-tracing simulations, and would arguably lead to a more complex parameterization requiring a larger number of parameters to estimate 3D topographic radiation corrections. Previous work such as (Lee et al., 2011) also focused on clear-sky conditions. Although obtained assuming fixed atmospheric properties, the 3D terrain corrections for radiation fluxes have been formulated in dimensionless form (Eq. 1) so that they can be applied as a first-order correction to radiation received by land over varying atmospheric conditions. In different atmospheric conditions (clear vs. cloudy sky), the relative magnitude of the five radiation flux components can vary substantially. To show the magnitude of these changes, here we compute the magnitude of the flux 3D effects in dimensional form for the case of “clear sky” (i.e., aerosols but not clouds) and “total sky”, i.e., atmospheric column with cloud cover and aerosol. These computations were made using the Fu–Liou radiative transfer scheme (Fu and Liou, 1992) using a standard midlatitude summer atmospheric profile.

Results for clear-sky conditions are shown in Figs. 14 and 15, while the case of cloudy sky is shown in Fig. 16. While the overall downward flux is smaller in the case of cloudy sky, the direct and reflected direct fluxes are zero, meaning that the entire downward flux is comprised of diffuse, reflected diffuse, and coupled components. For the coupled flux, the spatial variations are similar in the two cases, with the most frequent values in the range −2 to 8 Wm^{−2}. For diffuse fluxes the clear-sky case is characterized by larger magnitude of 3D topographic effects, and this difference is even more marked in the case of reflected diffuse fluxes.

## 3.6 Compatibility with existing sub-grid tiling schemes

The approach proposed in this paper to design a sub-grid structure was developed keeping in mind the necessity of describing not only radiation but also other physical processes at the sub-grid scale. The GFDL model, as with several current-generation ESMs, resolves each sub-grid tile as a single “column” coupled with the atmosphere. Therefore, these tiles should be flexible enough to meet the constraints posed by different physical processes. In our case, a single-level terrain clustering would suffice for the purpose of parameterizing 3D radiation–topography interactions. However, the multi-level clustering used here is flexible enough to accommodate multiple physical processes. For example, the outer-level clustering (i.e., the partition of the domain in *k* characteristic hillslopes) is designed to obtain hydrologically coherent units so that processes like runoff and groundwater flow can be resolved in each homogeneous land unit (Chaney et al., 2018). Here we include this flexible sub-grid structure, and in our sensitivity study (Fig. 13) we compare different specifications of *k* and *p* (number of characteristic hillslopes and number of inner clusters within each hillslope, respectively) to test the sensitivity of our parameterization to these changes in sub-grid structure, finding that our results are robust to the specific tile structure selected. Finally, it is possible that other variables may need to be added to the clustering to account for sub-grid heterogeneity of other processes (e.g., land use or soil properties). This can be directly done with the framework used here at the price of an increase in the number of tiles used. Producing an effective global-scale model grid able to meet these demands is possible but requires inevitable tradeoffs. The analysis in this paper contributes to this effort by quantifying the number of tiles needed over mountainous terrain for the sole purpose of capturing the spatial variability in shortwave radiation. We note that in the case of the GFDL ESM, the model infrastructure is already suited for grids of this type, which can be characterized by an uneven number of sub-grid units in different grid cells depending on the local terrain properties. At the model start, the land grid cells can be distributed among available processors based on the estimated workload needed for each of the cells, assuming that computational cost is proportional to the number of sub-grid units. Therefore, the work per processor is roughly the same, and the imbalance resulting from this uneven grid structure is minimized.

## 3.7 Comparison with grid-cell-average correction

The parameterization developed here can in principle be applied both to high-resolution terrain partitioned into tiles and to the original grid cell area. However, our analysis of the model goodness of fit (Fig. 7) shows that the predictive models at different spatial resolutions (i.e., spatial averaging scales) show varying performance that improves with spatial scale. Therefore, according to this analysis, the model predictions for 3D effects over an entire grid cell have the best performance. However, this comes at the cost of losing information about the sub-grid scales. Based on these considerations, it would be desirable to have a model with the best accuracy over an entire grid cell that is at the same time able to describe tile-by-tile spatial variations in radiation fluxes received at the surface. In order for this to be possible, the parameterization developed here should be able to yield the same results when (i) applied to each tile separately and then averaged over the grid cell and (ii) applied to the grid average terrain predictors. We found that the parameterizations proposed here have this property for four flux components (diffuse, coupled, and reflected fluxes) but not for the direct flux. This is because the behavior of the parameterization in the case of completely shaded areas (for which *f*_{dir} assumes the lower bound value −1) is not constant across averaging scales due to the varying area of hill shades. We show this behavior in Fig. 17, where once averaged over an entire grid cell, the results of the tile-by-tile parameterization for the direct flux appear to overestimate the grid-cell-average 3D topographic effect with respect to the grid-cell-average estimate of *f*_{dir}. This discrepancy can be resolved by the use of Eq. (12) which, once applied to the direct flux, allows us to impose the tile-by-tile correction to match the grid-cell-average correction. The result of this correction is shown in Fig. 17. Therefore, once this correction is employed for the direct flux, this approach can at the same time conserve the area-average effect while providing information about the sub-grid variability of the radiative fluxes.

## 3.8 Discussion of the dependence on albedo and its spatial variability

The methodology described here has been developed for a surface with a uniform and fixed albedo value. For applying the methodology to an ESM, the radiation corrections which are albedo dependent (reflected and coupled fluxes) should be evaluated for the specific surface albedo value as discussed in Sect. 2.5. However, in the presence of surfaces with spatially varying reflectivity, it is inevitable that different land tiles in the same grid cell will be characterized by different albedo values. For example, this can happen in the case of partial snow cover or in the case of different vegetation types along a gradient in elevation. While here the 3D radiation correction is applied to each tile independently, it is expected that reflected and coupled fluxes should include contributions from nearby tiles characterized by different albedo values. At present our methodology does not explicitly address these interactions between tiles with different albedo. We note here two main difficulties in constructing such a model. First, its validation would require an extensive set of costly MC simulations to train the model over surfaces with varying reflectivity. Second, explicitly accounting for the reflectivity of nearby slopes may require a more complex statistical model, and it would not be easy task given the complex geometry of the tile structure adopted in our work. Solving these two important challenges should be object of future research.

Here we describe a methodology to compute solar fluxes over mountainous terrain, accounting for the sub-grid variability of topographic properties within a characteristic ESM grid cell. Topographic parameters modulating the incident solar irradiance, combined with results from Monte Carlo radiation simulation over 3D surface, are used to train a predictive model and cluster land surface based on topography–radiation interactions. The methodology as presented here is tailored to a tiling structure scheme recently introduced in the GFDL land model LM4.1 to describe the heterogeneity of hydrological properties. However, we believe this approach could be suitable for applications to other land surface models, as the clustering technique used here allows for a parsimonious description of the spatially varying solar fluxes. For this reason, we tested the sensitivity of the approach to the number of tiles used over independent sites characterized by complex topography. The results appear consistent over different geographical domains and indicate that even a limited number of tiles can reproduce a significant fraction of the spatial variability observed in the high-resolution fields. This result is particularly relevant when compared with standard approaches focused on increasing the land model resolution without adopting a clustering-based approach to construct a sub-grid land structure. Increasing the number of tiles improves not only the representation of spatial variances but also the convergence of higher-order statistics. However, even when using a lower number of tiles, the results remain consistent with previously developed grid-cell-average corrections (i.e., the methodology can ensure that the grid-cell-average correction is downward radiation is conserved) and thus are to be considered an improvement with respect to current plane-parallel radiative transfer. Here we found that even a limited number of tiles (*n*_{t}=10) recovers a large fraction (>60 *%*) of the spatial variance of irradiance over high-elevation mountain domains. However, we find that a larger number of sub-grid units (on the order of *n*_{t}=100) would lead to a further significant improvement. Further increasing the number of tiles above *n*_{t}=100 would lead to more modest improvements at the price of a much larger number of tiles required, as shown by the convergence analysis. Therefore, an optimal number of tiles could be between 10 and 100. Using such a large number of tiles in a global model would be ambitious at present due to its computational cost. However, we note that a global grid can be constructed by coarsening the sub-grid tile structure in an area with little or no topography and using more tiles in areas of complex terrain. Following this approach, constructing a global grid with a global average number of tiles between 5 and 20 (over land $\mathrm{1}{}^{\circ}\times \mathrm{1}{}^{\circ}$ grid cells) is certainly in reach.

The current methodology, as well as previous studies on the topic (e.g., Chen et al., 2006; Lee et al., 2011), employed Monte Carlo simulations based on clear-sky conditions. Studying the effects of aerosols and cloud on the radiative transfer over complex terrain remains an open research avenue. In particular, the presence of spatially varying cloud cover could profoundly influence the spatial distribution of irradiance over mountainous terrain. However, in addition to the numerical challenges connected to the radiative transfer problem, including a spatially varying cloud cover would inevitably increase the number of parameters needed to parameterize the radiation received by the surface, thus posing a relevant parameterization challenge.

Studying the relationship between terrain predictors and irradiance differences between 3D and PP cases allowed us to quantify the importance of nonlinear effects and the relative skill of linear models and random forest predictors in capturing these relationships. We found that nonlinear effects are relevant primarily at the finer spatial scales and decrease drastically with spatial averages at increasing spatial scales. This result is consistent with previous investigations at coarser spatial scales based on linear models.

Based on our simulation study over a set mountainous domains, we quantified the difference in downward fluxes originating from topographic effects with respect to those obtained from traditional plane-parallel radiative transfer schemes for varying numbers of sub-grid tiles. Our results support the implementation of this methodology in the GFDL ESMs, which will be pursued as the next step to evaluate the effects of this correction of water and energy fluxes at the surface.

The code used in this project is available in a Zenodo repository with the following DOI: https://doi.org/10.5281/zenodo.7714735 (Zorzetto, 2022a). The preprocessing software used to construct the land database for the GFDL land model v4.1 is included as supplementary material in the Zenodo repository https://doi.org/10.5281/zenodo.7720281 (Zorzetto, 2023). A model dataset necessary to run the analysis is available in a Zenodo repository with the following DOI: https://doi.org/10.5281/zenodo.6975857 (Zorzetto, 2022b).

All authors contributed to research design. EZ developed the software, performed the simulations, and drafted the first version of the manuscript. All authors contributed to the manuscript.

The contact author has declared that none of the authors has any competing interests.

Publisher's note: Copernicus Publications remains neutral with regard to jurisdictional claims in published maps and institutional affiliations.

Lucas Harris and Linjiong Zhou are acknowledged for their comments and suggestions during an internal review of the manuscript.

This research has been supported by the National Aeronautics and Space Administration, Earth Sciences Division (grant no. 80HQTR21T0015) and the National Oceanic and Atmospheric Administration (grant no. NA18OAR4320123).

This paper was edited by Mohamed Salim and reviewed by two anonymous referees.

Bales, R. C., Molotch, N. P., Painter, T. H., Dettinger, M. D., Rice, R., and Dozier, J.: Mountain hydrology of the western United States, Water Resour. Res., 42, 8, https://doi.org/10.1029/2005WR004387, 2006. a

Brutsaert, W.: Evaporation into the atmosphere: theory, history and applications, vol. 1, Springer Dordrecht, ISBN 978-94-017-1497-6, 2013. a

Chaney, N. W., Metcalfe, P., and Wood, E. F.: HydroBlocks: a field-scale resolving land surface model for application over continental extents, Hydrol. Process., 30, 3543–3559, 2016. a, b

Chaney, N. W., Van Huijgevoort, M. H. J., Shevliakova, E., Malyshev, S., Milly, P. C. D., Gauthier, P. P. G., and Sulman, B. N.: Harnessing big data to rethink land heterogeneity in Earth system models, Hydrol. Earth Syst. Sci., 22, 3311–3330, https://doi.org/10.5194/hess-22-3311-2018, 2018. a, b, c, d, e, f, g

Chen, Y., Hall, A., and Liou, K.: Application of three-dimensional solar radiative transfer to mountains, J. Geophys. Res.-Atmos., 111, D21, https://doi.org/10.1029/2006JD007163, 2006. a, b, c, d, e, f, g, h, i, j

Dozier, J.: A clear-sky spectral solar radiation model for snow-covered mountainous terrain, Water Resour. Res., 16, 709–718, 1980. a

Dozier, J. and Frew, J.: Rapid calculation of terrain parameters for radiation modeling from digital elevation data, IEEE T. Geosci. Remote, 28, 963–969, 1990. a, b, c, d

Dubayah, R., Dozier, J., and Davis, F. W.: Topographic distribution of clear-sky radiation over the Konza Prairie, Kansas, Water Resour. Res., 26, 679–690, 1990. a

Duguay, C. R.: Radiation modeling in mountainous terrain review and status, Mountain research and development, 13, 339–357, 1993. a

Dunne, J. P., Horowitz, L. W., Adcroft, A. J., Ginoux, P., Held, I. M., John, J. G., Krasting, J. P., Malyshev, S., Naik, V., Paulot, F., Shevliakova, E., Stock, C. A., Zadeh, N., Balaji, V., Blanton, C., Dunne, K. A., Dupuis, C., Durachta, J., Dussin, R., Gauthier, P. P. G., Griffies, S. M., Guo, H., Hallberg, R. W., Harrison, M., He, J., Hurlin, W., McHugh, C., Menzel, R., Milly, P. C. D., Nikonov, S., Paynter, D. J., Ploshay, J., Radhakrishnan, A., Rand, K., Reichl, B. G., Robinson, T., Schwarzkopf, D. M., Sentman, L. T., Underwood, S., Vahlenkamp, H., Winton, M., Wittenberg, A. T., Wyman, B., Zeng, Y., and Zhao, M.: The GFDL Earth System Model version 4.1 (GFDL-ESM 4.1): Overall coupled model description and simulation characteristics, J. Adv. Model. Earth Sy., 12, e2019MS002015, https://doi.org/10.1029/2019MS002015, 2020. a

Essery, R. and Marks, D.: Scaling and parametrization of clear-sky solar radiation over complex topography, J. Geophys. Res.-Atmos., 112, D10, https://doi.org/10.1029/2006JD007650, 2007. a

Farr, T. G., Rosen, P. A., Caro, E., Crippen, R., Duren, R., Hensley, S., Kobrick, M., Paller, M., Rodriguez, E., Roth, L., Seal, D., Shaffer, S., Shimada, J., Umland, J., Werner, M., Oskin, M., Burbank, D., and Alsdorf, D.: The shuttle radar topography mission, Rev. Geophys., 45, 11, https://doi.org/10.1029/2005RG000183, 2007. a, b

Fu, Q. and Liou, K.: On the correlated k-distribution method for radiative transfer in nonhomogeneous atmospheres, J. Atmos. Sci., 49, 2139–2156, 1992. a, b

Granger, J. and Schulze, R.: Incoming solar radiation patterns and vegetation response: examples from the Natal Drakensberg, Vegetatio, 35, 47–54, 1977. a

Gu, L., Baldocchi, D., Verma, S. B., Black, T., Vesala, T., Falge, E. M., and Dowty, P. R.: Advantages of diffuse radiation for terrestrial ecosystem productivity, J. Geophys. Res.-Atmos., 107, ACL 2-1–ACL 2-23, https://doi.org/10.1029/2001JD001242, 2002. a

Gu, Y., Liou, K. N., Lee, W.-L., and Leung, L. R.: Simulating 3-D radiative transfer effects over the Sierra Nevada Mountains using WRF, Atmos. Chem. Phys., 12, 9965–9976, https://doi.org/10.5194/acp-12-9965-2012, 2012. a

Hao, D., Bisht, G., Gu, Y., Lee, W.-L., Liou, K.-N., and Leung, L. R.: A parameterization of sub-grid topographical effects on solar radiation in the E3SM Land Model (version 1.0): implementation and evaluation over the Tibetan Plateau, Geosci. Model Dev., 14, 6273–6289, https://doi.org/10.5194/gmd-14-6273-2021, 2021. a

Hay, J. E. and McKay, D. C.: Estimating solar irradiance on inclined surfaces: a review and assessment of methodologies, International Journal of Solar Energy, 3, 203–240, 1985. a

Helbig, N., Löwe, H., and Lehning, M.: Radiosity approach for the shortwave surface radiation balance in complex terrain, J. Atmos. Sci., 66, 2900–2912, 2009. a

Isard, S.: Evaluation of models for predicting insolation on slopes within the Colorado alpine tundra, Sol. Energy, 36, 559–564, 1986. a

Lamare, M., Dumont, M., Picard, G., Larue, F., Tuzet, F., Delcourt, C., and Arnaud, L.: Simulating optical top-of-atmosphere radiance satellite images over snow-covered rugged terrain, The Cryosphere, 14, 3995–4020, https://doi.org/10.5194/tc-14-3995-2020, 2020. a

Larue, F., Picard, G., Arnaud, L., Ollivier, I., Delcourt, C., Lamare, M., Tuzet, F., Revuelto, J., and Dumont, M.: Snow albedo sensitivity to macroscopic surface roughness using a new ray-tracing model, The Cryosphere, 14, 1651–1672, https://doi.org/10.5194/tc-14-1651-2020, 2020. a, b

Lee, W.-L., Liou, K., and Hall, A.: Parameterization of solar fluxes over mountain surfaces for application to climate models, J. Geophys. Res.-Atmos., 116, D01101, https://doi.org/10.1029/2010JD014722, 2011. a, b, c, d, e, f, g, h, i, j, k, l, m, n, o, p

Lee, W.-L., Liou, K., and Wang, C.-c.: Impact of 3-D topography on surface radiation budget over the Tibetan Plateau, Theor. Appl. Climatol., 113, 95–103, 2013. a, b

Lee, W.-L., Gu, Y., Liou, K. N., Leung, L. R., and Hsu, H.-H.: A global model simulation for 3-D radiative transfer impact on surface hydrology over the Sierra Nevada and Rocky Mountains, Atmos. Chem. Phys., 15, 5405–5413, https://doi.org/10.5194/acp-15-5405-2015, 2015. a, b

Lee, W.-L., Liou, K.-N., Wang, C.-c., Gu, Y., Hsu, H.-H., and Li, J.-L. F.: Impact of 3-D Radiation-Topography Interactions on Surface Temperature and Energy Budget Over the Tibetan Plateau in Winter, J. Geophys. Res.-Atmos., 124, 1537–1549, 2019. a

Lenot, X., Achard, V., and Poutier, L.: SIERRA: A new approach to atmospheric and topographic corrections for hyperspectral imagery, Remote Sens. Environ., 113, 1664–1677, 2009. a

Liou, K., Lee, W.-L., and Hall, A.: Radiative transfer in mountains: Application to the Tibetan Plateau, Geophys. Res. Lett., 34, L23809, https://doi.org/10.1029/2007GL031762, 2007. a

Liou, K.-N.: An introduction to atmospheric radiation, Elsevier, ISBN 9780080491677, 2002. a, b

MacQueen, J.: Some methods for classification and analysis of multivariate observations, in: Proceedings of the fifth Berkeley symposium on mathematical statistics and probability, vol. 1, 281–297, Oakland, CA, USA, MR0214227, 1967. a

Mayer, B.: Radiative transfer in the cloudy atmosphere, in: EPJ Web of Conferences, vol. 1, 75–99, EDP Sciences, https://doi.org/10.1140/epjconf/e2009-00912-1, 2009. a, b, c, d

Mayer, B., Hoch, S. W., and Whiteman, C. D.: Validating the MYSTIC three-dimensional radiative transfer model with observations from the complex topography of Arizona's Meteor Crater, Atmos. Chem. Phys., 10, 8685–8696, https://doi.org/10.5194/acp-10-8685-2010, 2010. a, b

McCabe, G. J. and Clark, M. P.: Trends and variability in snowmelt runoff in the western United States, J. Hydrometeorol., 6, 476–482, 2005. a

Miesch, C., Briottet, X., Kerr, Y. H., and Cabot, F.: Monte Carlo approach for solving the radiative transfer equation over mountainous and heterogeneous areas, Appl. Opt., 38, 7419–7430, 1999. a

Milly, P. C., Malyshev, S. L., Shevliakova, E., Dunne, K. A., Findell, K. L., Gleeson, T., Liang, Z., Phillipps, P., Stouffer, R. J., and Swenson, S.: An enhanced model of land water and energy for global hydrologic and earth-system studies, J. Hydrometeorol., 15, 1739–1761, 2014. a

Picard, G., Dumont, M., Lamare, M., Tuzet, F., Larue, F., Pirazzini, R., and Arnaud, L.: Spectral albedo measurements over snow-covered slopes: theory and slope effect corrections, The Cryosphere, 14, 1497–1517, https://doi.org/10.5194/tc-14-1497-2020, 2020. a

Pincus, R., Mlawer, E. J., and Delamere, J. S.: Balancing accuracy, efficiency, and flexibility in radiation calculations for dynamical models, J. Adv. Model. Earth Sy., 11, 3074–3089, 2019. a

Raup, B., Racoviteanu, A., Khalsa, S. J. S., Helm, C., Armstrong, R., and Arnaud, Y.: The GLIMS geospatial glacier database: a new tool for studying glacier change, Global Planet. Change, 56, 101–110, 2007. a

Shevliakova, E., Pacala, S. W., Malyshev, S., Hurtt, G. C., Milly, P., Caspersen, J. P., Sentman, L. T., Fisk, J. P., Wirth, C., and Crevoisier, C.: Carbon cycling under 300 years of land use change: Importance of the secondary vegetation sink, Global Biogeochem. Cy., 23, GB2022, https://doi.org/10.1029/2007GB003176, 2009. a

Sirguey, P.: Simple correction of multiple reflection effects in rugged terrain, Int. J. Remote Sens., 30, 1075–1081, 2009. a

Sirguey, P., Mathieu, R., and Arnaud, Y.: Subpixel monitoring of the seasonal snow cover with MODIS at 250 m spatial resolution in the Southern Alps of New Zealand: Methodology and accuracy assessment, Remote Sens. Environ., 113, 160–181, 2009. a

Tesfa, T. K. and Leung, L.-Y. R.: Exploring new topography-based subgrid spatial structures for improving land surface modeling, Geosci. Model Dev., 10, 873–888, https://doi.org/10.5194/gmd-10-873-2017, 2017. a

Villefranque, N., Fournier, R., Couvreux, F., Blanco, S., Cornet, C., Eymet, V., Forest, V., and Tregan, J.-M.: A Path-Tracing Monte Carlo Library for 3-D Radiative Transfer in Highly Resolved Cloudy Atmospheres, J. Adv. Model. Earth Sy., 11, 2449–2473, 2019. a

Zhao, M., Golaz, J.-C., Held, I. M., Guo, H., Balaji, V., Benson, R., Chen, J.-H., Chen, X., Donner, L. J., Dunne, J. P., Dunne, K., Durachta, J., Fan, S.-M., Freidenreich, S. M., Garner, S. T., Ginoux, P., Harris, L. M., Horowitz, L. W., Krasting, J. P., Langenhorst, A. R., Liang, Z., Lin, P., Lin, S.-J., Malyshev, S. L., Mason, E., Milly, P. C. D., Ming, Y., Naik, V., Paulot, F., Paynter, D., Phillipps, P., Radhakrishnan, A., Ramaswamy, V., Robinson, T., Schwarzkopf, D., Seman, C. J., Shevliakova, E., Shen, Z., Shin, H., Silvers, L. G., Wilson, J. R., Winton, M., Wittenberg, A. T., Wyman, B., and Xiang, B.: The GFDL global atmosphere and land model AM4. 0/LM4. 0: 2. Model description, sensitivity studies, and tuning strategies, J. Adv. Model. Earth Sy., 10, 735–769, 2018. a, b

Zorzetto, E.: Code for analyzing the sub–grid distribution of shortwave radiation over mountainous terrain, https://doi.org/10.5281/zenodo.7714735, 2022a. a

Zorzetto, E.: Data used for developing a parameterization for spatial distribution of solar irradiance over rugged terrain, Zenodo [data set], https://doi.org/10.5281/zenodo.6975857, 2022b. a

Zorzetto, E.: Software for constructing topography-aware subgrid land tiled datasets, Zenodo [code], https://doi.org/10.5281/zenodo.7720281, 2023. a

tiles, and for each tile we evaluate solar radiation received by land based on terrain properties.