Skip to main content

'Forward and inverse radiative transport using adding-doubling'

Project description

https://img.shields.io/pypi/v/iadpython.svg https://colab.research.google.com/assets/colab-badge.svg https://img.shields.io/badge/readthedocs-latest-blue.svg https://img.shields.io/badge/github-code-green.svg https://img.shields.io/badge/BSD-license-yellow.svg https://github.com/scottprahl/iadpython/actions/workflows/test.yml/badge.svg

iadpython will ultimately be a pure Python module to calculate multiple light scattering (radiative transport) in layered materials. Calculations are done using van de Hulst’s adding-doubling technique.

Currently, the pure-python code only does the forward calculation. The long-term goal is to do the inverse calculation (reflection and transmission measurements to intrinsic absorption and scattering properties).

To do inverse calculations, a python interface to the inverse adding-doubling package written in C by Scott Prahl. This works nows but is a nuisance to install an maintain because of the dependence on the C library.

The original adding-doubling was developed by van de Hulst to model light propagation through layered media. It was extended to handle Fresnel reflection at boundaries as well as interactions with integrating spheres. Finally, the code was further extended to handle lost light by including Monte Carlo techniques.

Usage

import iadpython as iad

albedo = 0.8 anisotropy = 0.9 optical_thickness = 2.0

UR1, UT1 = iad.

For examples and use cases, see the docs folder on github or view iadpython.readthedocs.com

Installation

First install the iad library

git clone https://github.com/scottprahl/iad.git

cd iad make install-lib

Then install this python module using pip

pip install –user iadpython

Test by changing the iadpython directory and doing

prompt> ad -a 0.5

Then, add the iadpython directory to your PYTHONPATH or somehow

Dependencies

For installation: setuptools

Required Python modules: numpy, matplotlib, ctypes, scipy

License

iadpython is licensed under the terms of the MIT license.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

iadpython-0.4.0.tar.gz (35.3 kB view hashes)

Uploaded Source

Built Distribution

iadpython-0.4.0-py3-none-any.whl (36.3 kB view hashes)

Uploaded Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page