Skip to main content

mie_ab_to_optical_properties

mie_ab_to_optical_properties(ab, radius, wavelength, n_med) ⇒ object

Calculates the final optical properties by summing the Mie coefficients. This function implements Equations (2) and (3) from the 2007 paper "Computing the Scattering Properties of Participating Media..."

Kind: global function
Returns: object - An object with Q_e, Q_s, albedo, C_ext, and C_sca.

ParamTypeDescription
abFloat32ArrayThe flat array of a_n, b_n coefficients from LorenzMie_coefs.
radiusnumberParticle radius (in meters).
wavelengthnumberWavelength of light in vacuum (in meters).
n_medvec2Complex refractive index of the medium (e.g., [1.0, 0.0] for air).