public class BSPCelestialBodyLoader extends AbstractJPLCelestialBodyLoader
CelestialPoint
. For CelestialBodyEphemeris
loader only, see dedicated class.
BSP ephemerides binary files contain ephemerides for any solar system body (depending on what is included in the file).
Modifier and Type | Class and Description |
---|---|
static class |
BSPCelestialBodyLoader.SSBEphemeris
Solar System Barycenter ephemeris specifically defined in its own class since SSB is not in BSP files, hence
cannot be handled by
BSPEphemerisLoader . |
Modifier and Type | Field and Description |
---|---|
static String |
DEFAULT_BSP_SUPPORTED_NAMES
Default supported files name pattern for BSP files.
|
static String |
EARTH_MOON
Predefined name for Earth-Moon barycenter in BSP files.
|
Constructor and Description |
---|
BSPCelestialBodyLoader(String supportedNamesIn)
Create a loader for JPL ephemerides binary files (BSP type).
|
Modifier and Type | Method and Description |
---|---|
void |
declareAsCelestialPoint(String name)
Declare a name of a body as a
CelestialPoint .Object will be built as CelestialPoint instead of CelestialBody . |
String |
getName(String patriusName)
Returns name of body as known by the loader corresponding to PATRIUS body name.
|
CelestialBody |
loadCelestialBody(String name)
Load celestial body.
|
CelestialPoint |
loadCelestialPoint(String name)
Load celestial point.
|
static String |
toSpiceName(String patriusName)
Convert a PATRIUS body name to a SPICE body name.
|
buildDefaultBodyShape, getEphemerisLoader, getLoadedGravitationalCoefficient, getSupportedNames
public static final String DEFAULT_BSP_SUPPORTED_NAMES
public static final String EARTH_MOON
public BSPCelestialBodyLoader(String supportedNamesIn)
supportedNamesIn
- regular expression for supported files namespublic void declareAsCelestialPoint(String name)
CelestialPoint
.CelestialPoint
instead of CelestialBody
.name
- a body namepublic CelestialPoint loadCelestialPoint(String name) throws PatriusException
name
- name of the celestial pointPatriusException
- if the point cannot be loadedpublic CelestialBody loadCelestialBody(String name) throws PatriusException
name
- name of the celestial bodyPatriusException
- if the body cannot be loadedpublic String getName(String patriusName)
patriusName
- PATRIUS body nameCopyright © 2023 CNES. All rights reserved.