HorizonsTranslation
Inherits Translation
Members
Name |
Documentation |
Type |
Description |
Optional |
---|---|---|---|---|
|
This value is the path to the file or files generated by Horizons with either a Vector table or an Observer table with the correct settings. |
|
Value of type ‘String’, or Value of type ‘Table’ |
No |
Inherited members from Translation
Name |
Documentation |
Type |
Description |
Optional |
---|---|---|---|---|
|
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 |
|
Must name a valid Translation type |
No |
Asset Examples
1local earthTransforms = asset.require("scene/solarsystem/planets/earth/transforms")
2
3
4
5local trail = asset.resource({
6 Name = "Gaia Trail",
7 Type = "HttpSynchronization",
8 Identifier = "gaia_trail",
9 Version = 3
10})
11
12
13local GaiaPosition = {
14 Identifier = "GaiaPosition",
15 Parent = earthTransforms.EarthCenter.Identifier,
16 Transform = {
17 Translation = {
18 Type = "HorizonsTranslation",
19 HorizonsTextFile = {
20 trail .. "gaia_orbit_horizons_1.hrz", --2013-12-19 09:55:27 to 2014-01-19 00:00:00
21 trail .. "gaia_orbit_horizons_2.hrz" --2014-01-19 00:00:00 to 2026-09-14 00:00:00
22 -- Target: Gaia (spacecraft) (-139479)
23 -- Observer: Earth (399 GEOCENTRIC)
24 -- Start time: 2013-Dec-19 09:55:27 (first data point)
25 -- End time: 2026-Sep-14 00:00:00 (last data point)
26 -- Step size: First file has 40 minutes and seocnd has 1 day step size
27 }
28 }
29 },
30 GUI = {
31 Name = "Position",
32 Path = "/Solar System/Telescopes/Gaia"
33 }
34}
35
36
37asset.onInitialize(function()
38 openspace.addSceneGraphNode(GaiaPosition)
39end)
40
41asset.onDeinitialize(function()
42 openspace.removeSceneGraphNode(GaiaPosition)
43end)
44
45asset.export(GaiaPosition)
46
47
48
49asset.meta = {
50 Name = "Gaia Transform",
51 Description = [[This asset contains the position of Gaia from 2013 DEC 19 09:55:27 to
52 2026 SEP 14 21:15:27. Data from JPL Horizons]],
53 Author = "OpenSpace Team",
54 URL = "https://ssd.jpl.nasa.gov/horizons.cgi",
55 License = "NASA"
56}