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 :
|
elif x<=0.05: |
|
return RayleighMieQ(m, wavelength, diameter, nMedium, asDict) |
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.
Hello,
According to the documentation, the function
AutoMieQshould give the possibility to automatically switch to the Rayleigh approximation whenx = pi*diameter/wavelengthis below a given threshold. However, to my understanding, the functionMieQoverrides this threshold if it is below 0.05 :PyMieScatt/PyMieScatt/Mie.py
Lines 22 to 23 in d075b44
From the documentation, I wouldn't even expect the two lines above to be in the
MieQfunction.Also, I found that a threshold of 0.05 sometimes leads to significant errors.