Atmosphere¶
- class nsb2.core.atmosphere.Atmosphere[source]¶
Bases:
ABCBase class for atmospheric models.
Subclasses implement
_compute_extinction()and_compute_scattering(). The publicextinction()andscattering()methods wrap those with the unit handling, so that implementations can work in plain arrays.Methods Summary
extinction(alt, az, wvl)Compute the transmission along a line of sight.
scattering(eval_alt, eval_az, alt, az, wvl)Compute the scattering kernel.
Methods Documentation
- extinction(alt, az, wvl)[source]¶
Compute the transmission along a line of sight.
- Parameters:
alt (array_like) – Source altitude and azimuth in radians.
az (array_like) – Source altitude and azimuth in radians.
wvl (astropy.units.Quantity) – Wavelength grid, shape
(W,).
- Returns:
Dimensionless transmission in
[0, 1], broadcastable to(..., W).- Return type:
- scattering(eval_alt, eval_az, alt, az, wvl)[source]¶
Compute the scattering kernel.
- Parameters:
eval_alt (array_like) – Altitude and azimuth of the direction being observed, in radians.
eval_az (array_like) – Altitude and azimuth of the direction being observed, in radians.
alt (array_like) – Altitude and azimuth of the illuminating source, in radians.
az (array_like) – Altitude and azimuth of the illuminating source, in radians.
wvl (astropy.units.Quantity) – Wavelength grid, shape
(W,).
- Returns:
Scattering kernel in
1 / sr, broadcastable to(..., W).- Return type:
- __init__()¶
- classmethod __new__(*args, **kwargs)¶