get_airglow¶
-
skysim.airglow.
get_airglow
(lam, z, p=744.0, H=2.64, Rayleigh=True, Mie=True, absorption=True)[source]¶ Calculate airglow flux.
Automatically broadcasts over input arrays, but the wavelength input
lam
must be 1D and appear in the last axis.The CPU time scales with the number of unique values in
z
so calculating on a grid with many duplicates of the same value is relatively efficient (e.g.,skysim.utils.AltAzGrid
).- Parameters
- lamfloat or 1D array
Wavelength in nanometers.
- zfloat or array
Zenith angle(s) in degrees.
- pfloat or array
Pressure at the observation elevation in hPa, used for Rayleigh scattering.
- Hfloat or array
Elevation of the observation in km, used for Rayleigh scattering.
- Rayleighbool
Apply Rayleigh scattering effects.
- Miebool
Apply aerosol Mie scattering effects.
- absorptionbool
Apply molecular (but not ozone) absorption effects.
- Returns
- tuple
Tuple (cont, line) of arrays of airglow continuum and line fluxes in ph / (s cm2 nm).