Computes E(z) = E0 * exp(-Kd * z). Vectorised over depth.
Details
This is the package's principal lightweight water-column model. It assumes that \(K_d\) is constant over the modeled path and propagates each wavelength independently. It does not solve the angular radiance field, multiple scattering, or wavelength redistribution. The scalar API has no inherent wavelength or depth range; the caller is responsible for supplying a \(K_d\) that is valid for the medium and path.
Examples
attenuate_depth(100, Kd = 0.06, depth = c(0, 10, 25, 50))
#> [1] 100.000000 54.881164 22.313016 4.978707