|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.orekit.bodies.AbstractCelestialBody org.orekit.bodies.MeeusSun
public class MeeusSun
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). About Stela's implementation of this model :This class contains methods to store AbstractCelestialBody.getInertiallyOrientedFrame()
to integration frame (CIRF) transform
to speed up computation during the integration process if Stela model have been chosen.
As this transform varies slowly through time, it has been
shown it is not necessary to recompute it every time. Warning: these methods should not be used in a
stand-alone use (unless you known what you are doing). There are two methods:
updateTransform(AbsoluteDate, Frame)
: store transform from AbstractCelestialBody.getInertiallyOrientedFrame()
to
provided frame at provided date.resetTransform()
: reset stored transform.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 FormNested Class Summary | |
---|---|
static class |
MeeusSun.MODEL
Enumerate to choose the used Meeus model : standard, Stela or board model. |
Constructor Summary | |
---|---|
MeeusSun()
Simple constructor for standard Meeus model. |
|
MeeusSun(MeeusSun.MODEL model)
Constructor to build wished Meeus model : standard model, STELA model or board model. |
Method Summary | |
---|---|
PVCoordinates |
getPVCoordinates(AbsoluteDate date,
Frame frame)
Get the PVCoordinates of the body in the selected frame. |
static void |
resetTransform()
Reset cached transform. |
static void |
updateTransform(AbsoluteDate date,
Frame frame)
Update cached transform from FramesFactory.getMOD(boolean) to provided frame. |
Methods inherited from class org.orekit.bodies.AbstractCelestialBody |
---|
getBodyOrientedFrame, getFrame, getGM, getInertiallyOrientedFrame, getName |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public MeeusSun() throws OrekitException
OrekitException
- if data embedded in the library cannot be readpublic MeeusSun(MeeusSun.MODEL model) throws OrekitException
model
- Meeus model to be used
OrekitException
- if data embedded in the library cannot be readMethod Detail |
---|
public PVCoordinates getPVCoordinates(AbsoluteDate date, Frame frame) throws OrekitException
AbstractCelestialBody
PVCoordinates
of the body in the selected frame.
getPVCoordinates
in interface PVCoordinatesProvider
getPVCoordinates
in class AbstractCelestialBody
date
- current dateframe
- the frame where to define the position
OrekitException
- if position cannot be computed in given framepublic static void updateTransform(AbsoluteDate date, Frame frame) throws OrekitException
FramesFactory.getMOD(boolean)
to provided frame.
Once called, this transform will always be used when calling 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 frame
OrekitException
- thrown if transformation failedpublic static void resetTransform()
Warning : this method must only be called if the chosen model is the Meeus STELA model.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |