helioecliptic_longitude¶
- nsb2.emitter.zodiacal.helioecliptic_longitude(lon)[source]¶
Fold an ecliptic longitude onto the Sun-facing half of the sky.
Longitudes come out of
SunRelativeEclipticFramenormalised to[0, 2 pi), so they are wrapped to[-pi, pi)before the absolute value is taken.- Parameters:
lon (array_like) – Ecliptic longitude relative to the Sun, in radians.
- Returns:
Absolute helioecliptic longitude in
[0, pi].- Return type:
Examples
>>> import numpy as np >>> round(float(np.degrees(helioecliptic_longitude(np.radians(350.0)))), 6) 10.0