Grid

class iadpython.grid.Grid(search=None, default=None, N=21)[source]

Bases: object

Class to track pre-calculated R & T values.

There is a long story associated with these routines. I spent a lot of time trying to find an empirical function to allow a guess at a starting value for the inversion routine. Basically nothing worked very well. There were too many special cases and what not. So I decided to calculate a whole bunch of reflection and transmission values and keep their associated optical properties linked nearby.

Methods Summary

calc(exp[, default])

Precalculate a grid.

is_stale(default)

Decide if current grid is still useful.

min_abg(mr, mt)

Find closest a, b, g closest to mr and mt.

Methods Documentation

calc(exp, default=None)[source]

Precalculate a grid.

is_stale(default)[source]

Decide if current grid is still useful.

min_abg(mr, mt)[source]

Find closest a, b, g closest to mr and mt.