public class Earth extends Object implements IAUCelestialBody
CelestialPoint.BodyNatureECLIPTICJ2000_FRAME_NAME, EME2000_FRAME_NAME, ICRF_FRAME_NAME| Constructor and Description |
|---|
Earth(String name,
double gm)
Constructor.
|
| Modifier and Type | Method and Description |
|---|---|
CelestialBodyFrame |
getEclipticJ2000()
Get an Ecliptic J200, celestial point centered frame.
|
CelestialBodyFrame |
getEME2000()
Get an EME2000, celestial point centered frame.
|
CelestialBodyEphemeris |
getEphemeris()
Get the ephemeris of the celestial point.
|
double |
getGM()
Get the central attraction coefficient of the celestial point.
|
GravityModel |
getGravityModel()
Getter for the gravitational attraction model of the body.
|
CelestialBodyFrame |
getICRF()
Get an ICRF, celestial point centered frame.
|
CelestialBodyFrame |
getInertialFrame(IAUPoleModelType iauPole)
Getter for an inertially oriented, body centered frame.
|
String |
getName()
Getter for the name of the body.
|
Frame |
getNativeFrame(AbsoluteDate date)
Get the native frame, i.e. the raw frame in which PVCoordinates are expressed before transformation to user
output frame.
|
CelestialBodyIAUOrientation |
getOrientation()
Getter for the celestial body IAU orientation and primer meridians orientation.
|
PVCoordinates |
getPVCoordinates(AbsoluteDate date,
Frame frame)
Get the
PVCoordinates of the body in the selected frame. |
CelestialBodyFrame |
getRotatingFrame(IAUPoleModelType iauPole)
Getter for a body oriented, body centered frame.
|
BodyShape |
getShape()
Getter for the geometric shape of the body.
|
void |
setEphemeris(CelestialBodyEphemeris ephemerisIn)
Set an ephemeris to the celestial point.
|
void |
setGM(double gmIn)
Set a central attraction coefficient to the celestial point.
|
void |
setGravityModel(GravityModel modelIn)
Setter for a gravitational attraction model to the body.
|
void |
setOrientation(CelestialBodyOrientation celestialBodyOrientation)
Setter for a celestial body orientation to define the body frames.
|
void |
setShape(BodyShape shapeIn)
Setter for a geometric shape to the body.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetInertialFrame, getRotatingFramegetBodyNaturetoStringpublic Earth(String name, double gm) throws PatriusException
name - namegm - gravitational parameterPatriusException - thrown if failedpublic PVCoordinates getPVCoordinates(AbsoluteDate date, Frame frame) throws PatriusException
PVCoordinates of the body in the selected frame.getPVCoordinates in interface PVCoordinatesProviderdate - current dateframe - the frame where to define the positionPatriusException - if position cannot be computed in given framepublic CelestialBodyEphemeris getEphemeris()
getEphemeris in interface CelestialPointpublic void setEphemeris(CelestialBodyEphemeris ephemerisIn)
setEphemeris in interface CelestialPointephemerisIn - the ephemerispublic Frame getNativeFrame(AbsoluteDate date) throws PatriusException
getNativeFrame in interface PVCoordinatesProviderdate - a datePatriusException - thrown if native frame is undefined or unknownpublic CelestialBodyFrame getICRF()
The frame is always bound to the celestial point, and its axes have a fixed orientation with respect to other inertial frames.
getICRF in interface CelestialPointCelestialBody.getRotatingFrame()public CelestialBodyFrame getEME2000()
The frame is always bound to the celestial point center, and its axes are colinear to Earth EME2000 frame.
getEME2000 in interface CelestialPointpublic CelestialBodyFrame getEclipticJ2000() throws PatriusException
The frame is always bound to the celestial point center with constant rotation relative to the ICRF.
getEclipticJ2000 in interface CelestialPointPatriusException - if frame cannot be retrievedpublic CelestialBodyFrame getInertialFrame(IAUPoleModelType iauPole) throws PatriusException
Warning: Inertiality of such frame depends on its definition and on its use: if related
CelestialBodyOrientation includes strong precession/nutation effect and temporal horizon of use is long,
frame may not be considered inertial. As a rule of thumb, precession/nutation effects of Earth frames such as
CIRF/MOD are considered small enough on a horizon of a day to consider them pseudo-inertial. Also frames based on
IAUPoleModelType.CONSTANT will be more inertial than IAUPoleModelType.MEAN and than
IAUPoleModelType.TRUE. Similarly, models including IAUPoleFunction.IAUTimeDependency.DAYS with high values will
tend to be less inertial than models including IAUPoleFunction.IAUTimeDependency.CENTURIES with high values. Definition
of sufficiently inertial precession/nutation effects remains on the user responsibility depending on the frame
usage.
getInertialFrame in interface IAUCelestialBodyiauPole - the type of IAUPole used for the framePatriusException - if frame cannot be retrievedpublic CelestialBodyFrame getRotatingFrame(IAUPoleModelType iauPole) throws PatriusException
getRotatingFrame in interface IAUCelestialBodyiauPole - the type of IAUPole used for the framePatriusException - if frame cannot be retrievedpublic String getName()
getName in interface CelestialBodygetName in interface CelestialPointpublic BodyShape getShape()
getShape in interface CelestialBodypublic void setShape(BodyShape shapeIn)
setShape in interface CelestialBodyshapeIn - the shape of the bodypublic GravityModel getGravityModel()
getGravityModel in interface CelestialBodypublic void setGravityModel(GravityModel modelIn)
setGravityModel in interface CelestialBodymodelIn - the gravitational attraction modelpublic double getGM()
Warning: attraction model should not be null (it is not null by default).
getGM in interface CelestialPointpublic void setGM(double gmIn)
setGM in interface CelestialPointgmIn - the central attraction coefficient (m3/s2)public CelestialBodyIAUOrientation getOrientation()
getOrientation in interface CelestialBodygetOrientation in interface IAUCelestialBodypublic void setOrientation(CelestialBodyOrientation celestialBodyOrientation)
setOrientation in interface CelestialBodycelestialBodyOrientation - the celestial body orientationCopyright © 2025 CNES. All rights reserved.