ScatteredPath

class nsb2.core.lightpath.ScatteredPath[source]

Bases: LightPath

Scattered light: the whole visible sky, scattered into the field of view.

The hemisphere is sampled on a HEALPix grid [Gorski2005] through healpy [Zonca2019], so every scattered prediction depends on them; see Acknowledgements.

Parameters:
  • solver (nsb2.core.solver.ScatteredSolver, optional) – Rate computation strategy. Default is ExplicitScatteredSolver.

  • name (str, optional) – Identifier for the path. Defaults to the class name.

  • nside (int, optional) – HEALPix resolution for the hemisphere query. Default is DEFAULT_NSIDE.

  • eval_grid_n (int, optional) – Number of evaluation grid points per axis, giving an eval_grid_n by eval_grid_n grid across the field of view. Default is DEFAULT_EVAL_GRID_N.

Raises:

TypeError – If solver is not a ~nsb2.core.solver.ScatteredSolver.

Methods Summary

compile(source, instrument, atmosphere, **kwargs)

Pre-compute the solver's lookup tables.

compute(source, instrument, atmosphere, ...)

Compute the in-scattered 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 in-scattered pixel rates.

See LightPath.compute() for the parameters and returns. If no source is above the horizon, the returned rates are zero.

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