Physics guide
Optical thickness from water and droplet size
A droplet of radius r removes Qextπr² from a beam, and for cloud droplets in visible light Qext ≈ 2. Its mass is ρw(4π/3)r³. So extinction per unit mass of water is kext = 3Qext/(4ρwr), and a layer with liquid water path L, the column mass of cloud water per unit area, has
τ⋆ = kext L = 3Qext L / (4ρw r) ≈ 3L / (2ρw r)
Thermodynamics, through how far the air is lifted, sets how much water condenses. The CCN set how many droplets share it. With L = 0.5 kg m⁻² and r = 10 µm, τ⋆ ≈ 75. The volume extinction coefficient inside the cloud is βext = kext × LWC, and τ⋆ = βextH for a uniform layer of depth H. See Chapter 8, "Optical thickness of clouds".
Effective radius and the size distribution
Real droplets come in a range of sizes, n(r). With Qext = 2 for every size, the same formula holds when r is replaced by the effective radius,
reff = ∫ n(r) r³ dr / ∫ n(r) r² dr
That is the ratio of the droplets' volume, which holds the water, to their cross section, which does the extinguishing. The app uses the modified gamma distribution n(r) ∝ r(1−3v)/v e−r/(reffv), whose effective variance v measures its width (about 0.1 for typical water clouds). For it, ⟨r²⟩ = reff²(1 − v)(1 − 2v) and ⟨r³⟩ = reff³(1 − v)(1 − 2v). The mean radius ⟨r⟩ = reff(1 − 2v) is smaller than reff, because the large drops carry most of the water. The number concentration follows from the water: N = LWC / [ρw(4π/3)⟨r³⟩]. So at the same N and LWC, a wider distribution has a larger reff and a smaller τ⋆. See Chapter 8, "Polydisperse cloud".
More droplets, same water: ship tracks
At fixed water, r ∝ N−1/3, so for a monodisperse layer of depth H
τ⋆ = Qext [9πL²H N / (16ρw²)]1/3 ∝ N1/3
Four times the droplets gives 41/3 ≈ 1.59 times the optical thickness. Ship exhaust adds CCN, and the extra, smaller droplets brighten the cloud along the ship's path. A ship adds roughly the same number of droplets ΔN wherever it sails, so the track's optical thickness grows by (1 + ΔN/N)1/3. In clean marine air with N = 50 cm⁻³, ΔN = 150 quadruples N and τ⋆ grows by 1.59. In polluted air with N = 500, the same ship adds only 30 % to N and 9 % to τ⋆. That is why ship tracks are seen over remote oceans and hardly ever downwind of polluted coasts. In real polluted air the effect is smaller still: the extra particles compete for the same water vapour, so fewer of them activate. The app ignores that competition. That brightening is the aerosol indirect (Twomey) effect. How much brighter depends on where the cloud starts. The albedo changes fastest with τ⋆ when 𝓡 is middling (the lower panel of the "same water" plot). Real ship tracks also change the cloud water itself, in either direction. This app holds L fixed, isolating the Twomey part. See Chapter 8, "Cloud condensation nuclei and cloud optical thickness", and Fig. 8.12.
The direct beam and the sun's disk
The unscattered sunlight that reaches the cloud base is 𝒯dir = e−τ⋆/μ₀, with μ₀ = cos θ₀. It falls to 1 % at τ⋆ = 4.6μ₀. Yet the sun's disk can still be seen through thicker clouds. What matters to the eye is the disk's brightness compared with the scattered light around it. The app compares the disk's radiance, F₀e−τ⋆/μ₀/Ωsun, with the radiance of an evenly lit sky, μ₀F₀𝓣diff/π. Because the disk subtends only Ωsun ≈ 6.8 × 10⁻⁵ sr, even a faint direct beam outshines the sky around it. The verdicts are rough: dazzling above a ratio of 1000, clearly visible above 10, faint above 1, and not visible below that. The model leaves out the bright aureole that forward scattering puts around the sun, which makes a thin cloud's sun look larger and softer. See Chapter 8, "Optical thickness of clouds".
Visibility in fog
Inside the cloud, an object vanishes when its contrast against the background falls below a threshold. With the standard 5 % threshold (the meteorological optical range), the visibility is −ln(0.05)/βext ≈ 3/βext, the distance at which τ ≈ 3. Fog with 0.1 g m⁻³ in 10 µm droplets has βext ≈ 15 km⁻¹ and a visibility of about 200 m. The same water in 1 mm raindrops gives βext ≈ 0.15 km⁻¹, and distant hills stay in view. See Chapter 8, "Optical thickness of clouds".
Albedo and transmittance
𝓡, 𝓣 and 𝓐 come from the book's two-stream solution. With Qext = 2 the cloud is taken as nonabsorbing (ω₀ = 1) with g = 0.85, typical of visible light. Then 𝓡 = (1 − g)τ⋆/[1 + (1 − g)τ⋆]. With Mie theory, ω₀ and g are those of the droplets at the chosen wavelength. Like the book's two-stream, the result doesn't depend on the sun's angle, so θ₀ changes only the direct beam and the sun's disk. 𝓣diff is the two-stream 𝓣 minus its direct part e−2τ⋆ (the two-stream's fixed 60° path). Over a reflecting surface of albedo A, the system albedo is 𝓡 = 𝓡 + 𝓣²A/(1 − 𝓡A). See Chapter 14 and the two-stream app.
Mie theory instead of Qext = 2
Qext = 2 is the large-particle limit. For a droplet of size parameter x = 2πr/λ, Mie theory gives Qext ripples about 2 that grow toward a maximum near x ≈ 6, then fall away for small x. The Mie option computes kext, ω₀ and g for the whole distribution at one wavelength, and τ⋆ = kextL. A single size is averaged over ±5 % to smooth the ripples, as in the Mie explorer. In the near infrared, water absorbs. At 1.6, 2.13 and 3.7 µm, large droplets absorb more and so reflect less. That is how satellites measure reff (Chapter 15). At 11 µm, the drops absorb so strongly that a cloud is nearly black. The size parameter is capped at 2000, so for reff beyond about 29 µm at 0.55 µm the app uses the large-particle limit (Qext = 2, ω₀ = 1, g = 0.87) and says so. The view from below and the sun's-disk verdict assume visible light. At 3.7 and 11 µm, the cloud's own thermal emission, which this app leaves out, would light up the sky.
What this app leaves out
The cloud is a uniform plane-parallel layer. Real clouds are adiabatic-like, with reff growing toward cloud top, broken into cells, and lit from the side, and none of that is here. The ship track changes N only, not L. The droplet picture samples the distribution but places drops at random, with no clustering. The albedo is the book's two-stream, which can be off by several percent (see the Monte Carlo app).