Beta angle to right ascension of ascending node
[raan1,raan2] = CL_gm_beta2raan(betaa,inc,alpha_sun,delta_sun)
Computes the right ascension of the ascending node from the beta angle (beta angle = angle between the satellite's orbit plane and the Sun direction).
There are 2 solutions (raan1) and (raan2) such that:
- raan2 = pi - raan1 + 2*alpha_sun
- raan1 is in the interval [ alpha_sun - pi/2 ; alpha_sun + pi/2] modulo 2*pi
- raan2 is in the interval [ alpha_sun + pi/2 ; alpha_sun + 3*pi/2] modulo 2*pi
Notes:
- The beta angle is a signed quantity. If it is positive then the Sun direction is less than 90 degrees from the orbit's angular momentum vector (vector perpendicular to the orbit plane and oriented according to right hand rule).
- Rhe right ascension can be undefined (%nan) if there are no solutions.
- Be careful about the order of arguments: beta angle, inclination...
Beta angle [rad] (1xN)
Inclination of the orbit [rad] (1xN)
Sun right ascension [rad] (1xN)
Sun declination [rad] (1xN)
Right ascension of the ascending node (solution 1) [rad] (1xN)
Right ascension of the ascending node (solution 2) [rad] (1xN)
CNES - DCT/SB