DirectPath¶
- class nsb2.core.lightpath.DirectPath[source]¶
Bases:
LightPathDirect light: source, atmospheric extinction, then the pixel it lands in.
- Parameters:
solver (nsb2.core.solver.DirectSolver, optional) – Rate computation strategy. Default is
ExplicitDirectSolver.name (str, optional) – Identifier for the path. Defaults to the class name.
- Raises:
TypeError – If
solveris not a ~nsb2.core.solver.DirectSolver.
Methods Summary
compile(source, instrument, atmosphere, **kwargs)Pre-compute the solver's lookup tables.
compute(source, instrument, atmosphere, ...)Compute the directly transmitted pixel rates.
Methods Documentation
- compile(source, instrument, atmosphere, **kwargs)[source]¶
Pre-compute the solver’s lookup tables.
See
LightPath.compile()for the parameters and returns.
- compute(source, instrument, atmosphere, observation)[source]¶
Compute the directly transmitted pixel rates.
See
LightPath.compute()for the parameters and returns. If no source falls into the field of view, the returned rates are zero.
- classmethod __new__(*args, **kwargs)¶