4.6 The Monte Carlo method 125
A new random number R
t,1
will determine the path length s
1
between P
1
and
the new point P
2
. Substituting this path length together with (4.137) into (4.127)
yields the new coordinates (x
2
, y
2
, z
2
) of the point P
2
. At this point new local
scattering angles are chosen as random numbers and the computational process is
repeated until the test photon either is absorbed within the medium or at the ground
or it leaves the atmosphere into space, (event E in Figure 4.10). Since reflection at
the ground is assumed to be isotropic, two uniformly distributed random numbers
from the intervals [0,π/2) and [0, 2π) can be used to find the new direction of the
test photon after ground reflection.
The above discussion was based on the assumption that the medium is homoge-
neous. In case of a vertically and horizontally inhomogeneous medium the transmis-
sion calculation must fully account for the (x, y, z)-dependence when determining
the optical depth, i.e. (4.128) has to be generalized to
T (s) = exp
−
s
k
ext
(s) ds
(4.138)
In addition to the already defined levels z
j
for the vertically inhomogeneous
medium, we have to introduce similar grids for discretizing the (x, y)-space. There-
fore, for a general three-dimensional medium the space is discretized into small
volume elements V . The photon paths are then traced through these individ-
ual volume elements. Radiative fluxes or actinic fluxes may be determined at the
midpoints of the six faces of each volume element by weighting them with the
corresponding projection factor as the photons intersect a particular reference area.
In case of actinic fluxes this projection factor is always 1 since the weight of
each test photon is independent of its flight direction. For radiative flux densities
through area elements x = con st the weighting factor is equal to the cosine of
the angle α subtended by the outward normal n
x
of the area element and the unit
vector Ω specifying the flight direction of the photon, see Figure 4.13. The energy
is counted positive if the photon travels into the interior of V , otherwise it is
negative.
4.6.2 Treatment of absorption
The initial energy of the model photons is reduced by absorption due to gases and
atmospheric particles. Let N represent the total number of model photons, e.g.
some 10 000, entering the top of the atmosphere. On entry the initial energy carried
by such a photon is given by E
0
= µ
0
S
0
/N where S
0
refers to the solar constant
within a small spectral interval. Let s
i, j
specify the total photon path between the
starting point P
0
and an arbitrary intersection point D
i, j
as defined in Figure 4.10.