updated generic spice kernel for more range; added barycenter trails (#2061)

* updated generic spice kernel for more range; added barycenter trails

* updated meta asset description for barycenter trails
This commit is contained in:
Micah Acinapura
2022-05-05 15:04:01 -04:00
committed by GitHub
parent de6d8900ee
commit 4ee23d461e
10 changed files with 387 additions and 4 deletions
@@ -0,0 +1,48 @@
local transforms = asset.require("scene/solarsystem/sun/transforms")
asset.require("spice/base")
local EarthBarycenterTrail = {
Identifier = "EarthBarycenterTrail",
Parent = transforms.SolarSystemBarycenter.Identifier,
Renderable = {
Type = "RenderableTrailOrbit",
Translation = {
Type = "SpiceTranslation",
Target = "EARTH BARYCENTER",
Observer = "SSB"
},
Color = { 0.5, 0.8, 1.0 },
Period = 365.242,
Resolution = 1000,
Enabled = false
},
Tag = { "planetTrail_solarSystem", "planetTrail_terrestrial" },
GUI = {
Name = "Earth Barycenter Trail",
Path = "/Solar System/Planets/Earth"
}
}
asset.onInitialize(function()
openspace.addSceneGraphNode(EarthBarycenterTrail)
end)
asset.onDeinitialize(function()
openspace.removeSceneGraphNode(EarthBarycenterTrail)
end)
asset.export(EarthBarycenterTrail)
asset.meta = {
Name = "Earth Trail",
Version = "1.1",
Description = [[ Trail of Earth's Barycenter as observed by the Sun. Data from NASA Spice (see
base spice asset)]],
Author = "OpenSpace Team",
URL = "http://openspaceproject.com",
License = "MIT license"
}
@@ -0,0 +1,48 @@
local transforms = asset.require("scene/solarsystem/sun/transforms")
asset.require("spice/base")
local JupiterBarycenterTrail = {
Identifier = "JupiterBarycenterTrail",
Parent = transforms.SolarSystemBarycenter.Identifier,
Renderable = {
Type = "RenderableTrailOrbit",
Translation = {
Type = "SpiceTranslation",
Target = "JUPITER BARYCENTER",
Observer = "SSB"
},
Color = { 0.8, 0.7, 0.7 },
Period = 4330.595,
Resolution = 1000,
Enabled = false
},
Tag = { "planetTrail_solarSystem", "planetTrail_giants" },
GUI = {
Name = "Jupiter Barycenter Trail",
Path = "/Solar System/Planets/Jupiter"
}
}
asset.onInitialize(function()
openspace.addSceneGraphNode(JupiterBarycenterTrail)
end)
asset.onDeinitialize(function()
openspace.removeSceneGraphNode(JupiterBarycenterTrail)
end)
asset.export(JupiterBarycenterTrail)
asset.meta = {
Name = "Jupiter Trail",
Version = "1.1",
Description = [[ Trail of Jupiter's Barycenter as observed by the Sun. Data from NASA Spice (see
base spice asset)]],
Author = "OpenSpace Team",
URL = "http://openspaceproject.com",
License = "MIT license"
}
@@ -0,0 +1,49 @@
local transforms = asset.require("scene/solarsystem/sun/transforms")
asset.require("spice/base")
local MarsBarycenterTrail = {
Identifier = "MarsBarycenterTrail",
Parent = transforms.SolarSystemBarycenter.Identifier,
Renderable = {
Type = "RenderableTrailOrbit",
Translation = {
Type = "SpiceTranslation",
Target = "MARS BARYCENTER",
Observer = "SSB"
},
Color = { 0.814, 0.305, 0.220 },
Period = 686.973,
Resolution = 1000,
Enabled = false
},
Tag = { "planetTrail_solarSystem", "planetTrail_terrestrial" },
GUI = {
Name = "Mars Barycenter Trail",
Path = "/Solar System/Planets/Mars",
Description = [[ Trail of Mars' Barycenter as observed by the Sun. Data from NASA Spice (see
base spice asset)]],
}
}
asset.onInitialize(function()
openspace.addSceneGraphNode(MarsBarycenterTrail)
end)
asset.onDeinitialize(function()
openspace.removeSceneGraphNode(MarsBarycenterTrail)
end)
asset.export(MarsBarycenterTrail)
asset.meta = {
Name = "Mars Trail",
Version = "1.1",
Description = [[ Barycenter Mars trail from SPICE.]],
Author = "OpenSpace Team",
URL = "http://openspaceproject.com",
License = "MIT license"
}
@@ -0,0 +1,49 @@
local transforms = asset.require("scene/solarsystem/sun/transforms")
asset.require("spice/base")
local MercuryBarycenterTrail = {
Identifier = "MercuryBarycenterTrail",
Parent = transforms.SolarSystemBarycenter.Identifier,
Renderable = {
Type = "RenderableTrailOrbit",
Translation = {
Type = "SpiceTranslation",
Target = "MERCURY BARYCENTER",
Observer = "SSB"
},
Color = { 0.6, 0.5, 0.5 },
Period = 87.968,
Resolution = 1000,
Enabled = false
},
Tag = { "planetTrail_solarSystem", "planetTrail_terrestrial" },
GUI = {
Name = "Mercury Barycenter Trail",
Path = "/Solar System/Planets/Mercury",
Description = [[ Barycenter Trail of Mercury as observed by the Sun.]],
}
}
asset.onInitialize(function()
openspace.addSceneGraphNode(MercuryBarycenterTrail)
end)
asset.onDeinitialize(function()
openspace.removeSceneGraphNode(MercuryBarycenterTrail)
end)
asset.export(MercuryBarycenterTrail)
asset.meta = {
Name = "Mercury Trail",
Version = "1.1",
Description = [[ Trail for Mercury's Barycenter. Data from NASA Spice (see
base spice asset)]],
Author = "OpenSpace Team",
URL = "http://openspaceproject.com",
License = "MIT license"
}
@@ -0,0 +1,48 @@
local transforms = asset.require("scene/solarsystem/sun/transforms")
asset.require("spice/base")
local NeptuneBarycenterTrail = {
Identifier = "NeptuneBarycenterTrail",
Parent = transforms.SolarSystemBarycenter.Identifier,
Renderable = {
Type = "RenderableTrailOrbit",
Translation = {
Type = "SpiceTranslation",
Target = "NEPTUNE BARYCENTER",
Observer = "SSB"
},
Color = { 0.2, 0.5, 1.0 },
Period = 60266,
Resolution = 1000,
Enabled = false
},
Tag = { "planetTrail_solarSystem", "planetTrail_giants" },
GUI = {
Name = "Neptune Barycenter Trail",
Path = "/Solar System/Planets/Neptune",
Description = [[ BarycenterTrail of Neptune as observed by the Sun.]]
}
}
asset.onInitialize(function()
openspace.addSceneGraphNode(NeptuneBarycenterTrail)
end)
asset.onDeinitialize(function()
openspace.removeSceneGraphNode(NeptuneBarycenterTrail)
end)
asset.export(NeptuneBarycenterTrail)
asset.meta = {
Name = "Neptune Trail",
Version = "1.1",
Description = [[ Trail of Neptune's Barycenter. Data from NASA Spice (see base spice asset)]],
Author = "OpenSpace Team",
URL = "http://openspaceproject.com",
License = "MIT license"
}
@@ -0,0 +1,47 @@
local transforms = asset.require("scene/solarsystem/sun/transforms")
local SaturnBarycenterTrail = {
Identifier = "SaturnBarycenterTrail",
Parent = transforms.SolarSystemBarycenter.Identifier,
Renderable = {
Type = "RenderableTrailOrbit",
Translation = {
Type = "SpiceTranslation",
Target = "SATURN BARYCENTER",
Observer = "SSB"
},
Color = { 0.85, 0.75, 0.51 },
Period = 10746.94,
Resolution = 1000,
Enabled = false
},
Tag = { "planetTrail_solarSystem", "planetTrail_giants" },
GUI = {
Name = "Saturn Barycenter Trail",
Path = "/Solar System/Planets/Saturn",
Description = [[ Trail of Saturn's Barycenter as observed by the Sun.]]
}
}
asset.onInitialize(function()
openspace.addSceneGraphNode(SaturnBarycenterTrail)
end)
asset.onDeinitialize(function()
openspace.removeSceneGraphNode(SaturnBarycenterTrail)
end)
asset.export(SaturnBarycenterTrail)
asset.meta = {
Name = "Saturn Trail",
Version = "1.1",
Description = [[ Trail of Saturn's Barycenter. Data from NASA Spice (see base spice asset)]],
Author = "OpenSpace Team",
URL = "http://openspaceproject.com",
License = "MIT license"
}
@@ -0,0 +1,47 @@
local transforms = asset.require("scene/solarsystem/sun/transforms")
local UranusBarycenterTrail = {
Identifier = "UranusBarycenterTrail",
Parent = transforms.SolarSystemBarycenter.Identifier,
Renderable = {
Type = "RenderableTrailOrbit",
Translation = {
Type = "SpiceTranslation",
Target = "URANUS BARYCENTER",
Observer = "SSB"
},
Color = { 0.60, 0.95, 1.00 },
Period = 30588.740,
Resolution = 1000,
Enabled = false
},
Tag = { "planetTrail_solarSystem", "planetTrail_giants" },
GUI = {
Name = "Uranus Barycenter Trail",
Path = "/Solar System/Planets/Uranus",
Description = [[ Trail of Uranus as observed by the Sun.]],
}
}
asset.onInitialize(function()
openspace.addSceneGraphNode(UranusBarycenterTrail)
end)
asset.onDeinitialize(function()
openspace.removeSceneGraphNode(UranusBarycenterTrail)
end)
asset.export(UranusBarycenterTrail)
asset.meta = {
Name = "Uranus Trail",
Version = "1.1",
Description = [[ Trail of Uranus' Barycenter. Data from NASA Spice (see base spice asset)]],
Author = "OpenSpace Team",
URL = "http://openspaceproject.com",
License = "MIT license"
}
@@ -0,0 +1,47 @@
local transforms = asset.require("scene/solarsystem/sun/transforms")
asset.require("spice/base")
local VenusBarycenterTrail = {
Identifier = "VenusBarycenterTrail",
Parent = transforms.SolarSystemBarycenter.Identifier,
Renderable = {
Type = "RenderableTrailOrbit",
Translation = {
Type = "SpiceTranslation",
Target = "VENUS BARYCENTER",
Observer = "SSB"
},
Color = { 1.0, 0.5, 0.2 },
Period = 224.695,
Resolution = 1000,
Enabled = false
},
Tag = { "planetTrail_solarSystem", "planetTrail_terrestrial" },
GUI = {
Name = "Venus Barycenter Trail",
Path = "/Solar System/Planets/Venus",
Description = "Berycenter trail for Venus",
Hidden = false
}
}
asset.onInitialize(function()
openspace.addSceneGraphNode(VenusBarycenterTrail)
end)
asset.onDeinitialize(function()
openspace.removeSceneGraphNode(VenusBarycenterTrail)
end)
asset.export(VenusBarycenterTrail)
asset.meta = {
Name = "Venus Trail",
Version = "1.1",
Description = [[ Barycenter Trail of Venus as observed by the Sun. Data from NASA Spice (see
base spice asset)]],
Author = "OpenSpace Team",
URL = "http://openspaceproject.com",
License = "MIT license"
}
@@ -8,8 +8,8 @@ local SolarSystemBarycenter = {
-- No parent; this node is attached to the scene graph root
TimeFrame = { -- Using Spice kernels for 1850-2150
Type = "TimeFrameInterval",
Start = "1850-JAN-01",
End = "2150-JAN-01"
Start = "1550-JAN-01",
End = "2650-JAN-22"
},
GUI = {
Name = "Solar System Barycenter",
+2 -2
View File
@@ -2,14 +2,14 @@ local syncedDirectory = asset.syncedResource({
Name = "General SPK Kernels",
Type = "HttpSynchronization",
Identifier = "general_spk",
Version = 1
Version = 2
})
local kernels = {
asset.localResource("naif0012.tls"),
-- Leapseconds:
asset.localResource("pck00010.tpc"),
syncedDirectory .. "de430_1850-2150.bsp"
syncedDirectory .. "de430.bsp"
}
asset.onInitialize(function()