|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.orekit.bodies.JPLEphemeridesLoader
public class JPLEphemeridesLoader
Loader for JPL ephemerides binary files (DE 405, DE 406).
JPL ephemerides binary files contain ephemerides for all solar system planets.
The JPL ephemerides binary files are recognized thanks to their base names,
which must match the pattern unx[mp]####.ddd (or
unx[mp]####.ddd.gz for gzip-compressed files) where # stands for a
digit character and where ddd is an ephemeris type (typically 405 or 406).
| Nested Class Summary | |
|---|---|
static class |
JPLEphemeridesLoader.EphemerisType
List of supported ephemerides types. |
| Constructor Summary | |
|---|---|
JPLEphemeridesLoader(java.lang.String supportedNames,
JPLEphemeridesLoader.EphemerisType generateType,
AbsoluteDate centralDate)
Create a loader for JPL ephemerides binary files. |
|
| Method Summary | |
|---|---|
boolean |
foundData()
Check if some data have already been loaded. |
static double |
getAstronomicalUnit()
Deprecated. as of 4.2, replaced by the non-static method getLoadedAstronomicalUnit() |
static double |
getConstant(java.lang.String name)
Deprecated. as of 4.2, replaced by the non-static method getLoadedConstant(String) |
static double |
getEarthMoonMassRatio()
Deprecated. as of 4.2, replaced by the non-static method getLoadedEarthMoonMassRatio() |
static double |
getGravitationalCoefficient(JPLEphemeridesLoader.EphemerisType body)
Deprecated. as of 4.2, replaced by the non-static method getLoadedGravitationalCoefficient(EphemerisType) |
double |
getLoadedAstronomicalUnit()
Get astronomical unit. |
double |
getLoadedConstant(java.lang.String name)
Get a constant defined in the ephemerides headers. |
double |
getLoadedEarthMoonMassRatio()
Get Earth/Moon mass ratio. |
double |
getLoadedGravitationalCoefficient(JPLEphemeridesLoader.EphemerisType body)
Get the gravitational coefficient of a body. |
double |
getMaxChunksDuration()
Get the maximal chunks duration. |
java.lang.String |
getSupportedNames()
Get the regular expression for supported PV coordinates files names. |
CelestialBody |
loadCelestialBody(java.lang.String name)
Load celestial body. |
void |
loadData(java.io.InputStream input,
java.lang.String name)
Load data from a stream. |
boolean |
stillAcceptsData()
Check if the loader still accepts new data. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public JPLEphemeridesLoader(java.lang.String supportedNames,
JPLEphemeridesLoader.EphemerisType generateType,
AbsoluteDate centralDate)
throws OrekitException
If the regular expression for supported names is null or is the empty string, a default value of "^unx[mp](\\d\\d\\d\\d)\\.(?:(?:405)|(?:406))$" supporting both DE405 and DE406 ephemerides is used.
The central date is used to load only a part of an ephemeris. If it is non-null, all data within a +/-50 days range around this date will be loaded. If it is null, an arbitrary 100 days range will be loaded, this is useful to load only data from the header like astronomical unit or gravity coefficients.
supportedNames - regular expression for supported files names
(may be null)generateType - ephemeris type to generatecentralDate - desired central date (may be null)
OrekitException - if the header constants cannot be read| Method Detail |
|---|
public CelestialBody loadCelestialBody(java.lang.String name)
throws OrekitException
loadCelestialBody in interface CelestialBodyLoadername - name of the celestial body
OrekitException - if the body cannot be loadedpublic boolean foundData()
foundData in interface CelestialBodyLoaderpublic java.lang.String getSupportedNames()
getSupportedNames in interface CelestialBodyLoader
@Deprecated
public static double getAstronomicalUnit()
throws OrekitException
getLoadedAstronomicalUnit()
This method loads its constants from the files using the default JPL names only.
OrekitException - if constants cannot be loaded
public double getLoadedAstronomicalUnit()
throws OrekitException
OrekitException - if constants cannot be loaded
@Deprecated
public static double getEarthMoonMassRatio()
throws OrekitException
getLoadedEarthMoonMassRatio()
This method loads its constants from the files using the default JPL names only.
OrekitException - if constants cannot be loaded
public double getLoadedEarthMoonMassRatio()
throws OrekitException
OrekitException - if constants cannot be loaded
@Deprecated
public static double getGravitationalCoefficient(JPLEphemeridesLoader.EphemerisType body)
throws OrekitException
getLoadedGravitationalCoefficient(EphemerisType)
This method loads its constants from the files using the default JPL names only.
body - body for which the gravitational coefficient is requested
OrekitException - if constants cannot be loaded
public double getLoadedGravitationalCoefficient(JPLEphemeridesLoader.EphemerisType body)
throws OrekitException
body - body for which the gravitational coefficient is requested
OrekitException - if constants cannot be loaded
@Deprecated
public static double getConstant(java.lang.String name)
throws OrekitException
getLoadedConstant(String)
This method loads its constants from the files using the default JPL names only.
Note that since constants are defined in the JPL headers files, they are available as soon as one file is available, even if it doesn't match the desired central date. This is because the header must be parsed before the dates can be checked.
name - name of the constant
OrekitException - if constants cannot be loaded
public double getLoadedConstant(java.lang.String name)
throws OrekitException
Note that since constants are defined in the JPL headers files, they are available as soon as one file is available, even if it doesn't match the desired central date. This is because the header must be parsed before the dates can be checked.
name - name of the constant
OrekitException - if constants cannot be loadedpublic double getMaxChunksDuration()
public boolean stillAcceptsData()
This method is used to speed up data loading by interrupting crawling the data sets as soon as a loader has found the data it was waiting for. For loaders that can merge data from any number of sources (for example JPL ephemerides or Earth Orientation Parameters that are split among several files), this method should always return true to make sure no data is left over.
stillAcceptsData in interface DataLoader
public void loadData(java.io.InputStream input,
java.lang.String name)
throws OrekitException,
java.io.IOException
loadData in interface DataLoaderinput - data input streamname - name of the file (or zip entry)
OrekitException - if some data is missing
or if some loader specific error occurs
java.io.IOException - if data can't be read
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||