Convert Horizons trail trajecteries that are orbits into orbit trails

This commit is contained in:
Malin E
2022-03-28 10:14:59 +02:00
parent 05b816cd60
commit dd8299f566
4 changed files with 18 additions and 33 deletions

View File

@@ -12,7 +12,7 @@ local GaiaTrail = {
Identifier = "GaiaTrail",
Parent = earthTransforms.EarthCenter.Identifier,
Renderable = {
Type = "RenderableTrailTrajectory",
Type = "RenderableTrailOrbit",
Translation = {
Type = "HorizonsTranslation",
HorizonsTextFile = {
@@ -26,14 +26,9 @@ local GaiaTrail = {
}
},
Color = { 0.0, 0.8, 0.7 },
ShowFullTrail = false,
StartTime = "2013 DEC 19 09:55:27",
EndTime = "2026 SEP 14 21:15:27",
PointSize = 5,
SampleInterval = 2400, -- 40 minutes in seconds
TimeStampSubsampleFactor = 1,
EnableFade = true,
Rendering = "Lines"
Period = 365, -- 1 year orbit time
Resolution = 24244 -- Sameple rate of 40 minutes
},
GUI = {
Name = "Gaia Trail",
@@ -45,7 +40,7 @@ local GaiaTrailEclip = {
Identifier = "GaiaTrail_Eclip",
Parent = sunTransforms.SunCenter.Identifier,
Renderable = {
Type = "RenderableTrailTrajectory",
Type = "RenderableTrailOrbit",
Enabled = false,
Translation = {
Type = "HorizonsTranslation",
@@ -57,14 +52,9 @@ local GaiaTrailEclip = {
-- Step size: 1 day
},
Color = { 1.0, 0.0, 0.0 },
ShowFullTrail = false,
StartTime = "2013 DEC 20 00:00:00",
EndTime = "2026 SEP 14 00:00:00",
PointSize = 5,
SampleInterval = 86400,
TimeStampSubsampleFactor = 1,
EnableFade = true,
Rendering = "Lines"
Period = 365, -- 1 year orbit time
Resolution = 365 -- Sameple rate of 1 day
},
GUI = {
Name = "Gaia Ecliptic Trail",

View File

@@ -1,6 +1,6 @@
local sunTransforms = asset.require("scene/solarsystem/sun/transforms")
local trajectory = asset.syncedResource({
local horizons = asset.syncedResource({
Name = "5 Astraea Trajectory",
Type = "HttpSynchronization",
Identifier = "astraea_horizons",
@@ -11,10 +11,10 @@ local AstraeaTrail = {
Identifier = "AstraeaTrail",
Parent = sunTransforms.SolarSystemBarycenter.Identifier,
Renderable = {
Type = "RenderableTrailTrajectory",
Type = "RenderableTrailOrbit",
Translation = {
Type = "HorizonsTranslation",
HorizonsTextFile = trajectory .. "horizons_astraea.hrz"
HorizonsTextFile = horizons .. "horizons_astraea.hrz"
-- Target: 5 Astraea (A845 XA)
-- Observer: SSB
-- Start time: 2014-Jan-01 00:00 (first data point)
@@ -22,10 +22,8 @@ local AstraeaTrail = {
-- Step size: 1 day
},
Color = { 0.9, 0.9, 0.0 },
StartTime = "2014 JAN 01 00:00:00",
EndTime = "2050 JAN 01 00:00:00",
SampleInterval = 86400,
TimeStampSubsampleFactor = 1
Period = 1507, -- Orbit time 1507 days
Resolution = 1507 -- Step size of 1 day
},
GUI = {
Name = "5 Astraea Trail",
@@ -39,7 +37,7 @@ local AstraeaPosition = {
Transform = {
Translation = {
Type = "HorizonsTranslation",
HorizonsTextFile = trajectory .. "horizons_astraea.hrz"
HorizonsTextFile = horizons .. "horizons_astraea.hrz"
}
},
GUI = {

View File

@@ -11,7 +11,7 @@ local SwiftTuttleTrail = {
Identifier = "SwiftTuttleTrail",
Parent = sunTransforms.SolarSystemBarycenter.Identifier,
Renderable = {
Type = "RenderableTrailTrajectory",
Type = "RenderableTrailOrbit",
Translation = {
Type = "HorizonsTranslation",
HorizonsTextFile = sync .. "horizons_swifttuttle.hrz"
@@ -22,9 +22,8 @@ local SwiftTuttleTrail = {
-- Step size: 1 day
},
Color = { 0.9, 0.9, 0.0 },
StartTime = "1879 JUN 27 00:00:00",
EndTime = "2050 JAN 01 00:00:00",
SampleInterval = 86400
Period = 48577.2124, -- Orbit time 133 years
Resolution = 48577 -- Step size: 1 day
},
GUI = {
Name = "Swift Tuttle Trail",

View File

@@ -11,7 +11,7 @@ local TeslaRoadsterTrail = {
Identifier = "TeslaRoadsterTrail",
Parent = sunTransforms.SolarSystemBarycenter.Identifier,
Renderable = {
Type = "RenderableTrailTrajectory",
Type = "RenderableTrailOrbit",
Translation = {
Type = "HorizonsTranslation",
HorizonsTextFile = orbit .. "horizons_tesla.hrz"
@@ -22,10 +22,8 @@ local TeslaRoadsterTrail = {
-- Step size: 1 day
},
Color = { 0.9, 0.9, 0.0 },
StartTime = "2018 FEB 7 03:00:00",
EndTime = "2089 DEC 31 03:00:00",
SampleInterval = 86400,
TimeStampSubsampleFactor = 1
Period = 557, -- Orbit time 557 days
Resolution = 557 -- Step size 1 day
},
GUI = {
Name = "Tesla Roadster Trail",