Class NslSun
java.lang.Object
gaiasky.util.coord.NslSun
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiondoubleangleBase(double x, int nRev) Puts an angle in the base interval [ 0, nRev*2*PI )doubledoubledoubleheliotropicToQuaternion(long t, double xi, double nu, double Omega) Method to convert heliotropic angles to quaternionvoidsetTime(double julianDate) Calculate all fields for a given julian date.voidsetTime(long tNs) Calculate all fields for a given time
-
Constructor Details
-
NslSun
public NslSun()Constructor
-
-
Method Details
-
setTime
public void setTime(double julianDate) Calculate all fields for a given julian date.- Parameters:
julianDate- The julian date.
-
setTime
public void setTime(long tNs) Calculate all fields for a given timeAuthor: F. Mignard
- Parameters:
tNs- time in [ns] since the time origin
-
getSolarLongitude
public double getSolarLongitude()- Returns:
- solar longitude in [rad]
-
getSolarLongitudeMod4Pi
public double getSolarLongitudeMod4Pi()- Returns:
- solar longitude in [rad], modulo 4*PI
-
getSolarLongitudeDot
public double getSolarLongitudeDot()- Returns:
- time derivative of solar longitude in [rad/day]
-
getSolarDirection
-
heliotropicToQuaternion
Method to convert heliotropic angles to quaternion- Parameters:
t- time [ns]xi- revolving angle (solar aspect angle) [rad]nu- revolving phase [rad]Omega- spin phase [rad]- Returns:
- attitude quaternion
-
angleBase
public double angleBase(double x, int nRev) Puts an angle in the base interval [ 0, nRev*2*PI )- Parameters:
x- angle [rad]nRev- number of revolutions in base interval- Returns:
- angle in base interval [rad]
-