public class MeeusSun extends AbstractCelestialBody
This class implements the Sun ephemerides according to the algorithm of Meeus, it only provides the position. Note that it is not possible to build this Sun from the CelestialBodyFactory.
See "Astronomical Algorithms", chapter 24 "Solar Coordinates", Jean Meeus, 1991. This class allows the use of three different Meeus model : the standard Meeus model, the STELA one and the on board model (used for CERES mission for instance).
Note that pole information allowing to define inertially-centered frame and rotating frame are
defined in IAUPoleFactory
since Meeus model does not provide the information.
CelestialBody
,
Serialized FormModifier and Type | Class and Description |
---|---|
static class |
MeeusSun.MODEL
Enumerate to choose the used Meeus model : standard, Stela or board model.
|
EME2000_FRAME_NAME, ICRF_FRAME_NAME, INERTIAL_FRAME_CONSTANT_MODEL, INERTIAL_FRAME_MEAN_MODEL, INERTIAL_FRAME_TRUE_MODEL, ROTATING_FRAME_CONSTANT_MODEL, ROTATING_FRAME_MEAN_MODEL, ROTATING_FRAME_TRUE_MODEL
Constructor and Description |
---|
MeeusSun()
Simple constructor for standard Meeus model.
|
MeeusSun(MeeusSun.MODEL model)
Constructor to build wished Meeus model : standard model,
STELA model or board model.
|
Modifier and Type | Method and Description |
---|---|
static void |
resetTransform()
Reset cached transform.
|
String |
toString()
Returns a string representation of the body and its attributes.
|
static void |
updateTransform(AbsoluteDate date,
Frame frame)
Update cached transform from
FramesFactory.getMOD(boolean) to provided frame. |
getEME2000, getEphemeris, getGM, getGravityModel, getIAUPole, getICRF, getInertialFrame, getName, getNativeFrame, getPVCoordinates, getRotatingFrame, getShape, setEphemeris, setGM, setGravityModel, setIAUPole, setShape
public MeeusSun() throws PatriusException
PatriusException
- PatriusExceptionpublic MeeusSun(MeeusSun.MODEL model) throws PatriusException
model
- Meeus model to be usedPatriusException
- PatriusExceptionpublic String toString()
toString
in interface CelestialBody
toString
in class AbstractCelestialBody
public static void updateTransform(AbsoluteDate date, Frame frame) throws PatriusException
FramesFactory.getMOD(boolean)
to provided frame.
Once called, this transform will always be used when calling
AbstractCelestialBody.getPVCoordinates(AbsoluteDate, Frame)
unless a call to resetTransform()
has
been made.
Warning : this method must only be called if the chosen model is the Meeus STELA model.
date
- a dateframe
- a framePatriusException
- thrown if transformation failedpublic static void resetTransform()
Warning : this method must only be called if the chosen model is the Meeus STELA model.
Copyright © 2023 CNES. All rights reserved.