Python API Reference
The disortpp Python module exposes the full DisORT++ C++ API through
pybind11 bindings. Build with -DBUILD_PYTHON_BINDINGS=ON to compile the
module (see Installation).
import disortpp
The Python API closely mirrors the C++ interface, with the following naming conventions:
C++
camelCasemethods become Pythonsnake_case(e.g.,setHenyeyGreensteinbecomesset_henyey_greenstein).C++
enum classvalues are accessed as attributes (e.g.,disortpp.PhaseFunction.Rayleigh).C++
std::vector<double>maps to Pythonlist[float]. Results can be converted to NumPy arrays withnp.array(result.flux_up).C++
std::vector<std::pair<double, double>>maps to Pythonlist[tuple[float, float]].
All solver calls release the Python GIL, allowing concurrent Python threads to proceed during computation.
Enumerations
disortpp.PhaseFunction.Isotropic
disortpp.PhaseFunction.Rayleigh
disortpp.PhaseFunction.HenyeyGreenstein
disortpp.PhaseFunction.HazeGarciaSiewert
disortpp.PhaseFunction.CloudGarciaSiewert
disortpp.BoundaryConditionType.General
disortpp.BoundaryConditionType.Special
disortpp.BrdfType.NONE
disortpp.BrdfType.RPV
disortpp.BrdfType.CoxMunk
disortpp.BrdfType.Ambrals
disortpp.BrdfType.Hapke