diff --git a/data/assets/scene/solarsystem/missions/interstellar_horizons.asset b/data/assets/scene/solarsystem/missions/interstellar_horizons.asset new file mode 100644 index 0000000000..30a3e87b02 --- /dev/null +++ b/data/assets/scene/solarsystem/missions/interstellar_horizons.asset @@ -0,0 +1,3 @@ +asset.require("./newhorizons/horizons") +asset.require("./pioneer/horizons") +asset.require("./voyager/horizons") diff --git a/data/assets/scene/solarsystem/missions/newhorizons/horizons.asset b/data/assets/scene/solarsystem/missions/newhorizons/horizons.asset new file mode 100644 index 0000000000..c0544cd88b --- /dev/null +++ b/data/assets/scene/solarsystem/missions/newhorizons/horizons.asset @@ -0,0 +1,61 @@ +local ssb = asset.require("scene/solarsystem/sun/transforms") + +local newhorizons_horizons = asset.resource({ + Name = "NewHorizons horizons", + Type = "HttpSynchronization", + Identifier = "newhorizons_horizons", + Version = 1 +}) + + +local NewHorizons = { + Identifier = "NewHorizons_Horizons", + Parent = ssb.SolarSystemBarycenter.Identifier, + Renderable = { + Type = "RenderableTrailTrajectory", + Enabled = false, + Translation = { + Type = "HorizonsTranslation", + HorizonsTextFile = newhorizons_horizons .. "newhorizons.hrz" + -- Target: New Horizons (spacecraft) (-98) + -- Observer: SSB + -- Start time: 2006-Jan-19 19:51:18.3310 (first data point) + -- End time: 2030-Jan-01 00:00:00 (last data point) + -- Step size: 1440 minutes + }, + Color = { 0.31, 0.71, 0.54 }, + LineFadeAmount = 0.3, + StartTime = "2006 JAN 19 19:51:19", + EndTime = "2030 JAN 01 00:00:00", + SampleInterval = openspace.time.secondsPerDay() + }, + GUI = { + Name = "New Horizons Trail (Horizons)", + Path = "/Solar System/Missions/New Horizons", + Description = [[New Horizons Trail, spanning from January 19th, 2006 to January 1st, + 2030. Data from JPL Horizons]] + } +} + + +asset.onInitialize(function() + openspace.addSceneGraphNode(NewHorizons) +end) + +asset.onDeinitialize(function() + openspace.removeSceneGraphNode(NewHorizons) +end) + +asset.export(NewHorizons) + + + +asset.meta = { + Name = "New Horizons Horizons Trails", + Description = [[New Horizons trail driven by JPL Horizons data for better performance + then SPICE but lower resolution. Data is from shortly after mission launch + until January 1st, 2030]], + Author = "OpenSpace Team", + URL = "http://openspaceproject.com", + License = "MIT license" +} diff --git a/data/assets/scene/solarsystem/missions/pioneer/horizons.asset b/data/assets/scene/solarsystem/missions/pioneer/horizons.asset new file mode 100644 index 0000000000..e9e87b1afd --- /dev/null +++ b/data/assets/scene/solarsystem/missions/pioneer/horizons.asset @@ -0,0 +1,93 @@ +local ssb = asset.require("scene/solarsystem/sun/transforms") + +local pioneer_horizons = asset.resource({ + Name = "Pioneer horizons", + Type = "HttpSynchronization", + Identifier = "pioneer_horizons", + Version = 1 +}) + + +local Pioneer10 = { + Identifier = "Pioneer10_Horizons", + Parent = ssb.SolarSystemBarycenter.Identifier, + Renderable = { + Type = "RenderableTrailTrajectory", + Enabled = false, + Translation = { + Type = "HorizonsTranslation", + HorizonsTextFile = pioneer_horizons .. "pioneer_10.hrz" + -- Target: Pioneer 10 (spacecraft) (-23) + -- Observer: SSB + -- Start time: 1972-Mar-04 00:00:00 (first data point) + -- End time: 2030-Jan-01 00:00:00 (last data point) + -- Step size: 1 day + }, + Color = { 0.9, 0.3, 0.0 }, + Fade = 5.0, + StartTime = "1972 MAR 04 00:00:00", + EndTime = "2030 JAN 01 00:00:00", + SampleInterval = openspace.time.secondsPerDay() + }, + GUI = { + Name = "Pioneer 10 Trail (Horizons)", + Path = "/Solar System/Missions/Pioneer", + Description = [[Pioneer 10 Trail, spanning from March 4th, 1972 to January 1st, 2030. + Data from JPL Horizons]] + } +} + +local Pioneer11 = { + Identifier = "Pioneer11_Horizons", + Parent = ssb.SolarSystemBarycenter.Identifier, + Renderable = { + Type = "RenderableTrailTrajectory", + Enabled = false, + Translation = { + Type = "HorizonsTranslation", + HorizonsTextFile = pioneer_horizons .. "pioneer_11.hrz" + -- Target: Pioneer 11 (spacecraft) (-24) + -- Observer: SSB + -- Start time: 1973-Apr-07 00:00:00 (first data point) + -- End time: 2030-Jan-01 00:00:00 (last data point) + -- Step size: 1 day + }, + Color = { 0.9, 0.3, 0.0 }, + LineFadeAmount = 0.3, + StartTime = "1973 APR 07 00:00:00", + EndTime = "2030 JAN 01 00:00:00", + SampleInterval = openspace.time.secondsPerDay() + }, + GUI = { + Name = "Pioneer 11 Trail (Horizons)", + Path = "/Solar System/Missions/Pioneer", + Description = [[Pioneer 11 Trail, spanning from April 7th, 1973 to January 1st, 2030. + Data from JPL Horizons]] + } +} + + +asset.onInitialize(function() + openspace.addSceneGraphNode(Pioneer10) + openspace.addSceneGraphNode(Pioneer11) +end) + +asset.onDeinitialize(function() + openspace.removeSceneGraphNode(Pioneer11) + openspace.removeSceneGraphNode(Pioneer10) +end) + +asset.export(Pioneer10) +asset.export(Pioneer11) + + + +asset.meta = { + Name = "Pioneer Horizons Trails", + Description = [[Pioneer 10, Pioneer 11 trails driven by JPL Horizons data for better + performance then SPICE but lower resolution. Data is from shortly after mission + launches until January 1st, 2030]], + Author = "OpenSpace Team", + URL = "http://openspaceproject.com", + License = "MIT license" +} diff --git a/data/assets/scene/solarsystem/missions/voyager/horizons.asset b/data/assets/scene/solarsystem/missions/voyager/horizons.asset new file mode 100644 index 0000000000..0dc7160ea8 --- /dev/null +++ b/data/assets/scene/solarsystem/missions/voyager/horizons.asset @@ -0,0 +1,93 @@ +local ssb = asset.require("scene/solarsystem/sun/transforms") + +local voyager_horizons = asset.resource({ + Name = "Voyager horizons", + Type = "HttpSynchronization", + Identifier = "voyager_horizons", + Version = 1 +}) + + +local Voyager1 = { + Identifier = "Voyager1_Horizons", + Parent = ssb.SolarSystemBarycenter.Identifier, + Renderable = { + Type = "RenderableTrailTrajectory", + Enabled = false, + Translation = { + Type = "HorizonsTranslation", + HorizonsTextFile = voyager_horizons .. "voyager_1.hrz" + -- Target: Voyager 1 (spacecraft) (-31) + -- Observer: SSB + -- Start time: 1977-Sep-06 00:00:00 (first data point) + -- End time: 2030-Jan-01 00:00:00 (last data point) + -- Step size: 1 day + }, + Color = { 0.9, 0.9, 0.0 }, + Fade = 5.0, + StartTime = "1977 SEP 06 00:00:00", + EndTime = "2030 JAN 01 00:00:00", + SampleInterval = openspace.time.secondsPerDay() + }, + GUI = { + Name = "Voyager 1 Trail (Horizons)", + Path = "/Solar System/Missions/Voyager", + Description = [[Voyager 1 Trail, spanning from September 6th, 1977 to January 1st, + 2030. Data from JPL Horizons]] + } +} + +local Voyager2 = { + Identifier = "Voyager2_Horizons", + Parent = ssb.SolarSystemBarycenter.Identifier, + Renderable = { + Type = "RenderableTrailTrajectory", + Enabled = false, + Translation = { + Type = "HorizonsTranslation", + HorizonsTextFile = voyager_horizons .. "voyager_2.hrz" + -- Target: Voyager 2 (spacecraft) (-32) + -- Observer: SSB + -- Start time: 1977-Aug-21 00:00:00 (first data point) + -- End time: 2030-Jan-01 00:00:00 (last data point) + -- Step size: 1 day + }, + Color = { 0.9, 0.9, 0.0 }, + LineFadeAmount = 0.3, + StartTime = "1977 AUG 21 00:00:00", + EndTime = "2030 JAN 01 00:00:00", + SampleInterval = openspace.time.secondsPerDay() + }, + GUI = { + Name = "Voyager 2 Trail (Horizons)", + Path = "/Solar System/Missions/Voyager", + Description = [[Voyager 2 Trail, spanning from August 21st, 1977 to January 1st, 2030. + Data from JPL Horizons]] + } +} + + +asset.onInitialize(function() + openspace.addSceneGraphNode(Voyager1) + openspace.addSceneGraphNode(Voyager2) +end) + +asset.onDeinitialize(function() + openspace.removeSceneGraphNode(Voyager2) + openspace.removeSceneGraphNode(Voyager1) +end) + +asset.export(Voyager1) +asset.export(Voyager2) + + + +asset.meta = { + Name = "Voyager Horizons Trails", + Description = [[Voyager 1 and Voyager 2 trails driven by JPL Horizons data for better + performance then SPICE but lower resolution. Data is from shortly after mission + launches until January 1st, 2030]], + Author = "OpenSpace Team", + URL = "http://openspaceproject.com", + License = "MIT license" +} diff --git a/data/assets/scene/solarsystem/missions/voyagerpioneer/voyager1_2__pioneer10_11.asset b/data/assets/scene/solarsystem/missions/voyagerpioneer/voyager1_2__pioneer10_11.asset deleted file mode 100644 index 523c0892b3..0000000000 --- a/data/assets/scene/solarsystem/missions/voyagerpioneer/voyager1_2__pioneer10_11.asset +++ /dev/null @@ -1,164 +0,0 @@ -local ssb = asset.require("scene/solarsystem/sun/transforms") - -local voyager_horizons = asset.resource({ - Name = "Voyager horizons", - Type = "HttpSynchronization", - Identifier = "voyager_horizons", - Version = 1 -}) - -local pioneer_horizons = asset.resource({ - Name = "Pioneer horizons", - Type = "HttpSynchronization", - Identifier = "pioneer_horizons", - Version = 1 -}) - - -local Voyager1 = { - Identifier = "Voyager1", - Parent = ssb.SolarSystemBarycenter.Identifier, - Renderable = { - Type = "RenderableTrailTrajectory", - Enabled = false, - Translation = { - Type = "HorizonsTranslation", - HorizonsTextFile = voyager_horizons .. "voyager_1.hrz" - -- Target: Voyager 1 (spacecraft) (-31) - -- Observer: SSB - -- Start time: 1977-Sep-06 00:00:00 (first data point) - -- End time: 2030-Jan-01 00:00:00 (last data point) - -- Step size: 1 day - }, - Color = { 0.9, 0.9, 0.0 }, - Fade = 5.0, - StartTime = "1977 SEP 06 00:00:00", - EndTime = "2030 JAN 01 00:00:00", - SampleInterval = openspace.time.secondsPerDay() - }, - GUI = { - Name = "Voyager 1 Trail", - Path = "/Solar System/Missions/Voyager", - Description = [[Voyager 1 Trail, spanning September 6th, 1977 to January 1st, 2030. - Data from JPL Horizons]] - } -} - -local Voyager2 = { - Identifier = "Voyager2", - Parent = ssb.SolarSystemBarycenter.Identifier, - Renderable = { - Type = "RenderableTrailTrajectory", - Enabled = false, - Translation = { - Type = "HorizonsTranslation", - HorizonsTextFile = voyager_horizons .. "voyager_2.hrz" - -- Target: Voyager 2 (spacecraft) (-32) - -- Observer: SSB - -- Start time: 1977-Aug-21 00:00:00 (first data point) - -- End time: 2030-Jan-01 00:00:00 (last data point) - -- Step size: 1 day - }, - Color = { 0.9, 0.9, 0.0 }, - Fade = 5.0, - StartTime = "1977 AUG 21 00:00:00", - EndTime = "2030 JAN 01 00:00:00", - SampleInterval = openspace.time.secondsPerDay() - }, - GUI = { - Name = "Voyager 2 Trail", - Path = "/Solar System/Missions/Voyager", - Description = [[Voyager 2 Trail, spanning August 21st, 1977 to January 1st, 2030. - Data from JPL Horizons]] - } -} - -local Pioneer10 = { - Identifier = "Pioneer10", - Parent = ssb.SolarSystemBarycenter.Identifier, - Renderable = { - Type = "RenderableTrailTrajectory", - Enabled = false, - Translation = { - Type = "HorizonsTranslation", - HorizonsTextFile = pioneer_horizons .. "pioneer_10.hrz" - -- Target: Pioneer 10 (spacecraft) (-23) - -- Observer: SSB - -- Start time: 1972-Mar-04 00:00:00 (first data point) - -- End time: 2030-Jan-01 00:00:00 (last data point) - -- Step size: 1 day - }, - Color = { 0.9, 0.3, 0.0 }, - Fade = 5.0, - StartTime = "1972 MAR 04 00:00:00", - EndTime = "2030 JAN 01 00:00:00", - SampleInterval = openspace.time.secondsPerDay() - }, - GUI = { - Name = "Pioneer 10 Trail", - Path = "/Solar System/Missions/Pioneer", - Description = [[Pioneer 10 Trail, spanning March 4th, 1972 to January 1st, 2030. - Data from JPL Horizons]] - } -} - -local Pioneer11 ={ - Identifier = "Pioneer11", - Parent = ssb.SolarSystemBarycenter.Identifier, - Renderable = { - Type = "RenderableTrailTrajectory", - Enabled = false, - Translation = { - Type = "HorizonsTranslation", - HorizonsTextFile = pioneer_horizons .. "pioneer_11.hrz" - -- Target: Pioneer 11 (spacecraft) (-24) - -- Observer: SSB - -- Start time: 1973-Apr-07 00:00:00 (first data point) - -- End time: 2030-Jan-01 00:00:00 (last data point) - -- Step size: 1 day - }, - Color = { 0.9, 0.3, 0.0 }, - Fade = 5.0, - StartTime = "1973 APR 07 00:00:00", - EndTime = "2030 JAN 01 00:00:00", - SampleInterval = openspace.time.secondsPerDay() - }, - GUI = { - Name = "Pioneer 11 Trail", - Path = "/Solar System/Missions/Pioneer", - Description = [[Pioneer 11 Trail, spanning April 7th, 1973 to January 1st, 2030. - Data from JPL Horizons]] - } -} - - -asset.onInitialize(function() - openspace.addSceneGraphNode(Voyager1) - openspace.addSceneGraphNode(Voyager2) - openspace.addSceneGraphNode(Pioneer10) - openspace.addSceneGraphNode(Pioneer11) -end) - -asset.onDeinitialize(function() - openspace.removeSceneGraphNode(Pioneer11) - openspace.removeSceneGraphNode(Pioneer10) - openspace.removeSceneGraphNode(Voyager2) - openspace.removeSceneGraphNode(Voyager1) -end) - -asset.export(Voyager1) -asset.export(Voyager2) -asset.export(Pioneer10) -asset.export(Pioneer11) - - - -asset.meta = { - Name = "Pioneer and Voyager Trails", - Description = [[Pioneer 10, Pioneer 11, Voyager 1 and Voyager 2 trails. Driven by JPL - Horizons data for better performance then spice but lower resolution. Data is from - shortly after mission launches until January 1st, 2030]], - Author = "OpenSpace Team", - URL = "http://openspaceproject.com", - License = "MIT license" -}