radphen-iadpython 0.7.0__py3-none-any.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- iadpython/__init__.py +59 -0
- iadpython/ad.py +1377 -0
- iadpython/agrid.py +306 -0
- iadpython/cache.py +133 -0
- iadpython/combine.py +620 -0
- iadpython/constants.py +3 -0
- iadpython/data/M38597.csv +759 -0
- iadpython/double.py +376 -0
- iadpython/fresnel.py +642 -0
- iadpython/grid.py +125 -0
- iadpython/iad.py +615 -0
- iadpython/iadc.py +1003 -0
- iadpython/iadcommand.py +712 -0
- iadpython/layer.py +241 -0
- iadpython/nist.py +114 -0
- iadpython/port.py +242 -0
- iadpython/quadrature.py +172 -0
- iadpython/redistribution.py +318 -0
- iadpython/rxt.py +201 -0
- iadpython/sphere.py +582 -0
- iadpython/start.py +377 -0
- iadpython/txt.py +147 -0
- radphen_iadpython-0.7.0.dist-info/METADATA +264 -0
- radphen_iadpython-0.7.0.dist-info/RECORD +28 -0
- radphen_iadpython-0.7.0.dist-info/WHEEL +5 -0
- radphen_iadpython-0.7.0.dist-info/entry_points.txt +2 -0
- radphen_iadpython-0.7.0.dist-info/licenses/LICENSE.txt +18 -0
- radphen_iadpython-0.7.0.dist-info/top_level.txt +1 -0
iadpython/__init__.py
ADDED
|
@@ -0,0 +1,59 @@
|
|
|
1
|
+
"""
|
|
2
|
+
Forward and inverse adding-doubling radiative transport calculations.
|
|
3
|
+
|
|
4
|
+
Extensive documentation is at <https://iadpython.readthedocs.io>
|
|
5
|
+
|
|
6
|
+
`iadpython` is a pure Python module to do radiative transport calculations
|
|
7
|
+
in layered slabs. Core forward and inverse calculations are available in
|
|
8
|
+
pure Python. Integrating-sphere support is being ported incrementally and
|
|
9
|
+
now includes single-sphere and double-sphere forward measurement formulas.
|
|
10
|
+
|
|
11
|
+
An example::
|
|
12
|
+
|
|
13
|
+
>>> import iadpython as iad
|
|
14
|
+
|
|
15
|
+
>>> mu_s = 10 # scattering coefficient [1/mm]
|
|
16
|
+
>>> mu_a = 0.1 # absorption coefficient [1/mm]
|
|
17
|
+
>>> g = 0.9 # scattering anisotropy
|
|
18
|
+
>>> d = 1 # thickness mm
|
|
19
|
+
|
|
20
|
+
>>> a = mu_s/(mu_a+mu_s)
|
|
21
|
+
>>> b = mu_s/(mu_a+mu_s) * d
|
|
22
|
+
|
|
23
|
+
>>> # air / glass / sample / glass / air
|
|
24
|
+
>>> s = iadpython.Sample(a=a, b=b, g=g, n=1.4, n_above=1.5, n_below=1.5)
|
|
25
|
+
>>> ur1, ut1, uru, utu = s.rt()
|
|
26
|
+
|
|
27
|
+
>>> print('Collimated light incident perpendicular to sample')
|
|
28
|
+
>>> print(' total reflection = %.5f' % ur1)
|
|
29
|
+
>>> print(' total transmission = %.5f' % ut1)
|
|
30
|
+
|
|
31
|
+
>>> print('Diffuse light incident on sample')
|
|
32
|
+
>>> print(' total reflection = %.5f' % uru)
|
|
33
|
+
>>> print(' total transmission = %.5f' % utu)
|
|
34
|
+
"""
|
|
35
|
+
|
|
36
|
+
__author__ = "Scott Prahl"
|
|
37
|
+
__email__ = "scott.prahl@oit.edu"
|
|
38
|
+
__copyright__ = "2018-2026, Scott Prahl"
|
|
39
|
+
__license__ = "MIT"
|
|
40
|
+
__url__ = "https://github.com/PanxoPanza/iadpython"
|
|
41
|
+
__version__ = "0.7.0"
|
|
42
|
+
|
|
43
|
+
from .constants import *
|
|
44
|
+
from .fresnel import *
|
|
45
|
+
from .start import *
|
|
46
|
+
from .ad import *
|
|
47
|
+
from .layer import *
|
|
48
|
+
from .quadrature import *
|
|
49
|
+
from .combine import *
|
|
50
|
+
from .redistribution import *
|
|
51
|
+
from .sphere import *
|
|
52
|
+
from .nist import *
|
|
53
|
+
from .iad import *
|
|
54
|
+
from .grid import *
|
|
55
|
+
from .agrid import *
|
|
56
|
+
from .rxt import *
|
|
57
|
+
from .txt import *
|
|
58
|
+
from .port import *
|
|
59
|
+
from .double import *
|