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
 4local OneAU = 1.496e+8
 5
 6local Translation = {
 7  Type = "KeplerTranslation",
 8  Eccentricity = 0.4319581224809352,
 9  SemiMajorAxis = 68.14536545526268	 * OneAU,
10  Inclination = 43.76049565740999,
11  AscendingNode = 36.07068767579804,
12  ArgumentOfPeriapsis = 150.9970340507818,
13  MeanAnomaly = 208.7617474668772,
14  Epoch = "2023 02 08 21:38:05",
15  Period = 205472.1258735657 * 60 * 60 * 24
16}
17
18local Position = {
19  Identifier = "ErisPosition",
20  Parent = transforms.SunEclipJ2000.Identifier,
21  Transform = {
22    Translation = Translation
23  },
24  GUI = {
25    Name = "Eris Position",
26    Path = "/Solar System/Dwarf Planets/Eris",
27    Hidden = true
28  }
29}
30
31
32asset.onInitialize(function()
33  openspace.addSceneGraphNode(Position)
34end)
35
36asset.onDeinitialize(function()
37  openspace.removeSceneGraphNode(Position)
38end)
39
40asset.export("Translation", Translation)
41asset.export("Position", Position)
42
43
44
45asset.meta = {
46  Name = "Eris Position (Keplerian)",
47  Description = [[Position of Eris. KeplerTranslation Version Data from
48    JPL Horizons]],
49  Author = "OpenSpace Team",
50  URL = "https://ssd.jpl.nasa.gov/sbdb.cgi?sstr=Eris",
51  License = "JPL/NASA"
52}