to check if your value makes sense compare to calculation with: http://omlc.org/calc/mie_calc.html
In [5]:
from atmPy.mie import bhmie
In [7]:
radius = .1 #micrometer
lambda_laser = .650 #micrometer
sizeParam = 2 * np.pi/lambda_laser * radius
n = complex(1.5,0.01) #refractive index
noOfAngles = 100 # this is the number of angles to be calculated between 0 and 90 degrees (i think)
mie = bhmie.bhmie_hagen(sizeParam, n, noOfAngles, 2*radius) # the last parameter is nesessary to calculate the scattering efficiency.
res = mie.return_Values_as_dict()
In [8]:
res.keys()
Out[8]:
In [9]:
res['extinction_crosssection']
Out[9]:
In [ ]: