PyMieScatt icon indicating copy to clipboard operation
PyMieScatt copied to clipboard

Mie / Rayleigh threshold overridden

Open esqt opened this issue 4 years ago • 0 comments

Hello,

According to the documentation, the function AutoMieQ should give the possibility to automatically switch to the Rayleigh approximation when x = pi*diameter/wavelength is below a given threshold. However, to my understanding, the function MieQ overrides this threshold if it is below 0.05 :

https://github.com/bsumlin/PyMieScatt/blob/d075b442731edeb4a38b3b99cb1867c6c87552be/PyMieScatt/Mie.py#L22-L23

From the documentation, I wouldn't even expect the two lines above to be in the MieQ function.

Also, I found that a threshold of 0.05 sometimes leads to significant errors.

esqt avatar Mar 04 '21 14:03 esqt