LinComb
- class rt1_model.volume.LinComb(choices=None, **kwargs)
Class to generate linear-combinations of scattering distribution functions.
For details please look at the documentation (http://rt1.readthedocs.io/en/latest/model_specification.html#linear-combination-of-scattering-distributions)
- Parameters:
choices ([ (float, ScatterObject) , (float, ScatterObject) , ...]) –
A list that contains the the individual scattering functions and the associated weighting-factors for the linear-combination.
The weights can be either numerical values or strings (which will be parsed as sympy expressions)
Examples
Defining linear-combinations of volume- or surface scattering distributions works completely similar:
>>> from rt1_model import volume >>> V = volume.LinComb([(0.5, volume.Isotropic()), (0.5, volume.Rayleigh())])
>>> from rt1_model import surface >>> V = surface.LinComb([(0.5, surface.Isotropic()), (0.5, surface.HenyeyGreenstein(t="t", ncoefs=10))])
You can also use expressions for the weights!
>>> from rt1_model import surface >>> V = surface.LinComb([("x", surface.Isotropic()), ("1 - x", surface.HenyeyGreenstein(t="t", ncoefs=10))])
Methods
|
Class to generate linear-combinations of scattering distribution functions. |
|
Calculate numerical value of the scattering function. |
|
Generalized scattering angle with respect to the given zenith-angles. |
|
Legendre-expansion of the scattering distribution function. |
Attributes
Legendre coefficients of the BRDF. |
|
The number of coefficients used in the legendre expansion. |
|
Phase function as sympy expression for later evaluation. |
|
The generalized scattering angle as a sympy expression. |