stratified_coefficients#
- deeptrack.backend.mie.stratified_coefficients(m: list[complex], a: list[float], L: int) tuple[ndarray, ndarray]#
Calculate the Mie scattering coefficients for stratified spherical particles.
This function calculates the terms up to (and including) order L using Riccati-Bessel polynomials.
Parameters#
- m: list[complex]
The relative refractive indices of the particle layers (n_particle / n_medium).
- a: list[float]
The radii of the particle layers (> 0).
- L: int
The maximum order of the spherical harmonics to be calculated. If 0, two empty arrays are returned.
Returns#
- tuple[np.ndarray, np.ndarray]
A tuple containing arrays of coefficients an and bn, up to (and including) order L.