zodiacal_color_factor¶
-
skysim.zodiacal.
zodiacal_color_factor
(lam, elong)[source]¶ Calculate the redenning of the solar spectrum.
Interpolate in ecliptic longitude between the color factors calculated with equation (22) of Leinert 1998, as described in Section 8.4.2.
The output is automatically broadcast over its inputs.
- Parameters
- lamfloat or array
Observed wavelength in nm.
- elongfloat or array
Ecliptic elongation angle in degrees, which can be obtained using
ecl_elong()
.
- Returns
- float or array
The color correction factor(s) to apply to the solar spectrum.