Computes a matrix of Mie coefficients:
of orders \(n=1\) to \(n_{max}\), complex refractive index \(m=m^\prime + im^{\prime\prime}\), and size parameter \(x=k_0\cdot r\), where \(k_0\) is the wave number in the ambient medium, \(r\) sphere radius;
Reference: p. 100, 477 in Bohren and Huffman (1983) BEWI:TDD122
There is a limitation for the maximum allowable \(x\) for this function. I have not yet verified from where it comes from (limit: \(x = 180\), which yields a maximum particle size of about \(30\mu m\) in air)
Adapted from Matlab code (Dec 2012) Vectorized (Apr 2013)
Parameters : | m : real or complex
x : numpy.array (M)
|
---|---|
Returns : | (an, bn) : numpy.array (\(n_{max}\), M)
|
Raises : | ValueError :
|