Physics guide
The phase function as a probability
When a photon travelling in direction Ω′ is scattered, p(Ω′, Ω)/4π is the probability per unit solid angle that it leaves in direction Ω. For spheres, or particles oriented at random, p depends only on the scattering angle Θ between the two directions, and the normalization becomes
½ ∫₋₁¹ p(cos Θ) d cos Θ = 1
so the photon goes somewhere. The "normalization" card checks this numerically from the plotted curve. See Chapter 12, "The Scattering Phase Function".
Per steradian or per degree?
p(Θ) is a density per unit solid angle. The directions with scattering angles between Θ and Θ + dΘ form a ring whose solid angle is 2π sin Θ dΘ, so the probability of landing in that ring, per degree of Θ, is
½ p(Θ) sin Θ × (π/180)
It vanishes at 0° and 180° for any phase function, because the rings shrink to points. Even isotropic scattering, p = 1, sends most photons near Θ = 90°. Switch the left plot to "probability per degree" to see this. The histogram bars convert counts the same two ways: count ÷ N ÷ the bin's share of the sphere, (cos Θ₁ − cos Θ₂)/2, estimates p; count ÷ N ÷ 3° estimates the per-degree probability.
The asymmetry parameter g
g = ½ ∫₋₁¹ p(cos Θ) cos Θ d cos Θ
g is the mean of cos Θ over many scattered photons, and the "photons" card shows the sample mean approaching it. Its error falls as 1/√N. g is positive when more light goes forward, and it can be 0 without the scattering being isotropic: the Rayleigh phase function is the example. For cloud droplets in visible light, g is 0.8 to 0.9. Being one number taken from a whole function, g says nothing about how much light goes straight back. Overlay the HG function with the same g on the double HG or a Mie case to see two very different backscatter values. See Chapter 12, "The scattering asymmetry parameter".
Henyey–Greenstein, single and double
pHG(g; cos Θ) = (1 − g²) / (1 + g² − 2g cos Θ)3/2
It is normalized for any g between −1 and 1, its asymmetry parameter is g itself, and it is isotropic for g = 0. It is smooth and featureless: no rainbow, no glory. The share of light it scatters into the backward hemisphere is (1 − g)/(2g) × [(1 + g)/√(1 + g²) − 1], about 3.6 % for g = 0.85. A double HG, b pHG(g₁) + (1 − b) pHG(g₂), with g₂ < 0, adds a backward lobe; its g is b g₁ + (1 − b) g₂. The app samples HG exactly by inverting its cumulative distribution:
cos Θ = [1 + g² − ((1 − g²)/(1 − g + 2gξ))²] / (2g), ξ uniform on [0, 1]
See Chapter 12, "The Henyey-Greenstein phase function".
Mie phase functions
The Mie cases come from the same engine as the Mie explorer. A single sphere's phase function is full of ripples. A size distribution (here the modified gamma, with effective variance v) averages them away, leaving the forward diffraction peak, a rainbow near 140° for water drops in visible light, and a glory at 180°. The forward peak of a cloud droplet is about a degree wide, so most of its scattering is barely a deflection. A particle much smaller than the wavelength gives back the Rayleigh shape. One sphere can be computed up to a size parameter x = 2πr/λ of 10 000 (a 0.9 mm drop at 0.55 µm), large enough for the primary rainbow near 138° and the secondary near 130° to stand out from the ripples; a distribution up to x = 2000 at its largest radius, 6 reff. The radius slider ends at that limit for the current wavelength. A large sphere's ripples are finer than the plot can show, so the left plot then shades their range within each 0.25° and draws their mean. Dust is computed as spheres; real dust grains are not. Photons are sampled from the tabulated curve by inverting its cumulative distribution. See Chapter 13.
Which scattering angle does an observer see?
Θ is measured between the directions in which the light travels: sunlight travels downward, μ′ = −cos θ₀, and the scattered light travels toward the satellite (upward) or toward the ground observer's eye (downward along the line of sight). With φ′ and φ the azimuths of those two directions, the book's formula for the scattering angle gives
cos Θ = μμ′ + √(1 − μ²) √(1 − μ′²) cos(φ − φ′)
The app's relative azimuth Δφ is the azimuth of the satellite, seen from the scene, or of the line of sight, measured from the sun's azimuth. For a satellite this works out to cos Θ = −cos θ₀ cos θ − sin θ₀ sin θ cos Δφ: a satellite on the sun's side (Δφ = 0) at the sun's zenith angle sees exact backscatter, Θ = 180°. For the ground observer, cos Θ = cos θ₀ cos θ + sin θ₀ sin θ cos Δφ: looking toward the sun (Δφ = 0) samples small Θ, which is why haze brightens the sky around the sun. In the single-scattering limit the scattered radiance is proportional to p(Θ), so the ratio p(Θ)/p(90°) on the cards says how much brighter the scene is than at a 90° scattering angle with all else equal. See Chapter 12, "Ray-relative angles" and "RTE for Single Scattering".
What this app leaves out
Polarization (see the Rayleigh app and Chapter 13), multiple scattering (the Monte Carlo app), and the attenuation along the two paths, which multiplies p(Θ) in a real single-scattering problem. Oriented particles, whose phase function depends on more than Θ, are not modelled.