KeplerTranslation

Inherits Translation

Members

Name

Documentation

Type

Description

Optional

ArgumentOfPeriapsis

This value determines the argument of periapsis in degrees, that is the position on the orbit that is closest to the orbiting body

Double

In range: ( -360,360 )

No

AscendingNode

This value determines the right ascension of the ascending node in degrees, that is the location of position along the orbit where the inclined plane and the horizonal reference plane intersect

Double

In range: ( -360,360 )

No

Eccentricity

This value determines the eccentricity, that is the deviation from a perfect sphere, for this orbit. Currently, hyperbolic orbits using Keplerian elements are not supported

Double

In range: ( 0,1 )

No

Epoch

This value determines the epoch for which the initial location is defined in the form of YYYY MM DD HH:mm:ss

String

Value of type ‘String’

No

Inclination

This value determines the degrees of inclination, or the angle of the orbital plane, relative to the reference plane, on which the object orbits around the central body

Double

In range: ( -360,360 )

No

MeanAnomaly

This value determines the mean anomaly at the epoch in degrees, which determines the initial location of the object along the orbit at epoch

Double

In range: ( -360,360 )

No

Period

Specifies the orbital period (in seconds)

Double

Greater than: 0

No

SemiMajorAxis

This value determines the semi-major axis, that is the distance of the object from the central body in kilometers (semi-major axis = average of periapsis and apoapsis)

Double

Value of type ‘Double’

No

Inherited members from Translation

Name

Documentation

Type

Description

Optional

Type

The type of translation that is described in this element. The available types of translations depend on the configuration of the application and can be written to disk on application startup into the FactoryDocumentation

String

Must name a valid Translation type

No

Asset Examples

 1local transforms = asset.require("scene/solarsystem/sun/transforms")
 2
 3
 4
 5local AU = 1.496e+8
 6
 7local Translation = {
 8  Type = "KeplerTranslation",
 9  Eccentricity = 0.8565069519144183,
10  SemiMajorAxis = 532.3064703980097 * AU,
11  Inclination = 11.93034000375754,
12  AscendingNode = 144.2584776398181,
13  ArgumentOfPeriapsis = 310.8687900929183,
14  MeanAnomaly = 358.4694078785378,
15  Epoch = "2023 02 10 13:48:38",
16  Period = 4485811.755507208 * 60 * 60 * 24
17}
18
19local Position = {
20  Identifier = "SednaPosition",
21  Parent = transforms.SunEclipJ2000.Identifier,
22  Transform = {
23    Translation = Translation
24  },
25  GUI = {
26    Name = "Sedna Position",
27    Path = "/Solar System/Dwarf Planets/Sedna",
28    Hidden = true
29  }
30}
31
32
33asset.onInitialize(function()
34    openspace.addSceneGraphNode(Position)
35end)
36
37asset.onDeinitialize(function()
38    openspace.removeSceneGraphNode(Position)
39end)
40
41asset.export("Translation", Translation)
42asset.export("Position", Position)
43
44
45
46asset.meta = {
47  Name = "Sedna Position (Keplerian)",
48  Version = "1.0",
49  Description = [[Position of Sedna. KeplerTranslation Version Data from
50    JPL Horizons]],
51  Author = "OpenSpace Team",
52  URL = "https://ssd.jpl.nasa.gov/sbdb.cgi?sstr=Sedna",
53  License = "JPL/NASA"
54}