Skip to main content

compute_mie_phase

compute_mie_phase(ab, C_sca, wavelength, n_med, cos_theta) ⇒ number

Computes the normalized Mie phase function value for a specific angle.

The phase function P(theta) is normalized such that the integral over 4pi solid angle is 4pi. This implementation uses the recurrence relations for angular functions pi_n and tau_n as described by Bohren & Huffman.

Kind: global function
Returns: number - The normalized phase function value P(theta).

ParamTypeDescription
abFloat32ArrayThe flat array of a_n, b_n coefficients from LorenzMie_coefs.
C_scanumbertotal scattering cross-section for normalization
wavelengthnumberWavelength of light in vacuum (in meters).
n_medvec2Complex refractive index of the medium.
cos_thetanumberCosine of the angle between incoming light and observation angle.