mirror of
https://github.com/OpenSpace/OpenSpace.git
synced 2026-05-08 04:20:14 -05:00
Merge remote-tracking branch 'origin/master' into feature/hd-ring-shadow
This commit is contained in:
@@ -90,8 +90,10 @@ local AllGlobesGlobalIllumination = {
|
||||
Identifier = "os.AllGlobesGlobalIllumination",
|
||||
Name = "All globes global illumination",
|
||||
Command = [[
|
||||
openspace.setPropertyValue("{planet_solarSystem}.Renderable.PerformShading", false)
|
||||
openspace.setPropertyValue("{moon_solarSystem}.Renderable.PerformShading", false)
|
||||
local allGlobes = openspace.nodeByRenderableType("RenderableGlobe")
|
||||
for _, globe in ipairs(allGlobes) do
|
||||
openspace.setPropertyValue("Scene." .. globe .. ".Renderable.PerformShading", false)
|
||||
end
|
||||
openspace.setPropertyValue("Scene.*Atmosphere.Renderable.SunFollowingCamera", true)
|
||||
openspace.setPropertyValue("Scene.*.Renderable.ShadowsComponent.DistanceFraction", 3000)
|
||||
openspace.setPropertyValue("Scene.Earth.Renderable.Layers.NightLayers.Earth_at_Night_2012.Enabled", false)
|
||||
@@ -105,8 +107,10 @@ local AllGlobesStandardIllumination = {
|
||||
Identifier = "os.AllGlobesStandardIllumination",
|
||||
Name = "All globes standard illumination",
|
||||
Command = [[
|
||||
openspace.setPropertyValue("{planet_solarSystem}.Renderable.PerformShading", true)
|
||||
openspace.setPropertyValue("{moon_solarSystem}.Renderable.PerformShading", true)
|
||||
local allGlobes = openspace.nodeByRenderableType("RenderableGlobe")
|
||||
for _, globe in ipairs(allGlobes) do
|
||||
openspace.setPropertyValue("Scene." .. globe .. ".Renderable.PerformShading", true)
|
||||
end
|
||||
openspace.setPropertyValue("Scene.*Atmosphere.Renderable.SunFollowingCamera", false)
|
||||
openspace.setPropertyValue("Scene.*.Renderable.ShadowsComponent.DistanceFraction", 40)
|
||||
openspace.setPropertyValueSingle("Scene.Earth.Renderable.Layers.NightLayers.Earth_at_Night_2012.Enabled", true)
|
||||
|
||||
@@ -2,8 +2,8 @@ local transforms = asset.require("scene/solarsystem/sun/transforms")
|
||||
|
||||
|
||||
|
||||
local GalacticLine = {
|
||||
Identifier = "GalacticLine",
|
||||
local GalacticEquator = {
|
||||
Identifier = "GalacticEquator",
|
||||
Parent = transforms.SolarSystemBarycenter.Name,
|
||||
Transform = {
|
||||
Scale = {
|
||||
@@ -28,58 +28,61 @@ local GalacticLine = {
|
||||
}
|
||||
|
||||
|
||||
local ShowGalacticBand = {
|
||||
Identifier = "os.nightsky.ShowGalacticBand",
|
||||
Name = "Show galactic band",
|
||||
local ShowGalacticEquator = {
|
||||
Identifier = "os.nightsky.ShowGalacticEquator",
|
||||
Name = "Show galactic equator",
|
||||
Command = [[
|
||||
openspace.fadeIn("Scene.GalacticBand.Renderable")
|
||||
openspace.fadeIn("Scene.GalacticEquator.Renderable")
|
||||
]],
|
||||
Documentation = "Shows the galactic band",
|
||||
Documentation = "Shows the galactic equator",
|
||||
GuiPath = "/Night Sky/Lines and Grids/Show and Hide",
|
||||
IsLocal = false
|
||||
}
|
||||
|
||||
local HideGalacticBand = {
|
||||
Identifier = "os.nightsky.HideGalacticBand",
|
||||
Name = "Hide galactic band",
|
||||
local HideGalacticEquator = {
|
||||
Identifier = "os.nightsky.HideGalacticEquator",
|
||||
Name = "Hide galactic equator",
|
||||
Command = [[
|
||||
openspace.fadeOut("Scene.GalacticBand.Renderable")
|
||||
openspace.fadeOut("Scene.GalacticEquator.Renderable")
|
||||
]],
|
||||
Documentation = "Hides the galactic band",
|
||||
Documentation = "Hides the galactic equator",
|
||||
GuiPath = "/Night Sky/Lines and Grids/Show and Hide",
|
||||
IsLocal = false
|
||||
}
|
||||
|
||||
local ToggleGalacticBand = {
|
||||
Identifier = "os.nightsky.ToggleGalacticBand",
|
||||
Name = "Toggle galactic equator line",
|
||||
Command = "openspace.toggleFade('Scene.GalacticBand.Renderable')",
|
||||
Documentation = "Toggles the galactic equator line visibilty",
|
||||
local ToggleGalacticEquator = {
|
||||
Identifier = "os.nightsky.ToggleGalacticEquator",
|
||||
Name = "Toggle galactic equator",
|
||||
Command = "openspace.toggleFade('Scene.GalacticEquator.Renderable')",
|
||||
Documentation = "Toggles the galactic equator visibilty",
|
||||
GuiPath = "/Night Sky/Lines and Grids",
|
||||
IsLocal = false
|
||||
}
|
||||
|
||||
|
||||
asset.onInitialize(function()
|
||||
openspace.addSceneGraphNode(GalacticLine)
|
||||
openspace.action.registerAction(ShowGalacticBand)
|
||||
openspace.action.registerAction(HideGalacticBand)
|
||||
openspace.addSceneGraphNode(GalacticEquator)
|
||||
openspace.action.registerAction(ShowGalacticEquator)
|
||||
openspace.action.registerAction(HideGalacticEquator)
|
||||
openspace.action.registerAction(ToggleGalacticEquator)
|
||||
end)
|
||||
|
||||
asset.onDeinitialize(function()
|
||||
openspace.action.removeAction(HideGalacticBand)
|
||||
openspace.action.removeAction(ShowGalacticBand)
|
||||
openspace.removeSceneGraphNode(GalacticLine)
|
||||
openspace.action.removeAction(ToggleGalacticEquator)
|
||||
openspace.action.removeAction(HideGalacticEquator)
|
||||
openspace.action.removeAction(ShowGalacticEquator)
|
||||
openspace.removeSceneGraphNode(GalacticEquator)
|
||||
end)
|
||||
|
||||
asset.export(GalacticLine)
|
||||
asset.export("ShowGalacticBand", ShowGalacticBand.Identifier)
|
||||
asset.export("HideGalacticBand", HideGalacticBand.Identifier)
|
||||
asset.export(GalacticEquator)
|
||||
asset.export("ShowGalacticEquator", ShowGalacticEquator.Identifier)
|
||||
asset.export("HideGalacticEquator", HideGalacticEquator.Identifier)
|
||||
asset.export("ToggleGalacticEquator", ToggleGalacticEquator.Identifier)
|
||||
|
||||
|
||||
|
||||
asset.meta = {
|
||||
Name = "Galactic Line",
|
||||
Name = "Galactic Equator",
|
||||
Description = [[A line representation of the Galactic Equator plane, including actions
|
||||
to toggle, hide and show it.]],
|
||||
Author = "OpenSpace Team",
|
||||
|
||||
@@ -32,7 +32,7 @@ local Object = {
|
||||
ColorMapping = {
|
||||
File = speck .. "localgroup.cmap",
|
||||
ParameterOptions = {
|
||||
{ Key = "association" }
|
||||
{ Key = "association", Range = { 0, 4 } }
|
||||
}
|
||||
}
|
||||
},
|
||||
|
||||
@@ -1,48 +0,0 @@
|
||||
local transforms = asset.require("./transforms")
|
||||
local coreKernels = asset.require("spice/core")
|
||||
|
||||
|
||||
|
||||
local PlutoTrailBarycentric = {
|
||||
Identifier = "PlutoBarycentricTrail",
|
||||
Parent = transforms.PlutoBarycenter.Identifier,
|
||||
Renderable = {
|
||||
Type = "RenderableTrailOrbit",
|
||||
Translation = {
|
||||
Type = "SpiceTranslation",
|
||||
Target = coreKernels.ID.Pluto,
|
||||
Observer = coreKernels.ID.PlutoBarycenter
|
||||
},
|
||||
Color = { 0.00, 0.62, 1.00 },
|
||||
Period = 6.38723,
|
||||
Resolution = 1000
|
||||
},
|
||||
Tag = { "planetTrail_dwarf" },
|
||||
GUI = {
|
||||
Name = "Pluto Barycentric Trail",
|
||||
Path = "/Solar System/Dwarf Planets/Pluto",
|
||||
Focusable = false,
|
||||
Description = "Orbit of Pluto around its Barycenter"
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
asset.onInitialize(function()
|
||||
openspace.addSceneGraphNode(PlutoTrailBarycentric)
|
||||
end)
|
||||
|
||||
asset.onDeinitialize(function()
|
||||
openspace.removeSceneGraphNode(PlutoTrailBarycentric)
|
||||
end)
|
||||
|
||||
asset.export(PlutoTrailBarycentric)
|
||||
|
||||
|
||||
|
||||
asset.meta = {
|
||||
Name = "Pluto Barycentric Trail",
|
||||
Description = "Trail of Pluto as observed by its Barycenter",
|
||||
Author = "OpenSpace Team",
|
||||
URL = "http://openspaceproject.com",
|
||||
License = "MIT license"
|
||||
}
|
||||
@@ -1,56 +0,0 @@
|
||||
local transforms = asset.require("scene/solarsystem/sun/transforms")
|
||||
|
||||
|
||||
|
||||
local AU = 1.496e+8
|
||||
|
||||
local PlutoKeplerianTrail = {
|
||||
Identifier = "PlutoKeplerianTrail",
|
||||
Parent = transforms.SunEclipJ2000.Identifier,
|
||||
Renderable = {
|
||||
Type = "RenderableTrailOrbit",
|
||||
Enabled = false,
|
||||
Translation = {
|
||||
Type = "KeplerTranslation",
|
||||
Eccentricity = 0.2543033082909471,
|
||||
SemiMajorAxis = 39.74407237841206 * AU,
|
||||
Inclination = 17.36609481151430,
|
||||
AscendingNode = 110.2099981996057,
|
||||
ArgumentOfPeriapsis = 114.2248569189779,
|
||||
MeanAnomaly = 14.53,
|
||||
Epoch = "2000 JAN 01 00:00:00",
|
||||
Period = 7824380000
|
||||
},
|
||||
Color = { 0.2, 0.8, 0.3 },
|
||||
Period = 90487.27692706819,
|
||||
Resolution = 1000
|
||||
},
|
||||
GUI = {
|
||||
Name = "Pluto Keplerian Trail",
|
||||
Path = "/Solar System/Dwarf Planets/Pluto",
|
||||
Focusable = false,
|
||||
Description = "Keplerian trail of Pluto. Contains full orbit"
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
asset.onInitialize(function()
|
||||
openspace.addSceneGraphNode(PlutoKeplerianTrail)
|
||||
end)
|
||||
|
||||
asset.onDeinitialize(function()
|
||||
openspace.removeSceneGraphNode(PlutoKeplerianTrail)
|
||||
end)
|
||||
|
||||
asset.export(PlutoKeplerianTrail)
|
||||
|
||||
|
||||
|
||||
asset.meta = {
|
||||
Name = "Pluto Keplerian Trail",
|
||||
Description = [[Full Keplerian trail of Pluto as observed by the Sun. Data from
|
||||
JPL Horizons]],
|
||||
Author = "OpenSpace Team",
|
||||
URL = "https://ssd.jpl.nasa.gov/sbdb.cgi?sstr=pluto",
|
||||
License = "JPL/NASA"
|
||||
}
|
||||
@@ -1,7 +1,5 @@
|
||||
asset.require("./trail")
|
||||
asset.require("./pluto")
|
||||
asset.require("./pluto_trail")
|
||||
asset.require("./pluto_trail_kepler")
|
||||
asset.require("./charon/charon")
|
||||
asset.require("./charon/charon_trail")
|
||||
asset.require("./minor/hydra")
|
||||
|
||||
@@ -14,8 +14,9 @@ local PlutoBarycenterTrail = {
|
||||
Observer = coreKernels.ID.SolarSystemBarycenter
|
||||
},
|
||||
Color = { 0.3, 0.7, 0.3 },
|
||||
Period = 365.25,
|
||||
Resolution = 1000
|
||||
Period = 90560,
|
||||
Resolution = 368,
|
||||
LineLength = 0.03
|
||||
},
|
||||
Tag = { "planetTrail_dwarf" },
|
||||
GUI = {
|
||||
|
||||
@@ -0,0 +1,104 @@
|
||||
local sunTransforms = asset.require("scene/solarsystem/sun/transforms")
|
||||
|
||||
|
||||
|
||||
local trajectory = asset.resource({
|
||||
Name = "3I/ATLAS Trajectory",
|
||||
Type = "HttpSynchronization",
|
||||
Identifier = "atlas_horizons",
|
||||
Version = 1
|
||||
})
|
||||
|
||||
|
||||
local AtlasTrail = {
|
||||
Identifier = "3I_AtlasTrail",
|
||||
Parent = sunTransforms.SolarSystemBarycenter.Identifier,
|
||||
Renderable = {
|
||||
Type = "RenderableTrailTrajectory",
|
||||
Translation = {
|
||||
Type = "HorizonsTranslation",
|
||||
HorizonsTextFile = trajectory .. "i3_atlas.hrz"
|
||||
},
|
||||
Color = { 0.85, 0.85, 0.0 },
|
||||
StartTime = "2020 JUL 01 00:00:00",
|
||||
EndTime = "2030 JUL 01 00:00:00",
|
||||
SampleInterval = openspace.time.secondsPerDay() / 2
|
||||
},
|
||||
GUI = {
|
||||
Name = "3I/ATLAS Trail",
|
||||
Path = "/Solar System/Interstellar/ATLAS",
|
||||
Focusable = false,
|
||||
Description = [[Trail of 3I/ATLAS from 2020 JUL 01 00:00:00 to 2030 JUL 01 00:00:00.
|
||||
Data from JPL Horizons.]]
|
||||
}
|
||||
}
|
||||
|
||||
local AtlasPosition = {
|
||||
Identifier = "3I_AtlasPosition",
|
||||
Parent = sunTransforms.SolarSystemBarycenter.Identifier,
|
||||
Transform = {
|
||||
Translation = {
|
||||
Type = "HorizonsTranslation",
|
||||
HorizonsTextFile = trajectory .. "i3_atlas.hrz"
|
||||
}
|
||||
},
|
||||
GUI = {
|
||||
Name = "3I/ATLAS",
|
||||
Path = "/Solar System/Interstellar/ATLAS",
|
||||
Description = [[Position of 3I/ATLAS from 2020 JUL 01 00:00:00 to 2030 JUL 01
|
||||
00:00:00. Data from JPL Horizons.]]
|
||||
}
|
||||
}
|
||||
|
||||
local AtlasLabel = {
|
||||
Identifier = "3I_AtlasLabel",
|
||||
Parent = AtlasPosition.Identifier,
|
||||
Renderable = {
|
||||
Type = "RenderableLabel",
|
||||
Enabled = false,
|
||||
Text = "3I/ATLAS",
|
||||
FontSize = 70.0,
|
||||
Size = 8.50,
|
||||
MinMaxSize = { 1, 50 },
|
||||
OrientationOption = "Camera View Direction",
|
||||
BlendMode = "Additive",
|
||||
EnableFading = true,
|
||||
FadeUnit = "au",
|
||||
FadeDistances = { 1.5, 50.0 },
|
||||
FadeWidths = { 1.0, 40.0 }
|
||||
},
|
||||
Tag = { "solarsystem_labels" },
|
||||
GUI = {
|
||||
Name = "3I/ATLAS Label",
|
||||
Path = "/Solar System/Interstellar/ATLAS",
|
||||
Focusable = false
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
asset.onInitialize(function()
|
||||
openspace.addSceneGraphNode(AtlasPosition)
|
||||
openspace.addSceneGraphNode(AtlasTrail)
|
||||
openspace.addSceneGraphNode(AtlasLabel)
|
||||
end)
|
||||
|
||||
asset.onDeinitialize(function()
|
||||
openspace.removeSceneGraphNode(AtlasLabel)
|
||||
openspace.removeSceneGraphNode(AtlasTrail)
|
||||
openspace.removeSceneGraphNode(AtlasPosition)
|
||||
end)
|
||||
|
||||
asset.export(AtlasPosition)
|
||||
asset.export(AtlasTrail)
|
||||
asset.export(AtlasLabel)
|
||||
|
||||
|
||||
|
||||
asset.meta = {
|
||||
Name = "3I/ATLAS",
|
||||
Description = [[This asset contains the trail and position of 3I/ATLAS from 2020
|
||||
JUL 01 00:00:00 to 2030 JUL 01 00:00:00. Data from JPL Horizons.]],
|
||||
Author = "OpenSpace Team",
|
||||
URL = "https://ssd.jpl.nasa.gov/horizons.cgi",
|
||||
License = "NASA"
|
||||
}
|
||||
@@ -24,14 +24,14 @@ local C2019Q4BorisovTrail = {
|
||||
-- End time: 2050-Jan-01 00:00:00 (last data point)
|
||||
-- Step size: 1 day
|
||||
},
|
||||
Color = { 0.9, 0.9, 0.0 },
|
||||
Color = { 0.15, 0.9, 0.15 },
|
||||
StartTime = "2015 JAN 01 00:00:00",
|
||||
EndTime = "2050 JAN 01 00:00:00",
|
||||
SampleInterval = openspace.time.secondsPerDay()
|
||||
},
|
||||
GUI = {
|
||||
Name = "C/2019 Q4 Borisov Trail",
|
||||
Path = "/Solar System/Interstellar",
|
||||
Name = "2I/Borisov Trail",
|
||||
Path = "/Solar System/Interstellar/Borisov",
|
||||
Focusable = false,
|
||||
Description = [[Trail of C-2019 Q4 Borisov from 2015 JAN 01 00:00:00
|
||||
to 2050 JAN 01 00:00:00. Data from JPL Horizons]]
|
||||
@@ -48,26 +48,54 @@ local C2019Q4BorisovPosition = {
|
||||
}
|
||||
},
|
||||
GUI = {
|
||||
Name = "C/2019 Q4 Borisov",
|
||||
Path = "/Solar System/Interstellar",
|
||||
Name = "2I/Borisov",
|
||||
Path = "/Solar System/Interstellar/Borisov",
|
||||
Description = [[Position of C-2019 Q4 Borisov from 2015 JAN 01 00:00:00
|
||||
to 2050 JAN 01 00:00:00. Data from JPL Horizons]]
|
||||
}
|
||||
}
|
||||
|
||||
local C2019Q4BorisovLabel = {
|
||||
Identifier = "C2019Q4BorisovLabel",
|
||||
Parent = C2019Q4BorisovPosition.Identifier,
|
||||
Renderable = {
|
||||
Type = "RenderableLabel",
|
||||
Enabled = false,
|
||||
Text = "2I/Borisov",
|
||||
FontSize = 70.0,
|
||||
Size = 8.50,
|
||||
MinMaxSize = { 1, 50 },
|
||||
OrientationOption = "Camera View Direction",
|
||||
BlendMode = "Additive",
|
||||
EnableFading = true,
|
||||
FadeUnit = "au",
|
||||
FadeDistances = { 1.5, 50.0 },
|
||||
FadeWidths = { 1.0, 40.0 }
|
||||
},
|
||||
Tag = { "solarsystem_labels" },
|
||||
GUI = {
|
||||
Name = "2I/Borisov Label",
|
||||
Path = "/Solar System/Interstellar/Borisov",
|
||||
Focusable = false
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
asset.onInitialize(function()
|
||||
openspace.addSceneGraphNode(C2019Q4BorisovPosition)
|
||||
openspace.addSceneGraphNode(C2019Q4BorisovTrail)
|
||||
openspace.addSceneGraphNode(C2019Q4BorisovLabel)
|
||||
end)
|
||||
|
||||
asset.onDeinitialize(function()
|
||||
openspace.removeSceneGraphNode(C2019Q4BorisovLabel)
|
||||
openspace.removeSceneGraphNode(C2019Q4BorisovTrail)
|
||||
openspace.removeSceneGraphNode(C2019Q4BorisovPosition)
|
||||
end)
|
||||
|
||||
asset.export(C2019Q4BorisovPosition)
|
||||
asset.export(C2019Q4BorisovTrail)
|
||||
asset.export(C2019Q4BorisovLabel)
|
||||
|
||||
|
||||
|
||||
|
||||
@@ -24,14 +24,14 @@ local OumuamuaTrail = {
|
||||
-- End time: 2050-Jan-01 00:00:00 (last data point)
|
||||
-- Step size: 1 day
|
||||
},
|
||||
Color = { 0.9, 0.9, 0.0 },
|
||||
Color = { 0.85, 0.1, 0.85 },
|
||||
StartTime = "2014 JAN 01 00:00:00",
|
||||
EndTime = "2050 JAN 01 00:00:00",
|
||||
SampleInterval = openspace.time.secondsPerDay()
|
||||
},
|
||||
GUI = {
|
||||
Name = "'Oumuamua Trail",
|
||||
Path = "/Solar System/Interstellar",
|
||||
Name = "1I/'Oumuamua Trail",
|
||||
Path = "/Solar System/Interstellar/'Oumuamua",
|
||||
Focusable = false,
|
||||
Description = [[Trail of 'Oumuamua from 2014 JAN 01 00:00:00 to 2050 JAN 01 00:00:00.
|
||||
Data from JPL Horizons]]
|
||||
@@ -48,26 +48,54 @@ local OumuamuaPosition = {
|
||||
}
|
||||
},
|
||||
GUI = {
|
||||
Name = "'Oumuamua",
|
||||
Path = "/Solar System/Interstellar",
|
||||
Name = "1I/'Oumuamua",
|
||||
Path = "/Solar System/Interstellar/'Oumuamua",
|
||||
Description = [[Position of 'Oumuamua from 2014 JAN 01 00:00:00 to 2050 JAN 01
|
||||
00:00:00. Data from JPL Horizons]]
|
||||
}
|
||||
}
|
||||
|
||||
local OumuamuaLabel = {
|
||||
Identifier = "OumuamuaLabel",
|
||||
Parent = OumuamuaPosition.Identifier,
|
||||
Renderable = {
|
||||
Type = "RenderableLabel",
|
||||
Enabled = false,
|
||||
Text = "1I/'Oumuamua",
|
||||
FontSize = 70.0,
|
||||
Size = 8.50,
|
||||
MinMaxSize = { 1, 50 },
|
||||
OrientationOption = "Camera View Direction",
|
||||
BlendMode = "Additive",
|
||||
EnableFading = true,
|
||||
FadeUnit = "au",
|
||||
FadeDistances = { 1.5, 50.0 },
|
||||
FadeWidths = { 1.0, 40.0 }
|
||||
},
|
||||
Tag = { "solarsystem_labels" },
|
||||
GUI = {
|
||||
Name = "1I/'Oumuamua Label",
|
||||
Path = "/Solar System/Interstellar/'Oumuamua",
|
||||
Focusable = false
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
asset.onInitialize(function()
|
||||
openspace.addSceneGraphNode(OumuamuaPosition)
|
||||
openspace.addSceneGraphNode(OumuamuaTrail)
|
||||
openspace.addSceneGraphNode(OumuamuaLabel)
|
||||
end)
|
||||
|
||||
asset.onDeinitialize(function()
|
||||
openspace.removeSceneGraphNode(OumuamuaLabel)
|
||||
openspace.removeSceneGraphNode(OumuamuaTrail)
|
||||
openspace.removeSceneGraphNode(OumuamuaPosition)
|
||||
end)
|
||||
|
||||
asset.export(OumuamuaPosition)
|
||||
asset.export(OumuamuaTrail)
|
||||
asset.export(OumuamuaLabel)
|
||||
|
||||
|
||||
|
||||
|
||||
@@ -43,8 +43,9 @@ local GanymedePosition = {
|
||||
}
|
||||
},
|
||||
GUI = {
|
||||
Path = "/Solar System/Planets/Jupiter/Moons",
|
||||
Description = "Ganymede's position relative to Jupiter as an inertial reference frame"
|
||||
Path = "/Solar System/Planets/Jupiter/Major Moons/Ganymede",
|
||||
Description = "Ganymede's position relative to Jupiter as an inertial reference frame",
|
||||
Hidden = true
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -136,7 +136,7 @@ local MessengerProbePanels = {
|
||||
GUI = {
|
||||
Name = "MessengerProbe Panels",
|
||||
Path = "/Solar System/Missions/Messenger",
|
||||
Focusable = false
|
||||
Focusable = false,
|
||||
Hidden = true
|
||||
}
|
||||
}
|
||||
|
||||
+104
-8
@@ -1,18 +1,15 @@
|
||||
local globe = asset.require("../../earth")
|
||||
|
||||
|
||||
|
||||
local Layer = {
|
||||
Identifier = "Earth_at_Night_Temporal",
|
||||
Name = "Earth at Night (Temporal)",
|
||||
Enabled = asset.enabled,
|
||||
ZIndex = 20,
|
||||
local NearConstantContrastLayer = {
|
||||
Identifier = "VIIRS_SNPP_DayNightBand_ENCC",
|
||||
Name = "Nighttime Imagery (Day/Night Band, Enhanced Near Constant Contrast)",
|
||||
Type = "TemporalTileProvider",
|
||||
Mode = "Prototyped",
|
||||
Prototyped = {
|
||||
Time = {
|
||||
Start = "2012-05-08",
|
||||
End = "Yesterday"
|
||||
Start = "2016-11-30",
|
||||
End = "2020-11-18"
|
||||
},
|
||||
TemporalResolution = "1d",
|
||||
TimeFormat = "YYYY-MM-DD",
|
||||
@@ -42,6 +39,105 @@ local Layer = {
|
||||
temporal resolution is daily. (Description from NASA Worldview)]]
|
||||
}
|
||||
|
||||
local BlackMarbleRadianceSNPP = {
|
||||
Identifier = "VIIRS_SNPP_DayNightBand_At_Sensor_Radiance",
|
||||
Name = "Black Marble Nighttime At Sensor Radiance (Day/Night Band)",
|
||||
Type = "TemporalTileProvider",
|
||||
Mode = "Prototyped",
|
||||
Prototyped = {
|
||||
Time = {
|
||||
Start = "2020-11-18",
|
||||
End = "2024-03-25"
|
||||
},
|
||||
TemporalResolution = "1d",
|
||||
TimeFormat = "YYYY-MM-DD",
|
||||
Prototype = openspace.globebrowsing.createTemporalGibsGdalXml(
|
||||
"VIIRS_SNPP_DayNightBand_At_Sensor_Radiance",
|
||||
"500m",
|
||||
"png"
|
||||
)
|
||||
},
|
||||
Description = [[The Black Marble Nighttime At Sensor Radiance (Day/Night Band) layer is
|
||||
created from NASA's Black Marble daily at-sensor top-of-atmosphere nighttime radiance
|
||||
product (VNP46A1). It is displayed as a grayscale image. The layer is expressed in
|
||||
radiance units (nW/(cm2 sr)) with log10 conversion. It is stretched up to
|
||||
38 nW/(cm2 sr) resulting in improvements in capturing city lights in greater spatial
|
||||
detail than traditional Nighttime Imagery resampled at 0-255 (e.g., Day/Night Band,
|
||||
Enhanced Near Constant Contrast).
|
||||
|
||||
The ultra-sensitivity of the VIIRS Day/Night Band enables scientists to capture the
|
||||
Earth's surface and atmosphere in low light conditions, allowing for better monitoring
|
||||
of nighttime phenomena. These images are also useful for assessing anthropogenic
|
||||
sources of light emissions under varying illumination conditions. For instance, during
|
||||
partial to full moon conditions, the layer can identify the location and features of
|
||||
clouds and other natural terrestrial features such as sea ice and snow cover, while
|
||||
enabling temporal observations in urban regions, regardless of moonlit conditions. As
|
||||
such, the layer is particularly useful for detecting city lights, lightning, auroras,
|
||||
fires, gas flares, and fishing fleets.
|
||||
|
||||
The Black Marble Nighttime At Sensor Radiance (Day/Night Band) layer is available in
|
||||
near real-time from the Visible Infrared Imaging Radiometer Suite (VIIRS) aboard the
|
||||
joint NASA/NOAA Suomi National Polar orbiting Partnership (Suomi NPP) satellite. The
|
||||
sensor resolution is 750 m at nadir, imagery resolution is 500 m, and the temporal
|
||||
resolution is daily.)]]
|
||||
}
|
||||
|
||||
local BlackMarbleRadianceNOAA20 = {
|
||||
Identifier = "VIIRS_NOAA20_DayNightBand_At_Sensor_Radiance",
|
||||
Name = "Black Marble Nighttime At Sensor Radiance (Day/Night Band) ",
|
||||
Type = "TemporalTileProvider",
|
||||
Mode = "Prototyped",
|
||||
Prototyped = {
|
||||
Time = {
|
||||
Start = "2024-03-25",
|
||||
End = "Yesterday"
|
||||
},
|
||||
TemporalResolution = "1d",
|
||||
TimeFormat = "YYYY-MM-DD",
|
||||
Prototype = openspace.globebrowsing.createTemporalGibsGdalXml(
|
||||
"VIIRS_NOAA20_DayNightBand_At_Sensor_Radiance",
|
||||
"500m",
|
||||
"png"
|
||||
)
|
||||
},
|
||||
Description = [[The Black Marble Nighttime At Sensor Radiance (Day/Night Band) layer is
|
||||
created from NASA's Black Marble daily at-sensor top-of-atmosphere nighttime radiance
|
||||
product (VJ146A1). It is displayed as a grayscale image. The layer is expressed in
|
||||
radiance units (nW/(cm2 sr)) with log10 conversion. It is stretched up to
|
||||
38 nW/(cm2 sr) resulting in improvements in capturing city lights in greater spatial
|
||||
detail than traditional Nighttime Imagery resampled at 0-255 (e.g., Day/Night Band,
|
||||
Enhanced Near Constant Contrast).
|
||||
|
||||
The ultra-sensitivity of the VIIRS Day/Night Band enables scientists to capture the
|
||||
Earth's surface and atmosphere in low light conditions, allowing for better monitoring
|
||||
of nighttime phenomena. These images are also useful for assessing anthropogenic
|
||||
sources of light emissions under varying illumination conditions. For instance, during
|
||||
partial to full moon conditions, the layer can identify the location and features of
|
||||
clouds and other natural terrestrial features such as sea ice and snow cover, while
|
||||
enabling temporal observations in urban regions, regardless of moonlit conditions. As
|
||||
such, the layer is particularly useful for detecting city lights, lightning, auroras,
|
||||
fires, gas flares, and fishing fleets.
|
||||
|
||||
The Black Marble Nighttime At Sensor Radiance (Day/Night Band) layer is available in
|
||||
near real-time from the Visible Infrared Imaging Radiometer Suite (VIIRS) aboard the
|
||||
joint NASA/NOAA NOAA-20 (JPSS-1) satellite. The sensor resolution is 750 m at nadir,
|
||||
imagery resolution is 500 m, and the temporal resolution is daily.]]
|
||||
}
|
||||
|
||||
local Layer = {
|
||||
Identifier = "Earth_at_Night_Temporal",
|
||||
Name = "Earth at Night (Temporal)",
|
||||
Enabled = asset.enabled,
|
||||
ZIndex = 20,
|
||||
Type = "TileProviderByDate",
|
||||
Providers = {
|
||||
["2016-11-30"] = NearConstantContrastLayer,
|
||||
["2020-11-18"] = BlackMarbleRadianceSNPP,
|
||||
["2024-03-25"] = BlackMarbleRadianceNOAA20
|
||||
},
|
||||
Description = [[This layer combines multiple other layers to provide a constant view
|
||||
of Earth's nocturnal landscape. See the individual layers for more information.]]
|
||||
}
|
||||
|
||||
asset.onInitialize(function()
|
||||
openspace.globebrowsing.addLayer(globe.Earth.Identifier, "NightLayers", Layer)
|
||||
|
||||
+3
-3
@@ -12,9 +12,9 @@ local Layer = {
|
||||
Gamma = 1.6,
|
||||
Multiplier = 1.07
|
||||
},
|
||||
Description = [[This map is an AMNH version of the global mossaic produced by the
|
||||
Mars Global Surveyor Wide Angle Camera. This version has color added and the
|
||||
shadows subdued based on the MOLA DTM. Data Reference:
|
||||
Description = [[This map is an AMNH version of the global mosaic produced by the Mars
|
||||
Global Surveyor Wide Angle Camera. This version has color added and the shadows
|
||||
subdued based on the MOLA DTM. Data Reference:
|
||||
https://www.jpl.nasa.gov/spaceimages/details.php?id=PIA03467]]
|
||||
}
|
||||
|
||||
|
||||
+3
-3
@@ -12,9 +12,9 @@ local Layer = {
|
||||
Gamma = 1.6,
|
||||
Multiplier = 1.07
|
||||
},
|
||||
Description = [[This map is an AMNH version of the global mossaic produced by the
|
||||
Mars Global Surveyor Wide Angle Camera. This version has color added and the
|
||||
shadows subdued based on the MOLA DTM. Data Reference:
|
||||
Description = [[This map is an AMNH version of the global mosaic produced by the Mars
|
||||
Global Surveyor Wide Angle Camera. This version has color added and the shadows
|
||||
subdued based on the MOLA DTM. Data Reference:
|
||||
https://www.jpl.nasa.gov/spaceimages/details.php?id=PIA03467]]
|
||||
}
|
||||
|
||||
|
||||
+3
-3
@@ -12,9 +12,9 @@ local Layer = {
|
||||
Gamma = 1.6,
|
||||
Multiplier = 1.07
|
||||
},
|
||||
Description = [[This map is an AMNH version of the global mossaic produced by the
|
||||
Mars Global Surveyor Wide Angle Camera. This version has color added and the
|
||||
shadows subdued based on the MOLA DTM. Data Reference:
|
||||
Description = [[This map is an AMNH version of the global mosaic produced by the Mars
|
||||
Global Surveyor Wide Angle Camera. This version has color added and the shadows
|
||||
subdued based on the MOLA DTM. Data Reference:
|
||||
https://www.jpl.nasa.gov/spaceimages/details.php?id=PIA03467]]
|
||||
}
|
||||
|
||||
|
||||
@@ -2,6 +2,7 @@ local kernels = asset.require("./kernels")
|
||||
local earth = asset.require("scene/solarsystem/planets/earth/transforms")
|
||||
local solarsystem = asset.require("scene/solarsystem/sun/transforms")
|
||||
local transforms = asset.require("scene/solarsystem/planets/earth/lagrange_points/l2/transforms")
|
||||
local l2kernels = asset.require("scene/solarsystem/planets/earth/lagrange_points/l2/kernels")
|
||||
local coreKernels = asset.require("spice/core")
|
||||
|
||||
|
||||
@@ -65,7 +66,7 @@ local EuclidTrailOrbit = {
|
||||
Translation = {
|
||||
Type = "SpiceTranslation",
|
||||
Target = kernels.ID.Euclid,
|
||||
Observer = transforms.ID.L2,
|
||||
Observer = l2kernels.ID.L2,
|
||||
Frame = coreKernels.Frame.Galactic
|
||||
},
|
||||
Color = { 0.863, 0.0, 0.902 },
|
||||
@@ -93,8 +94,8 @@ local EuclidTrailCoRevOrbit = {
|
||||
Translation = {
|
||||
Type = "SpiceTranslation",
|
||||
Target = kernels.ID.Euclid,
|
||||
Observer = transforms.ID.L2,
|
||||
Frame = transforms.Frame.L2Corevolving
|
||||
Observer = l2kernels.ID.L2,
|
||||
Frame = l2kernels.Frame.L2Corevolving
|
||||
},
|
||||
Color = { 0.863, 0.0, 0.902 },
|
||||
Period = 182.621099, -- About 6 months
|
||||
|
||||
@@ -4,7 +4,7 @@ local guiCustomization = asset.require("customization/gui")
|
||||
|
||||
|
||||
-- Select which commit hashes to use for the UI frontend
|
||||
local frontendHash = "345f21d05a1e4210c42e22f7739e8e6abc372d09"
|
||||
local frontendHash = "8e0c43cc406cc56dea3c5e1f0b4c45b1216927a5"
|
||||
|
||||
-- The name of the file to download from the server
|
||||
local frontendFile = "frontend.zip"
|
||||
|
||||
Reference in New Issue
Block a user