DirectPath

class nsb2.core.lightpath.DirectPath[source]

Bases: LightPath

Direct light: source, atmospheric extinction, then the pixel it lands in.

Parameters:
Raises:

TypeError – If solver is 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.

__init__(solver=None, name='')[source]
classmethod __new__(*args, **kwargs)