mirror of
https://github.com/OpenSpace/OpenSpace.git
synced 2026-04-23 12:39:24 -05:00
Solve conflict in scripts/common.lua
This commit is contained in:
@@ -4,12 +4,14 @@ return {
|
||||
Name = "EarthBarycenter",
|
||||
Parent = "SolarSystemBarycenter",
|
||||
Static = true,
|
||||
Ephemeris = {
|
||||
Type = "Spice",
|
||||
Body = "EARTH BARYCENTER",
|
||||
Observer = "SUN",
|
||||
Kernels = "${OPENSPACE_DATA}/spice/de430_1850-2150.bsp"
|
||||
},
|
||||
Transform = {
|
||||
Translation = {
|
||||
Type = "Spice",
|
||||
Body = "EARTH BARYCENTER",
|
||||
Observer = "SUN",
|
||||
Kernels = "${OPENSPACE_DATA}/spice/de430_1850-2150.bsp"
|
||||
},
|
||||
}
|
||||
},
|
||||
-- Earth module
|
||||
{
|
||||
|
||||
@@ -31,7 +31,7 @@ return {
|
||||
},
|
||||
Transform = {
|
||||
Translation = {
|
||||
Type = "SpiceEphemeris",
|
||||
Type = "SpiceTranslation",
|
||||
Body = "EARTH",
|
||||
Observer = "SUN",
|
||||
Kernels = "${OPENSPACE_DATA}/spice/de430_1850-2150.bsp"
|
||||
|
||||
@@ -24,7 +24,7 @@ return {
|
||||
},
|
||||
Transform = {
|
||||
Translation = {
|
||||
Type = "SpiceEphemeris",
|
||||
Type = "SpiceTranslation",
|
||||
Body = "CALLISTO",
|
||||
Observer = "JUPITER BARYCENTER",
|
||||
Kernels = "${OPENSPACE_DATA}/spice/jup260.bsp"
|
||||
|
||||
@@ -24,7 +24,7 @@ return {
|
||||
},
|
||||
Transform = {
|
||||
Translation = {
|
||||
Type = "SpiceEphemeris",
|
||||
Type = "SpiceTranslation",
|
||||
Body = "EUROPA",
|
||||
Observer = "JUPITER BARYCENTER",
|
||||
Kernels = "${OPENSPACE_DATA}/spice/jup260.bsp"
|
||||
|
||||
@@ -24,7 +24,7 @@ return {
|
||||
},
|
||||
Transform = {
|
||||
Translation = {
|
||||
Type = "SpiceEphemeris",
|
||||
Type = "SpiceTranslation",
|
||||
Body = "GANYMEDE",
|
||||
Observer = "JUPITER BARYCENTER",
|
||||
Kernels = "${OPENSPACE_DATA}/spice/jup260.bsp"
|
||||
|
||||
@@ -24,7 +24,7 @@ return {
|
||||
},
|
||||
Transform = {
|
||||
Translation = {
|
||||
Type = "SpiceEphemeris",
|
||||
Type = "SpiceTranslation",
|
||||
Body = "IO",
|
||||
Observer = "JUPITER BARYCENTER",
|
||||
Kernels = "${OPENSPACE_DATA}/spice/jup260.bsp"
|
||||
|
||||
@@ -5,7 +5,7 @@ return {
|
||||
Parent = "SolarSystemBarycenter",
|
||||
Transform = {
|
||||
Translation = {
|
||||
Type = "SpiceEphemeris",
|
||||
Type = "SpiceTranslation",
|
||||
Body = "JUPITER BARYCENTER",
|
||||
Observer = "SUN",
|
||||
Kernels = "${OPENSPACE_DATA}/spice/de430_1850-2150.bsp"
|
||||
@@ -37,7 +37,7 @@ return {
|
||||
},
|
||||
Transform = {
|
||||
Translation = {
|
||||
Type = "StaticEphemeris",
|
||||
Type = "StaticTranslation",
|
||||
Position = {0, 0, 0}, -- jupiter is at its barycenter
|
||||
},
|
||||
Rotation = {
|
||||
|
||||
@@ -6,7 +6,7 @@ return {
|
||||
Parent = "SolarSystemBarycenter",
|
||||
Transform = {
|
||||
Translation = {
|
||||
Type = "SpiceEphemeris",
|
||||
Type = "SpiceTranslation",
|
||||
Body = "EARTH",
|
||||
Observer = "SUN",
|
||||
Kernels = "${OPENSPACE_DATA}/spice/de430_1850-2150.bsp"
|
||||
|
||||
@@ -6,7 +6,7 @@ return {
|
||||
Parent = "SolarSystemBarycenter",
|
||||
Transform = {
|
||||
Translation = {
|
||||
Type = "SpiceEphemeris",
|
||||
Type = "SpiceTranslation",
|
||||
Body = "MARS BARYCENTER",
|
||||
Observer = "SUN",
|
||||
Kernels = "${OPENSPACE_DATA}/spice/de430_1850-2150.bsp"
|
||||
|
||||
@@ -5,7 +5,7 @@ return {
|
||||
Parent = "SolarSystemBarycenter",
|
||||
Transform = {
|
||||
Translation = {
|
||||
Type = "SpiceEphemeris",
|
||||
Type = "SpiceTranslation",
|
||||
Body = "MERCURY",
|
||||
Observer = "SUN",
|
||||
Kernels = "${OPENSPACE_DATA}/spice/de430_1850-2150.bsp"
|
||||
|
||||
@@ -5,7 +5,7 @@ return {
|
||||
Parent = "EarthBarycenter",
|
||||
Transform = {
|
||||
Translation = {
|
||||
Type = "SpiceEphemeris",
|
||||
Type = "SpiceTranslation",
|
||||
Body = "MOON",
|
||||
Observer = "EARTH BARYCENTER",
|
||||
Kernels = "${OPENSPACE_DATA}/spice/de430_1850-2150.bsp"
|
||||
|
||||
@@ -29,7 +29,7 @@ return {
|
||||
},
|
||||
Transform = {
|
||||
Translation = {
|
||||
Type = "SpiceEphemeris",
|
||||
Type = "SpiceTranslation",
|
||||
Body = "MARS BARYCENTER",
|
||||
Observer = "SUN",
|
||||
Kernels = "${OPENSPACE_DATA}/spice/de430_1850-2150.bsp"
|
||||
|
||||
@@ -29,7 +29,7 @@ return {
|
||||
},
|
||||
Transform = {
|
||||
Translation = {
|
||||
Type = "SpiceEphemeris",
|
||||
Type = "SpiceTranslation",
|
||||
Body = "MERCURY",
|
||||
Observer = "SUN",
|
||||
Kernels = "${OPENSPACE_DATA}/spice/de430_1850-2150.bsp"
|
||||
|
||||
@@ -30,7 +30,7 @@ return {
|
||||
},
|
||||
Transform = {
|
||||
Translation = {
|
||||
Type = "SpiceEphemeris",
|
||||
Type = "SpiceTranslation",
|
||||
Body = "MOON",
|
||||
Observer = "EARTH BARYCENTER",
|
||||
Kernels = "${OPENSPACE_DATA}/spice/de430_1850-2150.bsp"
|
||||
|
||||
@@ -39,7 +39,7 @@ return {
|
||||
},
|
||||
Transform = {
|
||||
Translation = {
|
||||
Type = "SpiceEphemeris",
|
||||
Type = "SpiceTranslation",
|
||||
Body = "CALLISTO",
|
||||
Observer = "JUPITER BARYCENTER",
|
||||
Kernels = "${OPENSPACE_DATA}/spice/de430_1850-2150.bsp"
|
||||
@@ -70,7 +70,7 @@ return {
|
||||
]]
|
||||
Transform = {
|
||||
Translation = {
|
||||
Type = "StaticEphemeris",
|
||||
Type = "StaticTranslation",
|
||||
Position = {0, -10000000, 0}
|
||||
},
|
||||
},
|
||||
|
||||
@@ -39,7 +39,7 @@ return {
|
||||
},
|
||||
Transform = {
|
||||
Translation = {
|
||||
Type = "SpiceEphemeris",
|
||||
Type = "SpiceTranslation",
|
||||
Body = "EUROPA",
|
||||
Observer = "JUPITER BARYCENTER",
|
||||
Kernels = "${OPENSPACE_DATA}/spice/de430_1850-2150.bsp"
|
||||
@@ -70,7 +70,7 @@ return {
|
||||
]]
|
||||
Transform = {
|
||||
Translation = {
|
||||
Type = "StaticEphemeris",
|
||||
Type = "StaticTranslation",
|
||||
Position = {0, -10000000, 0}
|
||||
},
|
||||
},
|
||||
|
||||
@@ -39,7 +39,7 @@ return {
|
||||
},
|
||||
Transform = {
|
||||
Translation = {
|
||||
Type = "SpiceEphemeris",
|
||||
Type = "SpiceTranslation",
|
||||
Body = "GANYMEDE",
|
||||
Observer = "JUPITER BARYCENTER",
|
||||
Kernels = "${OPENSPACE_DATA}/spice/de430_1850-2150.bsp"
|
||||
@@ -64,7 +64,7 @@ return {
|
||||
},
|
||||
Transform = {
|
||||
Translation = {
|
||||
Type = "StaticEphemeris",
|
||||
Type = "StaticTranslation",
|
||||
Position = {0, -10000000, 0}
|
||||
},
|
||||
},
|
||||
|
||||
@@ -39,7 +39,7 @@ return {
|
||||
},
|
||||
Transform = {
|
||||
Translation = {
|
||||
Type = "SpiceEphemeris",
|
||||
Type = "SpiceTranslation",
|
||||
Body = "IO",
|
||||
Observer = "JUPITER BARYCENTER",
|
||||
Kernels = "${OPENSPACE_DATA}/spice/de430_1850-2150.bsp"
|
||||
@@ -80,7 +80,7 @@ return {
|
||||
},
|
||||
Transform = {
|
||||
Translation = {
|
||||
Type = "StaticEphemeris",
|
||||
Type = "StaticTranslation",
|
||||
Position = {0, -10000000, 0}
|
||||
},
|
||||
},
|
||||
|
||||
@@ -5,7 +5,7 @@ return {
|
||||
Parent = "SolarSystemBarycenter",
|
||||
Transform = {
|
||||
Translation = {
|
||||
Type = "SpiceEphemeris",
|
||||
Type = "SpiceTranslation",
|
||||
Body = "JUPITER BARYCENTER",
|
||||
Observer = "SUN",
|
||||
Kernels = "${OPENSPACE_DATA}/spice/de430_1850-2150.bsp"
|
||||
@@ -108,7 +108,7 @@ return {
|
||||
},
|
||||
Transform = {
|
||||
Translation = {
|
||||
Type = "StaticEphemeris",
|
||||
Type = "StaticTranslation",
|
||||
Position = {0, -100000000, 0}
|
||||
},
|
||||
},
|
||||
|
||||
@@ -104,7 +104,7 @@ return {
|
||||
},
|
||||
Transform = {
|
||||
Translation = {
|
||||
Type = "SpiceEphemeris",
|
||||
Type = "SpiceTranslation",
|
||||
Body = "NEW HORIZONS",
|
||||
Observer = "SUN",
|
||||
Kernels = NewHorizonsKernels
|
||||
|
||||
@@ -58,7 +58,7 @@ return {
|
||||
},
|
||||
Transform = {
|
||||
Translation = {
|
||||
Type = "SpiceEphemeris",
|
||||
Type = "SpiceTranslation",
|
||||
Body = "CHARON",
|
||||
Observer = "PLUTO BARYCENTER",
|
||||
Kernels = NewHorizonsKernels
|
||||
@@ -83,7 +83,7 @@ return {
|
||||
},
|
||||
Transform = {
|
||||
Translation = {
|
||||
Type = "StaticEphemeris",
|
||||
Type = "StaticTranslation",
|
||||
Position = {0, -1000000, 0}
|
||||
},
|
||||
},
|
||||
|
||||
@@ -29,7 +29,7 @@ return {
|
||||
},
|
||||
Transform = {
|
||||
Translation = {
|
||||
Type = "SpiceEphemeris",
|
||||
Type = "SpiceTranslation",
|
||||
Body = "HYDRA",
|
||||
Observer = "PLUTO BARYCENTER",
|
||||
Kernels = NewHorizonsKernels
|
||||
@@ -53,7 +53,7 @@ return {
|
||||
},
|
||||
Transform = {
|
||||
Translation = {
|
||||
Type = "StaticEphemeris",
|
||||
Type = "StaticTranslation",
|
||||
Position = {1000000, 0, 1000000},
|
||||
},
|
||||
},
|
||||
|
||||
@@ -29,7 +29,7 @@ return {
|
||||
},
|
||||
Transform = {
|
||||
Translation = {
|
||||
Type = "SpiceEphemeris",
|
||||
Type = "SpiceTranslation",
|
||||
Body = "KERBEROS",
|
||||
Observer = "PLUTO BARYCENTER",
|
||||
Kernels = NewHorizonsKernels
|
||||
@@ -53,7 +53,7 @@ return {
|
||||
},
|
||||
Transform = {
|
||||
Translation = {
|
||||
Type = "StaticEphemeris",
|
||||
Type = "StaticTranslation",
|
||||
Position = {1000000, 0, 1000000},
|
||||
},
|
||||
},
|
||||
|
||||
@@ -29,7 +29,7 @@ return {
|
||||
},
|
||||
Transform = {
|
||||
Translation = {
|
||||
Type = "SpiceEphemeris",
|
||||
Type = "SpiceTranslation",
|
||||
Body = "NIX",
|
||||
Observer = "PLUTO BARYCENTER",
|
||||
Kernels = NewHorizonsKernels
|
||||
|
||||
@@ -23,7 +23,7 @@ return {
|
||||
Parent = "SolarSystemBarycenter",
|
||||
Transform = {
|
||||
Translation = {
|
||||
Type = "SpiceEphemeris",
|
||||
Type = "SpiceTranslation",
|
||||
Body = "PLUTO BARYCENTER",
|
||||
Observer = "SUN",
|
||||
Kernels = NewHorizonsKernels
|
||||
@@ -157,7 +157,7 @@ return {
|
||||
},
|
||||
Transform = {
|
||||
Translation = {
|
||||
Type = "SpiceEphemeris",
|
||||
Type = "SpiceTranslation",
|
||||
Body = "PLUTO",
|
||||
Observer = "PLUTO BARYCENTER",
|
||||
Kernels = NewHorizonsKernels
|
||||
@@ -197,7 +197,7 @@ return {
|
||||
},
|
||||
Transform = {
|
||||
Translation = {
|
||||
Type = "StaticEphemeris",
|
||||
Type = "StaticTranslation",
|
||||
Position = {0, -2000000, 0}
|
||||
},
|
||||
},
|
||||
@@ -215,7 +215,7 @@ return {
|
||||
},
|
||||
Transform = {
|
||||
Translation = {
|
||||
Type = "StaticEphemeris",
|
||||
Type = "StaticTranslation",
|
||||
Position = {0, -4000000, 0}
|
||||
},
|
||||
},
|
||||
|
||||
@@ -29,7 +29,7 @@ return {
|
||||
},
|
||||
Transform = {
|
||||
Translation = {
|
||||
Type = "SpiceEphemeris",
|
||||
Type = "SpiceTranslation",
|
||||
Body = "STYX",
|
||||
Observer = "PLUTO BARYCENTER",
|
||||
Kernels = NewHorizonsKernels
|
||||
@@ -54,7 +54,7 @@ return {
|
||||
},
|
||||
Transform = {
|
||||
Translation = {
|
||||
Type = "StaticEphemeris",
|
||||
Type = "StaticTranslation",
|
||||
Position = {1000000, 0, 1000000}
|
||||
},
|
||||
},
|
||||
|
||||
@@ -0,0 +1,233 @@
|
||||
-- TextureResolution = "low"
|
||||
TextureResolution = "med"
|
||||
-- TextureResolution = "high"
|
||||
|
||||
local startTime = "2016 SEP 8 23:05:00.50"
|
||||
|
||||
function preInitialization()
|
||||
--[[
|
||||
The scripts in this function are executed after the scene is loaded but before the
|
||||
scene elements have been initialized, thus they should be used to set the time at
|
||||
which the scene should start and other settings that might determine initialization
|
||||
critical objects.
|
||||
]]--
|
||||
|
||||
-- Load Spice Kernels
|
||||
openspace.spice.loadKernel("${OPENSPACE_DATA}/spice/de430_1850-2150.bsp")
|
||||
|
||||
-- background
|
||||
-- SCLK kernels needs to be loaded before CK kernels (and generally first)
|
||||
openspace.spice.loadKernel("${SPICE}/OsirisRexKernels/background/sclk/ORX_SCLKSCET.00000.tsc")
|
||||
|
||||
-- This cannot be loaded correctly for some reason!
|
||||
--openspace.spice.loadKernel("${SPICE}/OsirisRexKernels/background/dsk/RQ36mod.oct12_CCv0001.bds")
|
||||
|
||||
openspace.spice.loadKernel("${SPICE}/OsirisRexKernels/background/fk/orx_v04.tf")
|
||||
openspace.spice.loadKernel("${SPICE}/OsirisRexKernels/background/ik/orx_lidar_v00.ti")
|
||||
openspace.spice.loadKernel("${SPICE}/OsirisRexKernels/background/ik/orx_ocams_v03.ti")
|
||||
openspace.spice.loadKernel("${SPICE}/OsirisRexKernels/background/ik/orx_otes_v00.ti")
|
||||
openspace.spice.loadKernel("${SPICE}/OsirisRexKernels/background/ik/orx_rexis_v00.ti")
|
||||
openspace.spice.loadKernel("${SPICE}/OsirisRexKernels/background/ik/orx_struct_v00.ti")
|
||||
openspace.spice.loadKernel("${SPICE}/OsirisRexKernels/background/ik/orx_navcam_v00.ti")
|
||||
openspace.spice.loadKernel("${SPICE}/OsirisRexKernels/background/ik/orx_ola_v00.ti")
|
||||
openspace.spice.loadKernel("${SPICE}/OsirisRexKernels/background/ik/orx_ovirs_v00.ti")
|
||||
openspace.spice.loadKernel("${SPICE}/OsirisRexKernels/background/ik/orx_stowcam_v00.ti")
|
||||
openspace.spice.loadKernel("${SPICE}/OsirisRexKernels/background/lsk/naif0011.tls")
|
||||
openspace.spice.loadKernel("${SPICE}/OsirisRexKernels/background/pck/bennu_SPH250m.tpc")
|
||||
openspace.spice.loadKernel("${SPICE}/OsirisRexKernels/background/pck/bennu_v10.tpc")
|
||||
|
||||
-- Low res SPK
|
||||
openspace.spice.loadKernel("${SPICE}/OsirisRexKernels/background/spk/orx_160917_231024_pgaa3_day15m60_v1.bsp")
|
||||
openspace.spice.loadKernel("${SPICE}/OsirisRexKernels/background/spk/orx_160914_231024_pgaa3_day12m60_v1.bsp")
|
||||
|
||||
openspace.spice.loadKernel("${SPICE}/OsirisRexKernels/background/spk/orx_160908_231024_pgaa3_day06m60_v1.bsp")
|
||||
openspace.spice.loadKernel("${SPICE}/OsirisRexKernels/background/spk/spk_orx_160908_231024_pgaa2_day06m60_v3.bsp")
|
||||
openspace.spice.loadKernel("${SPICE}/OsirisRexKernels/background/spk/orx_160908_231024_pgaa2_day06m60.bsp")
|
||||
|
||||
openspace.spice.loadKernel("${SPICE}/OsirisRexKernels/background/spk/OREX_20160908_M60_complete.bsp")
|
||||
openspace.spice.loadKernel("${SPICE}/OsirisRexKernels/background/spk/OREX_20160904_M45_complete.bsp")
|
||||
|
||||
-- SPK
|
||||
openspace.spice.loadKernel("${SPICE}/OsirisRexKernels/background/spk/de421.bsp")
|
||||
openspace.spice.loadKernel("${SPICE}/OsirisRexKernels/background/spk/sb-101955-76.bsp")
|
||||
|
||||
-- Nominal_Profile_LowRes
|
||||
openspace.spice.loadKernel("${SPICE}/OsirisRexKernels/Nominal_Profile_LowRes/Approach_600s_20180816T230000_20181119T010000.bsp")
|
||||
openspace.spice.loadKernel("${SPICE}/OsirisRexKernels/Nominal_Profile_LowRes/Approach_NominalProfile_600s_20180816T230000_20181119T010000.bc")
|
||||
openspace.spice.loadKernel("${SPICE}/OsirisRexKernels/Nominal_Profile_LowRes/DetailedSurvey_600s_20190108T000000_20190317T000000.bsp")
|
||||
openspace.spice.loadKernel("${SPICE}/OsirisRexKernels/Nominal_Profile_LowRes/DetailedSurvey_NominalProfile_600s_20190108T000000_20190317T000000.bc")
|
||||
openspace.spice.loadKernel("${SPICE}/OsirisRexKernels/Nominal_Profile_LowRes/OrbitalA_600s_20181203T230000_20190109T000000.bsp")
|
||||
openspace.spice.loadKernel("${SPICE}/OsirisRexKernels/Nominal_Profile_LowRes/OrbitalA_NominalProfile_600s_20181203T230000_20190109T000000.bc")
|
||||
openspace.spice.loadKernel("${SPICE}/OsirisRexKernels/Nominal_Profile_LowRes/OrbitalB_600s_20190316T000000_20190521T000000.bsp")
|
||||
openspace.spice.loadKernel("${SPICE}/OsirisRexKernels/Nominal_Profile_LowRes/OrbitalB_NominalProfile600s_20190316T000000_20190521T000000.bc")
|
||||
openspace.spice.loadKernel("${SPICE}/OsirisRexKernels/Nominal_Profile_LowRes/PrelimSurvey_600s_20181119T230000_20181204T010000.bsp")
|
||||
openspace.spice.loadKernel("${SPICE}/OsirisRexKernels/Nominal_Profile_LowRes/PrelimSurvey_NominalProfile_600s_20181119T230000_20181204T010000.bc")
|
||||
openspace.spice.loadKernel("${SPICE}/OsirisRexKernels/Nominal_Profile_LowRes/Recon_600s_20190519T000000_20190830T000000.bsp")
|
||||
openspace.spice.loadKernel("${SPICE}/OsirisRexKernels/Nominal_Profile_LowRes/Recon_NominalProfile_600s_20190519T000000_20190830T000000.bc")
|
||||
|
||||
-- Nominal_Observations_Science
|
||||
openspace.spice.loadKernel("${SPICE}/OsirisRexKernels/Nominal_Observations_Science/03_Approach/DustSearch_v1/Phase03_AP_DustSearch_1.bc")
|
||||
openspace.spice.loadKernel("${SPICE}/OsirisRexKernels/Nominal_Observations_Science/03_Approach/LightCurve_v1/Phase03_AP_LightCurve_1.bc")
|
||||
openspace.spice.loadKernel("${SPICE}/OsirisRexKernels/Nominal_Observations_Science/03_Approach/LightCurve_v1/Phase03_AP_LightCurve_2.bc")
|
||||
openspace.spice.loadKernel("${SPICE}/OsirisRexKernels/Nominal_Observations_Science/03_Approach/NatSatSearch_v1/Phase03_AP_SatSearch_1.bc")
|
||||
openspace.spice.loadKernel("${SPICE}/OsirisRexKernels/Nominal_Observations_Science/03_Approach/NatSatSearch_v1/Phase03_AP_SatSearch_2.bc")
|
||||
openspace.spice.loadKernel("${SPICE}/OsirisRexKernels/Nominal_Observations_Science/03_Approach/PhaseFunction_v1/Phase03_AP_PhaseFunction_1.bc")
|
||||
openspace.spice.loadKernel("${SPICE}/OsirisRexKernels/Nominal_Observations_Science/03_Approach/ShapeModel_v1/Phase03_AP_ShapeModel_1.bc")
|
||||
openspace.spice.loadKernel("${SPICE}/OsirisRexKernels/Nominal_Observations_Science/03_Approach/ShapeModel_v1/Phase03_AP_ShapeModel_2.bc")
|
||||
openspace.spice.loadKernel("${SPICE}/OsirisRexKernels/Nominal_Observations_Science/03_Approach/ShapeModel_v1/Phase03_AP_ShapeModel_3.bc")
|
||||
openspace.spice.loadKernel("${SPICE}/OsirisRexKernels/Nominal_Observations_Science/03_Approach/ShapeModel_v1/Phase03_AP_ShapeModel_4.bc")
|
||||
openspace.spice.loadKernel("${SPICE}/OsirisRexKernels/Nominal_Observations_Science/03_Approach/ShapeModel_v1/Phase03_AP_ShapeModel_5.bc")
|
||||
openspace.spice.loadKernel("${SPICE}/OsirisRexKernels/Nominal_Observations_Science/03_Approach/ShapeModel_v1/Phase03_AP_ShapeModel_6.bc")
|
||||
openspace.spice.loadKernel("${SPICE}/OsirisRexKernels/Nominal_Observations_Science/03_Approach/ShapeModel_v1/Phase03_AP_ShapeModel_7.bc")
|
||||
openspace.spice.loadKernel("${SPICE}/OsirisRexKernels/Nominal_Observations_Science/03_Approach/ShapeModel_v1/Phase03_AP_ShapeModel_8.bc")
|
||||
openspace.spice.loadKernel("${SPICE}/OsirisRexKernels/Nominal_Observations_Science/03_Approach/ShapeModel_v1/Phase03_AP_ShapeModel_9_Forced4x4.bc")
|
||||
openspace.spice.loadKernel("${SPICE}/OsirisRexKernels/Nominal_Observations_Science/03_Approach/SpectraMap_v1/Phase03_AP_SpectraMap_1.bc")
|
||||
openspace.spice.loadKernel("${SPICE}/OsirisRexKernels/Nominal_Observations_Science/04_PrelimSurvey/MapCamOLA_v1/Phase04_PS_MC_1_v1_1a.bc")
|
||||
openspace.spice.loadKernel("${SPICE}/OsirisRexKernels/Nominal_Observations_Science/04_PrelimSurvey/MapCamOLA_v1/Phase04_PS_MC_2_v1_1a.bc")
|
||||
openspace.spice.loadKernel("${SPICE}/OsirisRexKernels/Nominal_Observations_Science/04_PrelimSurvey/OLA_v1/Phase04_PS_OLA_Nominal_1.bc")
|
||||
openspace.spice.loadKernel("${SPICE}/OsirisRexKernels/Nominal_Observations_Science/04_PrelimSurvey/OLA_v1/Phase04_PS_OLA_Nominal_2.bc")
|
||||
openspace.spice.loadKernel("${SPICE}/OsirisRexKernels/Nominal_Observations_Science/04_PrelimSurvey/OLA_v1/Phase04_PS_OLA_Nominal_3.bc")
|
||||
openspace.spice.loadKernel("${SPICE}/OsirisRexKernels/Nominal_Observations_Science/04_PrelimSurvey/OLA_v1/Phase04_PS_OLA_Nominal_4.bc")
|
||||
openspace.spice.loadKernel("${SPICE}/OsirisRexKernels/Nominal_Observations_Science/04_PrelimSurvey/PolyCam_v1/Phase04_PS_PolyCam_1.bc")
|
||||
openspace.spice.loadKernel("${SPICE}/OsirisRexKernels/Nominal_Observations_Science/04_PrelimSurvey/PolyCam_v1/Phase04_PS_PolyCam_2.bc")
|
||||
openspace.spice.loadKernel("${SPICE}/OsirisRexKernels/Nominal_Observations_Science/04_PrelimSurvey/PolyCam_v1/Phase04_PS_PolyCam_3.bc")
|
||||
openspace.spice.loadKernel("${SPICE}/OsirisRexKernels/Nominal_Observations_Science/04_PrelimSurvey/PolyCam_v1/Phase04_PS_PolyCam_4.bc")
|
||||
openspace.spice.loadKernel("${SPICE}/OsirisRexKernels/Nominal_Observations_Science/04_PrelimSurvey/PolyCam_v1/Phase04_PS_PolyCam_5.bc")
|
||||
openspace.spice.loadKernel("${SPICE}/OsirisRexKernels/Nominal_Observations_Science/04_PrelimSurvey/PolyCam_v1/Phase04_PS_PolyCam_6.bc")
|
||||
|
||||
--openspace.spice.loadKernel("${SPICE}/OsirisRexKernels/Nominal_Observations_Science/06_DetailedSurvey/BaseballDiamond_v2/atl_19013_18_BBD1_info.TXT")
|
||||
--openspace.spice.loadKernel("${SPICE}/OsirisRexKernels/Nominal_Observations_Science/06_DetailedSurvey/BaseballDiamond_v2/atl_19014_16_BBD2_info.TXT")
|
||||
--openspace.spice.loadKernel("${SPICE}/OsirisRexKernels/Nominal_Observations_Science/06_DetailedSurvey/BaseballDiamond_v2/atl_19020_18_BBD3_info.TXT")
|
||||
--openspace.spice.loadKernel("${SPICE}/OsirisRexKernels/Nominal_Observations_Science/06_DetailedSurvey/BaseballDiamond_v2/atl_19021_19_BBD4_info.TXT")
|
||||
--openspace.spice.loadKernel("${SPICE}/OsirisRexKernels/Nominal_Observations_Science/06_DetailedSurvey/BaseballDiamond_v2/README.txt")
|
||||
|
||||
openspace.spice.loadKernel("${SPICE}/OsirisRexKernels/Nominal_Observations_Science/06_DetailedSurvey/BaseballDiamond_v2/atl_19013_18_BBD1_v2.bc")
|
||||
openspace.spice.loadKernel("${SPICE}/OsirisRexKernels/Nominal_Observations_Science/06_DetailedSurvey/BaseballDiamond_v2/atl_19014_16_BBD2_v2.bc")
|
||||
openspace.spice.loadKernel("${SPICE}/OsirisRexKernels/Nominal_Observations_Science/06_DetailedSurvey/BaseballDiamond_v2/atl_19020_18_BBD3_v2.bc")
|
||||
openspace.spice.loadKernel("${SPICE}/OsirisRexKernels/Nominal_Observations_Science/06_DetailedSurvey/BaseballDiamond_v2/atl_19021_19_BBD4_v2.bc")
|
||||
|
||||
|
||||
openspace.spice.loadKernel("${SPICE}/OsirisRexKernels/Nominal_Observations_Science/06_DetailedSurvey/EquatorialStations_v1/Phase06_DS_Equatorial_Stations_1.bc")
|
||||
openspace.spice.loadKernel("${SPICE}/OsirisRexKernels/Nominal_Observations_Science/06_DetailedSurvey/EquatorialStations_v1/Phase06_DS_Equatorial_Stations_2.bc")
|
||||
openspace.spice.loadKernel("${SPICE}/OsirisRexKernels/Nominal_Observations_Science/06_DetailedSurvey/EquatorialStations_v1/Phase06_DS_Equatorial_Stations_3.bc")
|
||||
openspace.spice.loadKernel("${SPICE}/OsirisRexKernels/Nominal_Observations_Science/06_DetailedSurvey/EquatorialStations_v1/Phase06_DS_Equatorial_Stations_4.bc")
|
||||
openspace.spice.loadKernel("${SPICE}/OsirisRexKernels/Nominal_Observations_Science/06_DetailedSurvey/EquatorialStations_v1/Phase06_DS_Equatorial_Stations_5.bc")
|
||||
openspace.spice.loadKernel("${SPICE}/OsirisRexKernels/Nominal_Observations_Science/06_DetailedSurvey/EquatorialStations_v1/Phase06_DS_Equatorial_Stations_6.bc")
|
||||
openspace.spice.loadKernel("${SPICE}/OsirisRexKernels/Nominal_Observations_Science/06_DetailedSurvey/EquatorialStations_v1/Phase06_DS_Equatorial_Stations_7.bc")
|
||||
openspace.spice.loadKernel("${SPICE}/OsirisRexKernels/Nominal_Observations_Science/06_DetailedSurvey/PlumeSearch_v1/Phase06_DS_Plume_Search_1.bc")
|
||||
openspace.spice.loadKernel("${SPICE}/OsirisRexKernels/Nominal_Observations_Science/06_DetailedSurvey/PlumeSearch_v1/Phase06_DS_Plume_Search_2.bc")
|
||||
openspace.spice.loadKernel("${SPICE}/OsirisRexKernels/Nominal_Observations_Science/07_OrbitalB/CandidateSampleSite_v1/Phase07_OB_CSS_Mapping_1.bc")
|
||||
openspace.spice.loadKernel("${SPICE}/OsirisRexKernels/Nominal_Observations_Science/07_OrbitalB/CandidateSampleSite_v1/Phase07_OB_CSS_Mapping_2.bc")
|
||||
openspace.spice.loadKernel("${SPICE}/OsirisRexKernels/Nominal_Observations_Science/07_OrbitalB/CandidateSampleSite_v1/Phase07_OB_CSS_Mapping_3.bc")
|
||||
openspace.spice.loadKernel("${SPICE}/OsirisRexKernels/Nominal_Observations_Science/07_OrbitalB/CandidateSampleSite_v2/CSS_Mapping_1.a")
|
||||
openspace.spice.loadKernel("${SPICE}/OsirisRexKernels/Nominal_Observations_Science/07_OrbitalB/CandidateSampleSite_v2/CSS_Mapping_2.a")
|
||||
openspace.spice.loadKernel("${SPICE}/OsirisRexKernels/Nominal_Observations_Science/07_OrbitalB/CandidateSampleSite_v2/CSS_Mapping_3.a")
|
||||
|
||||
--openspace.spice.loadKernel("${SPICE}/OsirisRexKernels/Nominal_Observations_Science/08_Recon/225m_Sortie_v2/Case02_0Latitude.wmv")
|
||||
--openspace.spice.loadKernel("${SPICE}/OsirisRexKernels/Nominal_Observations_Science/08_Recon/225m_Sortie_v2/Case05_20negLatitude.wmv")
|
||||
--openspace.spice.loadKernel("${SPICE}/OsirisRexKernels/Nominal_Observations_Science/08_Recon/225m_Sortie_v2/Case08_40negLatitude.wmv")
|
||||
--openspace.spice.loadKernel("${SPICE}/OsirisRexKernels/Nominal_Observations_Science/08_Recon/225m_Sortie_v2/Case11_60negLatitude.wmv")
|
||||
|
||||
local case = 2 -- Right now we only have the image times for case 2
|
||||
|
||||
if case == 2 then
|
||||
openspace.spice.loadKernel("${SPICE}/OsirisRexKernels/Nominal_Observations_Science/08_Recon/525m_Sortie_v2/ORX_Recon_525mSortie_Case02.bsp")
|
||||
openspace.spice.loadKernel("${SPICE}/OsirisRexKernels/Nominal_Observations_Science/08_Recon/525m_Sortie_v2/Recon_525mSortie_Case02_0Latitude.bc")
|
||||
openspace.spice.loadKernel("${SPICE}/OsirisRexKernels/Nominal_Observations_Science/08_Recon/525m_Sortie_v2/Recon_525mSortie_Case02_atl_19145_04.atf")
|
||||
|
||||
openspace.spice.loadKernel("${SPICE}/OsirisRexKernels/Nominal_Observations_Science/08_Recon/225m_Sortie_v2/ORX_Recon_225mSortie_Case02.bsp")
|
||||
openspace.spice.loadKernel("${SPICE}/OsirisRexKernels/Nominal_Observations_Science/08_Recon/225m_Sortie_v2/Recon_225mSortie_Case02_0Latitude.bc")
|
||||
elseif case == 5 then
|
||||
openspace.spice.loadKernel("${SPICE}/OsirisRexKernels/Nominal_Observations_Science/08_Recon/525m_Sortie_v2/ORX_Recon_525mSortie_Case05.bsp")
|
||||
openspace.spice.loadKernel("${SPICE}/OsirisRexKernels/Nominal_Observations_Science/08_Recon/525m_Sortie_v2/Recon_525mSortie_Case05_20negLatitude.bc")
|
||||
openspace.spice.loadKernel("${SPICE}/OsirisRexKernels/Nominal_Observations_Science/08_Recon/525m_Sortie_v2/Recon_525mSortie_Case05_atl_19145_04.atf")
|
||||
openspace.spice.loadKernel("${SPICE}/OsirisRexKernels/Nominal_Observations_Science/08_Recon/525m_Sortie_v2/Recon_525mSortie_Case05_NominalProfile.bc")
|
||||
|
||||
openspace.spice.loadKernel("${SPICE}/OsirisRexKernels/Nominal_Observations_Science/08_Recon/225m_Sortie_v2/ORX_Recon_225mSortie_Case05.bsp")
|
||||
openspace.spice.loadKernel("${SPICE}/OsirisRexKernels/Nominal_Observations_Science/08_Recon/225m_Sortie_v2/Recon_225mSortie_Case05_20negLatitude.bc")
|
||||
elseif case == 8 then
|
||||
openspace.spice.loadKernel("${SPICE}/OsirisRexKernels/Nominal_Observations_Science/08_Recon/525m_Sortie_v2/Recon_525mSortie_Case08_NominalProfile.bc")
|
||||
openspace.spice.loadKernel("${SPICE}/OsirisRexKernels/Nominal_Observations_Science/08_Recon/225m_Sortie_v2/ORX_Recon_225mSortie_Case08.bsp")
|
||||
openspace.spice.loadKernel("${SPICE}/OsirisRexKernels/Nominal_Observations_Science/08_Recon/225m_Sortie_v2/Recon_225mSortie_Case08_40negLatitude.bc")
|
||||
elseif case == 11 then
|
||||
openspace.spice.loadKernel("${SPICE}/OsirisRexKernels/Nominal_Observations_Science/08_Recon/225m_Sortie_v2/ORX_Recon_225mSortie_Case11.bsp")
|
||||
openspace.spice.loadKernel("${SPICE}/OsirisRexKernels/Nominal_Observations_Science/08_Recon/225m_Sortie_v2/Recon_225mSortie_Case11_60negLatitude.bc")
|
||||
end
|
||||
|
||||
-- Load planetary constants
|
||||
openspace.spice.loadKernel("${SPICE}/pck00010.tpc")
|
||||
|
||||
dofile(openspace.absPath('${SCRIPTS}/bind_keys.lua'))
|
||||
dofile(openspace.absPath('${SCRIPTS}/bind_keys_osirisrex.lua'))
|
||||
|
||||
--local startTime = "2019 APR 16 12:03:00.00"
|
||||
|
||||
openspace.scriptScheduler.load("${OPENSPACE_DATA}/scene/osirisrex/scheduled_scripts.lua")
|
||||
|
||||
-- Removing the line below will cause all scripts prior to <startTime> to be executed during initialization
|
||||
-- openspace.scriptScheduler.skipTo(startTime);
|
||||
|
||||
end
|
||||
|
||||
function postInitialization()
|
||||
--[[
|
||||
The scripts in this function are executed after all objects in the scene have been
|
||||
created and initialized, but before the first render call. This is the place to set
|
||||
graphical settings for the renderables.
|
||||
]]--
|
||||
openspace.printInfo("Setting default values")
|
||||
openspace.setPropertyValue("Sun.renderable.enabled", false)
|
||||
openspace.setPropertyValue("SunMarker.renderable.enabled", false)
|
||||
openspace.setPropertyValue("EarthMarker.renderable.enabled", false)
|
||||
--openspace.setPropertyValue("Constellation Bounds.renderable.enabled", false)
|
||||
openspace.setPropertyValue("PlutoTrail.renderable.enabled", true)
|
||||
openspace.setPropertyValue("PlutoTexture.renderable.enabled", false)
|
||||
|
||||
openspace.setPropertyValue("MilkyWay.renderable.transparency", 0.55)
|
||||
openspace.setPropertyValue("MilkyWay.renderable.segments", 50)
|
||||
|
||||
-- Activate night textures and water masks
|
||||
openspace.setPropertyValue("Earth.RenderableGlobe.WaterMasks", {0, 1});
|
||||
openspace.setPropertyValue("Earth.RenderableGlobe.NightTextures", {0, 1});
|
||||
openspace.setPropertyValue("Earth.RenderableGlobe.Atmosphere", true);
|
||||
|
||||
openspace.printInfo("Done setting default values")
|
||||
openspace.loadMission("${OPENSPACE_DATA}/scene/osirisrex/osirisrex/osirisrex.mission")
|
||||
|
||||
openspace.time.setTime(startTime)
|
||||
openspace.time.setDeltaTime(0)
|
||||
|
||||
openspace.resetCameraDirection()
|
||||
end
|
||||
|
||||
return {
|
||||
ScenePath = ".",
|
||||
CommonFolder = "common",
|
||||
Camera = {
|
||||
Focus = "OsirisRex",
|
||||
Position = {26974590199.661884, 76314608558.908020, -127086452897.101791},
|
||||
Rotation = {0.729548, -0.126024, 0.416827, 0.527382},
|
||||
},
|
||||
Modules = {
|
||||
"sun",
|
||||
"mercury",
|
||||
-- "lodmercury",
|
||||
"venus",
|
||||
"earth",
|
||||
"mars",
|
||||
-- "lodearth",
|
||||
-- "lodmoon",
|
||||
-- "lodmars",
|
||||
"jupiter",
|
||||
"saturn",
|
||||
"uranus",
|
||||
"neptune",
|
||||
"stars",
|
||||
-- "stars-denver",
|
||||
"milkyway",
|
||||
-- "milkyway-eso",
|
||||
--"imageplane",
|
||||
"osirisrex",
|
||||
}
|
||||
}
|
||||
|
||||
@@ -9,7 +9,7 @@ return {
|
||||
Parent = "SolarSystemBarycenter",
|
||||
Transform = {
|
||||
Translation = {
|
||||
Type = "SpiceEphemeris",
|
||||
Type = "SpiceTranslation",
|
||||
Body = BENNU_BODY,
|
||||
Observer = "SUN",
|
||||
},
|
||||
|
||||
@@ -24,125 +24,363 @@ References:
|
||||
|
||||
--]]
|
||||
|
||||
return
|
||||
{ Name = "OSIRIS-REx", Phases = {
|
||||
|
||||
-- All 1-level phases based on [1]
|
||||
{ Name = "Planning and Fabrication", TimeRange = { Start = "2012 JAN 01 00:00:00", End = "2016 SEP 08 23:05:00" } },
|
||||
{ Name = "Outbound Cruise", TimeRange = { Start = "2016 SEP 03 00:00:00", End = "2018 SEP 01 01:00:00" }, Phases = {
|
||||
|
||||
-- Phases from [4]
|
||||
{ Name = "Pre Launch", TimeRange = { Start = "2016 SEP 03 01:00:00", End = "2016 SEP 08 23:05:05" } },
|
||||
{ Name = "Launch", TimeRange = { Start = "2016 SEP 08 23:05:05", End = "2016 SEP 08 23:09:00" } },
|
||||
{ Name = "Earth Orbit", TimeRange = { Start = "2016 SEP 08 23:09:00", End = "2016 SEP 08 23:45:00" } },
|
||||
{ Name = "Solar Orbit", TimeRange = { Start = "2016 SEP 08 23:45:00", End = "2018 SEP 01 00:00:00" } },
|
||||
{ Name = "Upcoming Gravity Assist", TimeRange = { Start = "2017 JAN 22 15:00:00", End = "2017 SEP 22 15:00:00" } },
|
||||
{ Name = "Gravity Assist", TimeRange = { Start = "2017 SEP 22 15:00:00", End = "2017 SEP 22 21:00:00" } },
|
||||
|
||||
} },
|
||||
|
||||
{ Name = "Asteroid Operations", Phases = {
|
||||
|
||||
-- Nested Levels from [3]
|
||||
{ Name = "03_Approach", Phases = {
|
||||
{ Name = "DustSearch_v1", Phases = {
|
||||
{ Name = "Phase03_AP_DustSearch_1.bc", TimeRange = { Start = "2018-SEP-11 21:31:01.183", End = "2018-SEP-12 02:18:41.183" }},
|
||||
}},
|
||||
{ Name = "LightCurve_v1", Phases = {
|
||||
{ Name = "Phase03_AP_LightCurve_1.bc", TimeRange = { Start = "2018-OCT-09 21:50:48.182", End = "2018-OCT-10 02:33:16.183" }},
|
||||
{ Name = "Phase03_AP_LightCurve_2.bc", TimeRange = { Start = "2018-OCT-10 21:50:48.182", End = "2018-OCT-11 02:33:16.183" }},
|
||||
}},
|
||||
{ Name = "NatSatSearch_v1", Phases = {
|
||||
{ Name = "Phase03_AP_SatSearch_1.bc", TimeRange = { Start = "2018-OCT-26 19:38:30.183", End = "2018-OCT-27 00:22:34.183" }},
|
||||
{ Name = "Phase03_AP_SatSearch_2.bc", TimeRange = { Start = "2018-NOV-05 17:10:20.183", End = "2018-NOV-05 21:59:48.183" }},
|
||||
}},
|
||||
{ Name = "PhaseFunction_v1", Phases = {
|
||||
{ Name = "Phase03_AP_PhaseFunction_1.bc", TimeRange = { Start = "2018-OCT-12 21:42:26.183", End = "2018-OCT-13 02:24:54.183" }},
|
||||
}},
|
||||
{ Name = "ShapeModel_v1", Phases = {
|
||||
{ Name = "Phase03_AP_ShapeModel_1.bc", TimeRange = { Start = "2018-NOV-09 11:02:59.183", End = "2018-NOV-09 15:52:27.183" }},
|
||||
{ Name = "Phase03_AP_ShapeModel_2.bc", TimeRange = { Start = "2018-NOV-10 11:02:59.183", End = "2018-NOV-10 15:52:27.183" }},
|
||||
{ Name = "Phase03_AP_ShapeModel_3.bc", TimeRange = { Start = "2018-NOV-11 11:02:59.183", End = "2018-NOV-11 15:52:27.183" }},
|
||||
{ Name = "Phase03_AP_ShapeModel_4.bc", TimeRange = { Start = "2018-NOV-12 11:02:59.183", End = "2018-NOV-12 15:52:27.183" }},
|
||||
{ Name = "Phase03_AP_ShapeModel_5.bc", TimeRange = { Start = "2018-NOV-13 11:02:59.183", End = "2018-NOV-13 15:52:27.183" }},
|
||||
{ Name = "Phase03_AP_ShapeModel_6.bc", TimeRange = { Start = "2018-NOV-14 11:03:53.183", End = "2018-NOV-14 15:51:33.183" }},
|
||||
{ Name = "Phase03_AP_ShapeModel_7.bc", TimeRange = { Start = "2018-NOV-15 11:03:53.183", End = "2018-NOV-15 15:51:33.183" }},
|
||||
{ Name = "Phase03_AP_ShapeModel_8.bc", TimeRange = { Start = "2018-NOV-16 11:03:53.183", End = "2018-NOV-16 15:51:33.183" }},
|
||||
{ Name = "Phase03_AP_ShapeModel_9_Forced4x4.bc", TimeRange = { Start = "2018-NOV-17 11:03:54.183", End = "2018-NOV-17 15:51:34.183" }},
|
||||
}},
|
||||
{ Name = "SpectraMap_v1", Phases = {
|
||||
{ Name = "Phase03_AP_SpectraMap_1.bc", TimeRange = { Start = "2018-OCT-30 20:44:53.183", End = "2018-OCT-31 01:34:21.183" }},
|
||||
}},
|
||||
}},
|
||||
{ Name = "04_PrelimSurvey", Phases = {
|
||||
{ Name = "MapCamOLA_v1", Phases = {
|
||||
{ Name = "Phase04_PS_MC_1_v1_1a.bc", TimeRange = { Start = "2018-NOV-20 01:13:12.183", End = "2018-NOV-20 06:13:04.183" }},
|
||||
{ Name = "Phase04_PS_MC_2_v1_1a.bc", TimeRange = { Start = "2018-NOV-28 01:13:12.183", End = "2018-NOV-28 06:13:04.183" }},
|
||||
}},
|
||||
{ Name = "OLA_v1", Phases = {
|
||||
{ Name = "Phase04_PS_OLA_Nominal_1.bc", TimeRange = { Start = "2018-NOV-19 22:30:00.184", End = "2018-NOV-19 23:19:28.183" }},
|
||||
{ Name = "Phase04_PS_OLA_Nominal_2.bc", TimeRange = { Start = "2018-NOV-23 22:19:34.184", End = "2018-NOV-23 23:19:26.183" }},
|
||||
{ Name = "Phase04_PS_OLA_Nominal_3.bc", TimeRange = { Start = "2018-NOV-24 00:48:38.184", End = "2018-NOV-24 01:38:06.184" }},
|
||||
{ Name = "Phase04_PS_OLA_Nominal_4.bc", TimeRange = { Start = "2018-NOV-27 22:29:58.184", End = "2018-NOV-27 23:19:26.183" }},
|
||||
}},
|
||||
{ Name = "PolyCam_v1", Phases = {
|
||||
{ Name = "Phase04_PS_PolyCam_1.bc", TimeRange = { Start = "2018-NOV-19 12:00:33.183", End = "2018-NOV-19 16:46:25.183" }},
|
||||
{ Name = "Phase04_PS_PolyCam_2.bc", TimeRange = { Start = "2018-NOV-20 07:10:26.183", End = "2018-NOV-20 12:10:18.183" }},
|
||||
{ Name = "Phase04_PS_PolyCam_3.bc", TimeRange = { Start = "2018-NOV-23 11:51:29.184", End = "2018-NOV-23 16:51:21.184" }},
|
||||
{ Name = "Phase04_PS_PolyCam_4.bc", TimeRange = { Start = "2018-NOV-24 07:17:39.184", End = "2018-NOV-24 12:03:31.184" }},
|
||||
{ Name = "Phase04_PS_PolyCam_5.bc", TimeRange = { Start = "2018-NOV-27 12:00:20.184", End = "2018-NOV-27 16:46:12.184" }},
|
||||
{ Name = "Phase04_PS_PolyCam_6.bc", TimeRange = { Start = "2018-NOV-28 07:10:35.183", End = "2018-NOV-28 12:10:27.183" }},
|
||||
}},
|
||||
}},
|
||||
{ Name = "06_DetailedSurvey", Phases = {
|
||||
{ Name = "BaseballDiamond_v2", Phases = {
|
||||
{ Name = "atl_19013_18_BBD1_v2.bc", TimeRange = { Start = "2019-JAN-13 18:59:31.195", End = "2019-JAN-13 23:59:29.179" }},
|
||||
{ Name = "atl_19014_16_BBD2_v2.bc", TimeRange = { Start = "2019-JAN-14 16:56:01.185", End = "2019-JAN-14 21:55:58.219" }},
|
||||
{ Name = "atl_19020_18_BBD3_v2.bc", TimeRange = { Start = "2019-JAN-20 18:59:15.211", End = "2019-JAN-20 23:59:13.195" }},
|
||||
{ Name = "atl_19021_19_BBD4_v2.bc", TimeRange = { Start = "2019-JAN-21 19:26:47.179", End = "2019-JAN-22 00:26:44.213" }},
|
||||
}},
|
||||
{ Name = "EquatorialStations_v1", Phases = {
|
||||
{ Name = "Phase06_DS_Equatorial_Stations_1.bc", TimeRange = { Start = "2019-JAN-27 10:36:24.185", End = "2019-JAN-27 15:20:28.185" }},
|
||||
{ Name = "Phase06_DS_Equatorial_Stations_2.bc", TimeRange = { Start = "2019-FEB-03 10:35:30.185", End = "2019-FEB-03 15:21:22.185" }},
|
||||
{ Name = "Phase06_DS_Equatorial_Stations_3.bc", TimeRange = { Start = "2019-FEB-10 10:51:50.185", End = "2019-FEB-10 15:51:42.185" }},
|
||||
{ Name = "Phase06_DS_Equatorial_Stations_4.bc", TimeRange = { Start = "2019-FEB-17 10:29:11.186", End = "2019-FEB-17 15:29:03.186" }},
|
||||
{ Name = "Phase06_DS_Equatorial_Stations_5.bc", TimeRange = { Start = "2019-FEB-24 10:08:28.186", End = "2019-FEB-24 15:08:20.185" }},
|
||||
{ Name = "Phase06_DS_Equatorial_Stations_6.bc", TimeRange = { Start = "2019-MAR-03 09:52:58.186", End = "2019-MAR-03 14:42:26.186" }},
|
||||
{ Name = "Phase06_DS_Equatorial_Stations_7.bc", TimeRange = { Start = "2019-MAR-10 09:57:47.186", End = "2019-MAR-10 14:36:33.186" }},
|
||||
}},
|
||||
{ Name = "PlumeSearch_v1", Phases = {
|
||||
{ Name = "Phase06_DS_Plume_Search_1.bc", TimeRange = { Start = "2019-JAN-28 10:34:36.185", End = "2019-JAN-28 15:22:16.185" }},
|
||||
{ Name = "Phase06_DS_Plume_Search_2.bc", TimeRange = { Start = "2019-FEB-18 10:29:11.186", End = "2019-FEB-18 15:29:03.186" }},
|
||||
}},
|
||||
}},
|
||||
{ Name = "07_OrbitalB", Phases = {
|
||||
{ Name = "CandidateSampleSite_v1", Phases = {
|
||||
{ Name = "Phase07_OB_CSS_Mapping_1.bc", TimeRange = { Start = "2019-APR-08 10:35:27.186", End = "2019-APR-08 15:22:06.186" }},
|
||||
{ Name = "Phase07_OB_CSS_Mapping_2.bc", TimeRange = { Start = "2019-APR-08 16:16:06.186", End = "2019-APR-11 10:38:58.186" }},
|
||||
{ Name = "Phase07_OB_CSS_Mapping_3.bc", TimeRange = { Start = "2019-APR-22 17:51:23.186", End = "2019-APR-29 19:41:03.186" }},
|
||||
}},
|
||||
}},
|
||||
{ Name = "08_Recon", Phases = {
|
||||
{ Name = "225m_Sortie_v2", Phases = {
|
||||
{ Name = "Recon_225mSortie_Case02_0Latitude.bc", TimeRange = { Start = "2019-MAY-25 03:50:31.195", End = "2019-MAY-25 04:32:17.227" }},
|
||||
{ Name = "Recon_225mSortie_Case05_20negLatitude.bc", TimeRange = { Start = "2019-MAY-25 03:50:48.216", End = "2019-MAY-25 04:37:10.209" }},
|
||||
{ Name = "Recon_225mSortie_Case08_40negLatitude.bc", TimeRange = { Start = "2019-MAY-25 04:02:43.176", End = "2019-MAY-25 04:54:41.179" }},
|
||||
{ Name = "Recon_225mSortie_Case11_60negLatitude.bc", TimeRange = { Start = "2019-MAY-25 04:21:46.161", End = "2019-MAY-25 05:18:44.232" }},
|
||||
}},
|
||||
{ Name = "525m_Sortie_v2", Phases = {
|
||||
{ Name = "Recon_525mSortie_Case02_0Latitude.bc", TimeRange = { Start = "2019-MAY-25 04:06:39.220", End = "2019-MAY-25 04:44:17.198" }},
|
||||
{ Name = "Recon_525mSortie_Case05_20negLatitude.bc", TimeRange = { Start = "2019-MAY-25 04:11:39.201", End = "2019-MAY-25 04:49:37.224" }},
|
||||
{ Name = "Recon_525mSortie_Case05_NominalProfile.bc", TimeRange = { Start = "2019-MAY-25 03:01:50.184", End = "2019-MAY-25 06:38:50.232" }},
|
||||
{ Name = "Recon_525mSortie_Case08_NominalProfile.bc", TimeRange = { Start = "2019-MAY-25 03:01:50.184", End = "2019-MAY-25 06:38:50.232" }},
|
||||
}},
|
||||
}},
|
||||
return {
|
||||
Name = "OSIRIS-REx",
|
||||
Phases = {
|
||||
-- All 1-level phases based on [1]
|
||||
{
|
||||
Name = "Planning and Fabrication",
|
||||
TimeRange = { Start = "2012 JAN 01 00:00:00", End = "2016 SEP 08 23:05:00" }
|
||||
},
|
||||
{
|
||||
Name = "Outbound Cruise",
|
||||
TimeRange = { Start = "2016 SEP 03 00:00:00", End = "2018 SEP 01 01:00:00" },
|
||||
Phases = {
|
||||
-- Phases from [4]
|
||||
{
|
||||
Name = "Pre Launch",
|
||||
TimeRange = { Start = "2016 SEP 03 01:00:00", End = "2016 SEP 08 23:05:05" }
|
||||
},
|
||||
{
|
||||
Name = "Launch", TimeRange = { Start = "2016 SEP 08 23:05:05", End = "2016 SEP 08 23:09:00" }
|
||||
},
|
||||
{
|
||||
Name = "Earth Orbit", TimeRange = { Start = "2016 SEP 08 23:09:00", End = "2016 SEP 08 23:45:00" }
|
||||
},
|
||||
{
|
||||
Name = "Solar Orbit", TimeRange = { Start = "2016 SEP 08 23:45:00", End = "2018 SEP 01 00:00:00" }
|
||||
},
|
||||
{
|
||||
Name = "Upcoming Gravity Assist", TimeRange = { Start = "2017 JAN 22 15:00:00", End = "2017 SEP 22 15:00:00" }
|
||||
},
|
||||
{
|
||||
Name = "Gravity Assist", TimeRange = { Start = "2017 SEP 22 15:00:00", End = "2017 SEP 22 21:00:00" }
|
||||
}
|
||||
}
|
||||
},
|
||||
{
|
||||
Name = "Asteroid Operations",
|
||||
Phases = {
|
||||
-- Nested Levels from [3]
|
||||
{
|
||||
Name = "03_Approach", Phases = {
|
||||
{
|
||||
Name = "DustSearch_v1",
|
||||
Phases = {
|
||||
{
|
||||
Name = "Phase03_AP_DustSearch_1.bc",
|
||||
TimeRange = { Start = "2018-SEP-11 21:31:01.183", End = "2018-SEP-12 02:18:41.183" }
|
||||
}
|
||||
}
|
||||
},
|
||||
{
|
||||
Name = "LightCurve_v1",
|
||||
Phases = {
|
||||
{
|
||||
Name = "Phase03_AP_LightCurve_1.bc",
|
||||
TimeRange = { Start = "2018-OCT-09 21:50:48.182", End = "2018-OCT-10 02:33:16.183" }
|
||||
},
|
||||
{
|
||||
Name = "Phase03_AP_LightCurve_2.bc",
|
||||
TimeRange = { Start = "2018-OCT-10 21:50:48.182", End = "2018-OCT-11 02:33:16.183" }
|
||||
}
|
||||
}
|
||||
},
|
||||
{
|
||||
Name = "NatSatSearch_v1",
|
||||
Phases = {
|
||||
{
|
||||
Name = "Phase03_AP_SatSearch_1.bc",
|
||||
TimeRange = { Start = "2018-OCT-26 19:38:30.183", End = "2018-OCT-27 00:22:34.183" }
|
||||
},
|
||||
{
|
||||
Name = "Phase03_AP_SatSearch_2.bc",
|
||||
TimeRange = { Start = "2018-NOV-05 17:10:20.183", End = "2018-NOV-05 21:59:48.183" }
|
||||
}
|
||||
}
|
||||
},
|
||||
{
|
||||
Name = "PhaseFunction_v1",
|
||||
Phases = {
|
||||
{
|
||||
Name = "Phase03_AP_PhaseFunction_1.bc",
|
||||
TimeRange = { Start = "2018-OCT-12 21:42:26.183", End = "2018-OCT-13 02:24:54.183" }
|
||||
}
|
||||
}
|
||||
},
|
||||
{
|
||||
Name = "ShapeModel_v1", Phases = {
|
||||
{
|
||||
Name = "Phase03_AP_ShapeModel_1.bc",
|
||||
TimeRange = { Start = "2018-NOV-09 11:02:59.183", End = "2018-NOV-09 15:52:27.183" }
|
||||
},
|
||||
{
|
||||
Name = "Phase03_AP_ShapeModel_2.bc",
|
||||
TimeRange = { Start = "2018-NOV-10 11:02:59.183", End = "2018-NOV-10 15:52:27.183" }
|
||||
},
|
||||
{
|
||||
Name = "Phase03_AP_ShapeModel_3.bc",
|
||||
TimeRange = { Start = "2018-NOV-11 11:02:59.183", End = "2018-NOV-11 15:52:27.183" }
|
||||
},
|
||||
{
|
||||
Name = "Phase03_AP_ShapeModel_4.bc",
|
||||
TimeRange = { Start = "2018-NOV-12 11:02:59.183", End = "2018-NOV-12 15:52:27.183" }
|
||||
},
|
||||
{
|
||||
Name = "Phase03_AP_ShapeModel_5.bc",
|
||||
TimeRange = { Start = "2018-NOV-13 11:02:59.183", End = "2018-NOV-13 15:52:27.183" }
|
||||
},
|
||||
{
|
||||
Name = "Phase03_AP_ShapeModel_6.bc",
|
||||
TimeRange = { Start = "2018-NOV-14 11:03:53.183", End = "2018-NOV-14 15:51:33.183" }
|
||||
},
|
||||
{
|
||||
Name = "Phase03_AP_ShapeModel_7.bc",
|
||||
TimeRange = { Start = "2018-NOV-15 11:03:53.183", End = "2018-NOV-15 15:51:33.183" }
|
||||
},
|
||||
{
|
||||
Name = "Phase03_AP_ShapeModel_8.bc",
|
||||
TimeRange = { Start = "2018-NOV-16 11:03:53.183", End = "2018-NOV-16 15:51:33.183" }
|
||||
},
|
||||
{
|
||||
Name = "Phase03_AP_ShapeModel_9_Forced4x4.bc",
|
||||
TimeRange = { Start = "2018-NOV-17 11:03:54.183", End = "2018-NOV-17 15:51:34.183" }
|
||||
}
|
||||
}
|
||||
},
|
||||
{
|
||||
Name = "SpectraMap_v1",
|
||||
Phases = {
|
||||
{
|
||||
Name = "Phase03_AP_SpectraMap_1.bc",
|
||||
TimeRange = { Start = "2018-OCT-30 20:44:53.183", End = "2018-OCT-31 01:34:21.183" }
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
{
|
||||
Name = "04_PrelimSurvey",
|
||||
Phases = {
|
||||
{
|
||||
Name = "MapCamOLA_v1",
|
||||
Phases = {
|
||||
{
|
||||
Name = "Phase04_PS_MC_1_v1_1a.bc",
|
||||
TimeRange = { Start = "2018-NOV-20 01:13:12.183", End = "2018-NOV-20 06:13:04.183" }
|
||||
},
|
||||
{
|
||||
Name = "Phase04_PS_MC_2_v1_1a.bc",
|
||||
TimeRange = { Start = "2018-NOV-28 01:13:12.183", End = "2018-NOV-28 06:13:04.183" }
|
||||
}
|
||||
}
|
||||
},
|
||||
{
|
||||
Name = "OLA_v1",
|
||||
Phases = {
|
||||
{
|
||||
Name = "Phase04_PS_OLA_Nominal_1.bc",
|
||||
TimeRange = { Start = "2018-NOV-19 22:30:00.184", End = "2018-NOV-19 23:19:28.183" }
|
||||
},
|
||||
{
|
||||
Name = "Phase04_PS_OLA_Nominal_2.bc",
|
||||
TimeRange = { Start = "2018-NOV-23 22:19:34.184", End = "2018-NOV-23 23:19:26.183" }
|
||||
},
|
||||
{
|
||||
Name = "Phase04_PS_OLA_Nominal_3.bc",
|
||||
TimeRange = { Start = "2018-NOV-24 00:48:38.184", End = "2018-NOV-24 01:38:06.184" }
|
||||
},
|
||||
{
|
||||
Name = "Phase04_PS_OLA_Nominal_4.bc",
|
||||
TimeRange = { Start = "2018-NOV-27 22:29:58.184", End = "2018-NOV-27 23:19:26.183" }
|
||||
}
|
||||
}
|
||||
},
|
||||
{
|
||||
Name = "PolyCam_v1",
|
||||
Phases = {
|
||||
{
|
||||
Name = "Phase04_PS_PolyCam_1.bc",
|
||||
TimeRange = { Start = "2018-NOV-19 12:00:33.183", End = "2018-NOV-19 16:46:25.183" }
|
||||
},
|
||||
{
|
||||
Name = "Phase04_PS_PolyCam_2.bc",
|
||||
TimeRange = { Start = "2018-NOV-20 07:10:26.183", End = "2018-NOV-20 12:10:18.183" }
|
||||
},
|
||||
{
|
||||
Name = "Phase04_PS_PolyCam_3.bc",
|
||||
TimeRange = { Start = "2018-NOV-23 11:51:29.184", End = "2018-NOV-23 16:51:21.184" }
|
||||
},
|
||||
{
|
||||
Name = "Phase04_PS_PolyCam_4.bc",
|
||||
TimeRange = { Start = "2018-NOV-24 07:17:39.184", End = "2018-NOV-24 12:03:31.184" }
|
||||
},
|
||||
{
|
||||
Name = "Phase04_PS_PolyCam_5.bc",
|
||||
TimeRange = { Start = "2018-NOV-27 12:00:20.184", End = "2018-NOV-27 16:46:12.184" }
|
||||
},
|
||||
{
|
||||
Name = "Phase04_PS_PolyCam_6.bc",
|
||||
TimeRange = { Start = "2018-NOV-28 07:10:35.183", End = "2018-NOV-28 12:10:27.183" }
|
||||
}
|
||||
}
|
||||
},
|
||||
}
|
||||
},
|
||||
{
|
||||
Name = "06_DetailedSurvey",
|
||||
Phases = {
|
||||
{
|
||||
Name = "BaseballDiamond_v2",
|
||||
Phases = {
|
||||
{
|
||||
Name = "atl_19013_18_BBD1_v2.bc",
|
||||
TimeRange = { Start = "2019-JAN-13 18:59:31.195", End = "2019-JAN-13 23:59:29.179" }
|
||||
},
|
||||
{
|
||||
Name = "atl_19014_16_BBD2_v2.bc",
|
||||
TimeRange = { Start = "2019-JAN-14 16:56:01.185", End = "2019-JAN-14 21:55:58.219" }
|
||||
},
|
||||
{
|
||||
Name = "atl_19020_18_BBD3_v2.bc",
|
||||
TimeRange = { Start = "2019-JAN-20 18:59:15.211", End = "2019-JAN-20 23:59:13.195" }
|
||||
},
|
||||
{
|
||||
Name = "atl_19021_19_BBD4_v2.bc",
|
||||
TimeRange = { Start = "2019-JAN-21 19:26:47.179", End = "2019-JAN-22 00:26:44.213" }
|
||||
}
|
||||
}
|
||||
},
|
||||
{
|
||||
Name = "EquatorialStations_v1",
|
||||
Phases = {
|
||||
{
|
||||
Name = "Phase06_DS_Equatorial_Stations_1.bc",
|
||||
TimeRange = { Start = "2019-JAN-27 10:36:24.185", End = "2019-JAN-27 15:20:28.185" }
|
||||
},
|
||||
{
|
||||
Name = "Phase06_DS_Equatorial_Stations_2.bc",
|
||||
TimeRange = { Start = "2019-FEB-03 10:35:30.185", End = "2019-FEB-03 15:21:22.185" }
|
||||
},
|
||||
{
|
||||
Name = "Phase06_DS_Equatorial_Stations_3.bc",
|
||||
TimeRange = { Start = "2019-FEB-10 10:51:50.185", End = "2019-FEB-10 15:51:42.185" }
|
||||
},
|
||||
{
|
||||
Name = "Phase06_DS_Equatorial_Stations_4.bc",
|
||||
TimeRange = { Start = "2019-FEB-17 10:29:11.186", End = "2019-FEB-17 15:29:03.186" }
|
||||
},
|
||||
{
|
||||
Name = "Phase06_DS_Equatorial_Stations_5.bc",
|
||||
TimeRange = { Start = "2019-FEB-24 10:08:28.186", End = "2019-FEB-24 15:08:20.185" }
|
||||
},
|
||||
{
|
||||
Name = "Phase06_DS_Equatorial_Stations_6.bc",
|
||||
TimeRange = { Start = "2019-MAR-03 09:52:58.186", End = "2019-MAR-03 14:42:26.186" }
|
||||
},
|
||||
{
|
||||
Name = "Phase06_DS_Equatorial_Stations_7.bc",
|
||||
TimeRange = { Start = "2019-MAR-10 09:57:47.186", End = "2019-MAR-10 14:36:33.186" }
|
||||
}
|
||||
}
|
||||
},
|
||||
{
|
||||
Name = "PlumeSearch_v1",
|
||||
Phases = {
|
||||
{
|
||||
Name = "Phase06_DS_Plume_Search_1.bc",
|
||||
TimeRange = { Start = "2019-JAN-28 10:34:36.185", End = "2019-JAN-28 15:22:16.185" }
|
||||
},
|
||||
{
|
||||
Name = "Phase06_DS_Plume_Search_2.bc",
|
||||
TimeRange = { Start = "2019-FEB-18 10:29:11.186", End = "2019-FEB-18 15:29:03.186" }
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
{
|
||||
Name = "07_OrbitalB",
|
||||
Phases = {
|
||||
{
|
||||
Name = "CandidateSampleSite_v1",
|
||||
Phases = {
|
||||
{
|
||||
Name = "Phase07_OB_CSS_Mapping_1.bc",
|
||||
TimeRange = { Start = "2019-APR-08 10:35:27.186", End = "2019-APR-08 15:22:06.186" }
|
||||
},
|
||||
{
|
||||
Name = "Phase07_OB_CSS_Mapping_2.bc",
|
||||
TimeRange = { Start = "2019-APR-08 16:16:06.186", End = "2019-APR-11 10:38:58.186" }
|
||||
},
|
||||
{
|
||||
Name = "Phase07_OB_CSS_Mapping_3.bc",
|
||||
TimeRange = { Start = "2019-APR-22 17:51:23.186", End = "2019-APR-29 19:41:03.186" }
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
{
|
||||
Name = "08_Recon",
|
||||
Phases = {
|
||||
{
|
||||
Name = "225m_Sortie_v2",
|
||||
Phases = {
|
||||
{
|
||||
Name = "Recon_225mSortie_Case02_0Latitude.bc",
|
||||
TimeRange = { Start = "2019-MAY-25 03:50:31.195", End = "2019-MAY-25 04:32:17.227" }
|
||||
},
|
||||
{
|
||||
Name = "Recon_225mSortie_Case05_20negLatitude.bc",
|
||||
TimeRange = { Start = "2019-MAY-25 03:50:48.216", End = "2019-MAY-25 04:37:10.209" }
|
||||
},
|
||||
{
|
||||
Name = "Recon_225mSortie_Case08_40negLatitude.bc",
|
||||
TimeRange = { Start = "2019-MAY-25 04:02:43.176", End = "2019-MAY-25 04:54:41.179" }
|
||||
},
|
||||
{
|
||||
Name = "Recon_225mSortie_Case11_60negLatitude.bc",
|
||||
TimeRange = { Start = "2019-MAY-25 04:21:46.161", End = "2019-MAY-25 05:18:44.232" }
|
||||
}
|
||||
}
|
||||
},
|
||||
{
|
||||
Name = "525m_Sortie_v2",
|
||||
Phases = {
|
||||
{
|
||||
Name = "Recon_525mSortie_Case02_0Latitude.bc",
|
||||
TimeRange = { Start = "2019-MAY-25 04:06:39.220", End = "2019-MAY-25 04:44:17.198" }
|
||||
},
|
||||
{
|
||||
Name = "Recon_525mSortie_Case05_20negLatitude.bc",
|
||||
TimeRange = { Start = "2019-MAY-25 04:11:39.201", End = "2019-MAY-25 04:49:37.224" }
|
||||
},
|
||||
{
|
||||
Name = "Recon_525mSortie_Case05_NominalProfile.bc",
|
||||
TimeRange = { Start = "2019-MAY-25 03:01:50.184", End = "2019-MAY-25 06:38:50.232" }
|
||||
},
|
||||
{
|
||||
Name = "Recon_525mSortie_Case08_NominalProfile.bc",
|
||||
TimeRange = { Start = "2019-MAY-25 03:01:50.184", End = "2019-MAY-25 06:38:50.232" }
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
-- End of [3]
|
||||
}},
|
||||
|
||||
{ Name = "Backup Time", TimeRange = { Start = "2020 JAN 01 00:00:00", End = "2021 JAN 01 00:00:00" } },
|
||||
{ Name = "Return Cruise", TimeRange = { Start = "2021 JAN 01 00:00:00", End = "2023 SEP 20 00:00:00" } },
|
||||
|
||||
}
|
||||
},
|
||||
{
|
||||
Name = "Backup Time",
|
||||
TimeRange = { Start = "2020 JAN 01 00:00:00", End = "2021 JAN 01 00:00:00" }
|
||||
},
|
||||
{
|
||||
Name = "Return Cruise",
|
||||
TimeRange = { Start = "2021 JAN 01 00:00:00", End = "2023 SEP 20 00:00:00"}
|
||||
},
|
||||
-- Not too interesting in terms of space visualization --> out commented
|
||||
-- { Name = "Sample Analysis", TimeRange = { Start = "2023 JAN 01 00:00:00", End = "2025 JUN 01 00:00:00" } },
|
||||
-- End of [1]
|
||||
}}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -27,7 +27,7 @@ return {
|
||||
},
|
||||
Transform = {
|
||||
Translation = {
|
||||
Type = "SpiceEphemeris",
|
||||
Type = "SpiceTranslation",
|
||||
Body = "OSIRIS-REX",
|
||||
Observer = "SUN",
|
||||
},
|
||||
@@ -61,7 +61,7 @@ return {
|
||||
},
|
||||
Transform = {
|
||||
Translation = {
|
||||
Type = "StaticEphemeris",
|
||||
Type = "StaticTranslation",
|
||||
Position = {-0.2476, 0.2710, 0.3364},
|
||||
},
|
||||
Rotation = {
|
||||
@@ -94,7 +94,7 @@ return {
|
||||
},
|
||||
Transform = {
|
||||
Translation = {
|
||||
Type = "StaticEphemeris",
|
||||
Type = "StaticTranslation",
|
||||
Position = {0, 0.3371, 0.2712},
|
||||
},
|
||||
Rotation = {
|
||||
|
||||
@@ -1,6 +1,7 @@
|
||||
return {
|
||||
FileRequest = {
|
||||
{ Identifier = "charon_textures", Destination = "textures", Version = 1 },
|
||||
{ Identifier = "pluto_textures", Destination = "textures", Version = 4 }
|
||||
{ Identifier = "pluto_textures", Destination = "textures", Version = 4 },
|
||||
{ Identifier = "pluto_spice", Destination = "${SPICE}", Version = 1 }
|
||||
}
|
||||
}
|
||||
@@ -5,7 +5,7 @@ return {
|
||||
Parent = "SolarSystemBarycenter",
|
||||
Transform = {
|
||||
Translation = {
|
||||
Type = "SpiceEphemeris",
|
||||
Type = "SpiceTranslation",
|
||||
Body = "CHURYUMOV-GERASIMENKO",
|
||||
Observer = "SUN",
|
||||
},
|
||||
|
||||
@@ -62,7 +62,7 @@ return {
|
||||
Parent = "SolarSystemBarycenter",
|
||||
Transform = {
|
||||
Translation = {
|
||||
Type = "SpiceEphemeris",
|
||||
Type = "SpiceTranslation",
|
||||
Body = "ROSETTA",
|
||||
Observer = "SUN",
|
||||
Kernels = RosettaKernels
|
||||
@@ -273,7 +273,7 @@ return {
|
||||
-- translated
|
||||
Transform = {
|
||||
Translation = {
|
||||
Type = "SpiceEphemeris",
|
||||
Type = "SpiceTranslation",
|
||||
Body = "PHILAE",
|
||||
Observer = "CHURYUMOV-GERASIMENKO",
|
||||
Kernels = RosettaKernels
|
||||
|
||||
@@ -30,7 +30,7 @@ return {
|
||||
},
|
||||
Transform = {
|
||||
Translation = {
|
||||
Type = "SpiceEphemeris",
|
||||
Type = "SpiceTranslation",
|
||||
Body = "SATURN BARYCENTER",
|
||||
Observer = "SUN",
|
||||
Kernels = "${OPENSPACE_DATA}/spice/de430_1850-2150.bsp"
|
||||
|
||||
@@ -30,7 +30,7 @@ return {
|
||||
},
|
||||
Transform = {
|
||||
Translation = {
|
||||
Type = "SpiceEphemeris",
|
||||
Type = "SpiceTranslation",
|
||||
Body = "URANUS BARYCENTER",
|
||||
Observer = "SUN",
|
||||
Kernels = "${OPENSPACE_DATA}/spice/de430_1850-2150.bsp"
|
||||
|
||||
Vendored
+6
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
@@ -0,0 +1,185 @@
|
||||
/* Documentation */
|
||||
|
||||
.documentation-name, .documentation-name:hover, .documentation-name:focus {
|
||||
text-decoration: none;
|
||||
color: #333;
|
||||
outline: none;
|
||||
}
|
||||
|
||||
.documentation-item {
|
||||
background-color: #f4f4f4;
|
||||
border-left: 2px solid #888;
|
||||
padding-left: 10px;
|
||||
padding-top: 5px;
|
||||
padding-right: 5px;
|
||||
margin-bottom: 5px;
|
||||
}
|
||||
|
||||
.documentation-item .documentation-item {
|
||||
border-left: 2px solid #f00;
|
||||
background-color: #fff;
|
||||
}
|
||||
|
||||
.documentation-item .documentation-item .documentation-item {
|
||||
border-left: 2px solid #080;
|
||||
background-color: #f4f4f4;
|
||||
}
|
||||
|
||||
.documentation-item .documentation-item .documentation-item .documentation-item {
|
||||
border-left: 2px solid #00f;
|
||||
background-color: #fff;
|
||||
}
|
||||
|
||||
.documentation-type {
|
||||
color: #888;
|
||||
font-size: 0.8em;
|
||||
font-style: italic;
|
||||
}
|
||||
|
||||
.documentation-key {
|
||||
color: #333;
|
||||
font-weight: bold;
|
||||
}
|
||||
|
||||
.documentation-description {
|
||||
font-size: 0.9em;
|
||||
}
|
||||
|
||||
.documentation-container {
|
||||
font-size: 1.2em;
|
||||
}
|
||||
|
||||
.documentation-small {
|
||||
font-size: 0.8em;
|
||||
}
|
||||
|
||||
|
||||
/*!
|
||||
* Start Bootstrap - Simple Sidebar (http://startbootstrap.com/)
|
||||
* Copyright 2013-2016 Start Bootstrap
|
||||
* Licensed under MIT (https://github.com/BlackrockDigital/startbootstrap/blob/gh-pages/LICENSE)
|
||||
*/
|
||||
|
||||
body {
|
||||
overflow-x: hidden;
|
||||
}
|
||||
|
||||
/* Toggle Styles */
|
||||
|
||||
#wrapper {
|
||||
padding-left: 0;
|
||||
-webkit-transition: all 0.5s ease;
|
||||
-moz-transition: all 0.5s ease;
|
||||
-o-transition: all 0.5s ease;
|
||||
transition: all 0.5s ease;
|
||||
}
|
||||
|
||||
#wrapper.toggled {
|
||||
padding-left: 280px;
|
||||
}
|
||||
|
||||
#sidebar-wrapper {
|
||||
z-index: 1000;
|
||||
position: fixed;
|
||||
left: 280px;
|
||||
width: 0;
|
||||
height: 100%;
|
||||
margin-left: -280px;
|
||||
overflow-y: auto;
|
||||
background: #000;
|
||||
-webkit-transition: all 0.5s ease;
|
||||
-moz-transition: all 0.5s ease;
|
||||
-o-transition: all 0.5s ease;
|
||||
transition: all 0.5s ease;
|
||||
}
|
||||
|
||||
#wrapper.toggled #sidebar-wrapper {
|
||||
width: 280px;
|
||||
}
|
||||
|
||||
#page-content-wrapper {
|
||||
width: 100%;
|
||||
position: absolute;
|
||||
padding: 15px;
|
||||
}
|
||||
|
||||
#wrapper.toggled #page-content-wrapper {
|
||||
position: absolute;
|
||||
margin-right: -280px;
|
||||
}
|
||||
|
||||
/* Sidebar Styles */
|
||||
|
||||
.sidebar-nav {
|
||||
position: absolute;
|
||||
top: 0;
|
||||
width: 280px;
|
||||
margin: 0;
|
||||
padding: 0;
|
||||
list-style: none;
|
||||
}
|
||||
|
||||
.sidebar-nav li {
|
||||
text-indent: 20px;
|
||||
line-height: 40px;
|
||||
}
|
||||
|
||||
.sidebar-nav li a {
|
||||
display: block;
|
||||
text-decoration: none;
|
||||
color: #999999;
|
||||
}
|
||||
|
||||
.sidebar-nav li a:hover {
|
||||
text-decoration: none;
|
||||
color: #fff;
|
||||
background: rgba(255,255,255,0.2);
|
||||
}
|
||||
|
||||
.sidebar-nav li a:active,
|
||||
.sidebar-nav li a:focus {
|
||||
text-decoration: none;
|
||||
}
|
||||
|
||||
.sidebar-nav > .sidebar-brand {
|
||||
height: 65px;
|
||||
font-size: 18px;
|
||||
line-height: 60px;
|
||||
}
|
||||
|
||||
.sidebar-nav > .sidebar-brand a {
|
||||
color: #999999;
|
||||
}
|
||||
|
||||
.sidebar-nav > .sidebar-brand a:hover {
|
||||
color: #fff;
|
||||
background: none;
|
||||
}
|
||||
|
||||
@media(min-width:768px) {
|
||||
#wrapper {
|
||||
padding-left: 280px;
|
||||
}
|
||||
|
||||
#wrapper.toggled {
|
||||
padding-left: 0;
|
||||
}
|
||||
|
||||
#sidebar-wrapper {
|
||||
width: 280px;
|
||||
}
|
||||
|
||||
#wrapper.toggled #sidebar-wrapper {
|
||||
width: 0;
|
||||
}
|
||||
|
||||
#page-content-wrapper {
|
||||
padding: 20px;
|
||||
position: relative;
|
||||
}
|
||||
|
||||
#wrapper.toggled #page-content-wrapper {
|
||||
position: relative;
|
||||
margin-right: 0;
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,28 @@
|
||||
{{#each entries}}
|
||||
<div class="documentation-item">
|
||||
<div class="row">
|
||||
<div class="col-lg-12">
|
||||
<p>
|
||||
<a href="#{{urlify key}}" name="{{urlify key}}">
|
||||
<span class="documentation-type">{{type}}</span>
|
||||
<span class="documentation-key">{{key}}</span>
|
||||
{{#if optional}}
|
||||
<span class="documentation-type">(Optional)</span>
|
||||
{{/if}}
|
||||
</a>
|
||||
</p>
|
||||
<p class="documentation-description">{{description}}</p>
|
||||
{{#with restrictions}}
|
||||
{{>documentation}}
|
||||
{{/with}}
|
||||
{{#if reference}}
|
||||
{{#if reference.found}}
|
||||
<p class="documentation-description">An object of type '<a href="#{{reference.identifier}}">{{reference.name}}</a>'</p>
|
||||
{{else}}
|
||||
<p class="documentation-description">Missing reference</p>
|
||||
{{/if}}
|
||||
{{/if}}
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
{{/each}}
|
||||
@@ -0,0 +1,32 @@
|
||||
<div id="wrapper">
|
||||
<div id="sidebar-wrapper">
|
||||
<ul class="sidebar-nav">
|
||||
<li class="sidebar-brand">
|
||||
<a href="#">
|
||||
OpenSpace Documentation
|
||||
</a>
|
||||
</li>
|
||||
{{#each documentation}}
|
||||
<li>
|
||||
<a href="#{{id}}">{{name}}</a>
|
||||
</li>
|
||||
{{/each}}
|
||||
</ul>
|
||||
</div>
|
||||
|
||||
<div id="page-content-wrapper">
|
||||
<div class="container-fluid documentation-container">
|
||||
<h1>OpenSpace Documentation</h1>
|
||||
<p>Version: {{version.[0]}}.{{version.[1]}}.{{version.[2]}}</p>
|
||||
|
||||
{{#each documentation}}
|
||||
<div class="row">
|
||||
<div class="col-lg-12">
|
||||
<h2><a class="documentation-name" href="#{{id}}" name="{{id}}">{{name}}</a></h2>
|
||||
{{> documentation}}
|
||||
</div>
|
||||
</div>
|
||||
{{/each}}
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
@@ -0,0 +1,28 @@
|
||||
window.onload = function () {
|
||||
var mainTemplateElement = document.getElementById('mainTemplate');
|
||||
var mainTemplate = Handlebars.compile(mainTemplateElement.innerHTML);
|
||||
|
||||
var documentationTemplateElement = document.getElementById('documentationTemplate');
|
||||
Handlebars.registerPartial('documentation', documentationTemplateElement.innerHTML);
|
||||
|
||||
Handlebars.registerHelper('urlify', function(options, context) {
|
||||
var data = context.data;
|
||||
var identifier = options.replace(" ", "-").toLowerCase();
|
||||
|
||||
while (data = data._parent) {
|
||||
if (data.key !== undefined) {
|
||||
identifier = data.key + "-" + identifier;
|
||||
}
|
||||
}
|
||||
|
||||
return identifier;
|
||||
});
|
||||
|
||||
var data = {
|
||||
documentation: documentation,
|
||||
version: version
|
||||
}
|
||||
|
||||
var contents = mainTemplate(data);
|
||||
document.body.innerHTML = contents;
|
||||
}
|
||||
@@ -0,0 +1,13 @@
|
||||
{{#each classes}}
|
||||
<div class="documentation-item">
|
||||
<div class="row">
|
||||
<div class="col-lg-12">
|
||||
<p>
|
||||
<a href="#{{urlify this}}" name="{{urlify this}}">
|
||||
<span class="documentation-key">{{this}}</span>
|
||||
</a>
|
||||
</p>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
{{/each}}
|
||||
@@ -0,0 +1,35 @@
|
||||
<div id="wrapper">
|
||||
<div id="sidebar-wrapper">
|
||||
<ul class="sidebar-nav">
|
||||
<li class="sidebar-brand">
|
||||
<a href="#">
|
||||
OpenSpace Factories
|
||||
</a>
|
||||
</li>
|
||||
{{#each factories}}
|
||||
<li>
|
||||
<a href="#{{name}}">{{name}}</a>
|
||||
</li>
|
||||
{{/each}}
|
||||
</ul>
|
||||
</div>
|
||||
|
||||
<div id="page-content-wrapper">
|
||||
<div class="container-fluid documentation-container">
|
||||
<h1>OpenSpace Factories</h1>
|
||||
<p>Version: {{version.[0]}}.{{version.[1]}}.{{version.[2]}}</p>
|
||||
{{#each factories}}
|
||||
<div class="row">
|
||||
<div class="col-lg-12">
|
||||
<h2>
|
||||
<a class="documentation-name" href="#{{name}}" name="{{name}}">
|
||||
{{name}}
|
||||
</a>
|
||||
</h2>
|
||||
{{> factory}}
|
||||
</div>
|
||||
</div>
|
||||
{{/each}}
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
@@ -0,0 +1,28 @@
|
||||
window.onload = function () {
|
||||
var mainTemplateElement = document.getElementById('mainTemplate');
|
||||
var mainTemplate = Handlebars.compile(mainTemplateElement.innerHTML);
|
||||
|
||||
var factoryTemplateElement = document.getElementById('factoryTemplate');
|
||||
Handlebars.registerPartial('factory', factoryTemplateElement.innerHTML);
|
||||
|
||||
Handlebars.registerHelper('urlify', function(options, context) {
|
||||
var data = context.data;
|
||||
var identifier = options.replace(" ", "-").toLowerCase();
|
||||
|
||||
while (data = data._parent) {
|
||||
if (data.key !== undefined) {
|
||||
identifier = data.key + "-" + identifier;
|
||||
}
|
||||
}
|
||||
|
||||
return identifier;
|
||||
});
|
||||
|
||||
var data = {
|
||||
factories: factories,
|
||||
version: version
|
||||
}
|
||||
|
||||
var contents = mainTemplate(data);
|
||||
document.body.innerHTML = contents;
|
||||
}
|
||||
@@ -0,0 +1,12 @@
|
||||
<div class="documentation-item">
|
||||
<div class="row">
|
||||
<div class="col-lg-12">
|
||||
<p>
|
||||
<a href="#{{urlify key}}" name="{{urlify key}}">
|
||||
<span class="documentation-key">{{key}}</span>
|
||||
</a>
|
||||
<p>{{script}}</p>
|
||||
</p>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
@@ -0,0 +1,10 @@
|
||||
<div id="page-content-wrapper">
|
||||
<div class="container-fluid documentation-container">
|
||||
<h1>OpenSpace Keybindings</h1>
|
||||
<p>Version: {{version.[0]}}.{{version.[1]}}.{{version.[2]}}</p>
|
||||
<p>Generated: {{generationTime}}</p>
|
||||
{{#each keybindings}}
|
||||
{{> keybinding}}
|
||||
{{/each}}
|
||||
</div>
|
||||
</div>
|
||||
@@ -0,0 +1,29 @@
|
||||
window.onload = function () {
|
||||
var mainTemplateElement = document.getElementById('mainTemplate');
|
||||
var mainTemplate = Handlebars.compile(mainTemplateElement.innerHTML);
|
||||
|
||||
var keybindingTemplateElement = document.getElementById('keybindingTemplate');
|
||||
Handlebars.registerPartial('keybinding', keybindingTemplateElement.innerHTML);
|
||||
|
||||
Handlebars.registerHelper('urlify', function(options, context) {
|
||||
var data = context.data;
|
||||
var identifier = options.replace(" ", "-").toLowerCase();
|
||||
|
||||
while (data = data._parent) {
|
||||
if (data.key !== undefined) {
|
||||
identifier = data.key + "-" + identifier;
|
||||
}
|
||||
}
|
||||
|
||||
return identifier;
|
||||
});
|
||||
|
||||
var data = {
|
||||
keybindings: keybindings,
|
||||
version: version,
|
||||
generationTime: generationTime
|
||||
}
|
||||
|
||||
var contents = mainTemplate(data);
|
||||
document.body.innerHTML = contents;
|
||||
}
|
||||
@@ -0,0 +1,128 @@
|
||||
var levels = ['debug', 'info', 'warning', 'error', 'fatal'];
|
||||
var filterLevel = 0;
|
||||
|
||||
function insertAfter(newNode, referenceNode) {
|
||||
referenceNode.parentNode.insertBefore(newNode, referenceNode.nextSibling);
|
||||
}
|
||||
|
||||
function remove(node) {
|
||||
node.parentNode.removeChild(node);
|
||||
}
|
||||
|
||||
function scrollTo(selector) {
|
||||
var element = document.querySelector(selector);
|
||||
if (element && element.scrollIntoView) {
|
||||
element.scrollIntoView();
|
||||
}
|
||||
}
|
||||
|
||||
function getLevel(element) {
|
||||
return levels.findIndex(function (levelString, level) {
|
||||
var className = 'log-level-' + levelString;
|
||||
if (element.classList.contains(className)) {
|
||||
return true;
|
||||
}
|
||||
});
|
||||
}
|
||||
|
||||
function pluralize(nItems, singular, plural) {
|
||||
if (nItems === 1) {
|
||||
return [1, singular].join(' ');
|
||||
}
|
||||
plural = plural || [singular, 's'].join('');
|
||||
return [nItems.toString(), plural].join(' ');
|
||||
}
|
||||
|
||||
function scrollLink(content, selector) {
|
||||
var html = '<a onclick="scrollTo(\'' + selector + '\')">' + content + "</a>";
|
||||
return html;
|
||||
}
|
||||
|
||||
function getSummary() {
|
||||
var nFatals = document.getElementsByClassName('log-level-fatal').length;
|
||||
var nErrors = document.getElementsByClassName('log-level-error').length;
|
||||
var nWarnings = document.getElementsByClassName('log-level-warning').length;
|
||||
|
||||
if (nFatals > 0) {
|
||||
return '<span class="summary summary-fatal">' + scrollLink(pluralize(nFatals, 'fatal error'), '.log-level-fatal') +
|
||||
', ' + scrollLink(pluralize(nErrors, 'other error'), '.log-level-error') + ' and ' + scrollLink(pluralize(nWarnings, 'warning'), '.log-level-warning') + '</span>';
|
||||
} else if (nErrors > 0) {
|
||||
return '<span class="summary summary-error">' + scrollLink(pluralize(nErrors, 'error'), '.log-level-error') + ' and ' +
|
||||
scrollLink(pluralize(nWarnings, 'warning'), '.log-level-warning') + '</span>';
|
||||
} else if (nWarnings > 0) {
|
||||
return '<span class="summary summary-warning">' + scrollLink(pluralize(nWarnings, 'warning'), '.log-level-warning') + '</span>';
|
||||
} else {
|
||||
return '<span class="summary summary-ok">No errors or warnings</span>';
|
||||
}
|
||||
}
|
||||
|
||||
function updateFilter() {
|
||||
var table = document.getElementsByTagName('table')[0];
|
||||
table.classList.remove('hidden');
|
||||
|
||||
var noMessages = document.getElementById('no-messages');
|
||||
if (noMessages) {
|
||||
remove(noMessages);
|
||||
}
|
||||
|
||||
var rows = document.getElementsByTagName('tr');
|
||||
var nShown = 0;
|
||||
[].forEach.call(rows, function (row) {
|
||||
if (row.classList.length === 0) {
|
||||
return;
|
||||
}
|
||||
var rowLevel = getLevel(row);
|
||||
if (rowLevel >= filterLevel) {
|
||||
row.classList.remove('hidden');
|
||||
nShown++;
|
||||
} else {
|
||||
row.classList.add('hidden');
|
||||
}
|
||||
});
|
||||
if (nShown === 0) {
|
||||
var select = document.getElementsByTagName('select')[0];
|
||||
var p = document.createElement("p");
|
||||
p.id = "no-messages";
|
||||
p.innerHTML = "There are no log messages with the level '" + levels[filterLevel] + "' or higher.";
|
||||
insertAfter(p, select);
|
||||
table.classList.add('hidden');
|
||||
}
|
||||
}
|
||||
|
||||
window.onload = function () {
|
||||
var header = document.getElementsByTagName('h1')[0];
|
||||
header.innerHTML = "OpenSpace Log";
|
||||
|
||||
var summary = document.createElement('p');
|
||||
summary.innerHTML = getSummary();
|
||||
|
||||
var select = document.createElement('select');
|
||||
select.id = 'filter-level-selector';
|
||||
|
||||
var selectLabel = document.createElement('label');
|
||||
selectLabel.for = 'filter-level-selector';
|
||||
selectLabel.innerHTML = "Lowest log level to show: ";
|
||||
|
||||
levels.forEach(function (level) {
|
||||
var option = document.createElement('option');
|
||||
option.value = level;
|
||||
option.innerHTML = level;
|
||||
select.appendChild(option);
|
||||
});
|
||||
|
||||
insertAfter(summary, header);
|
||||
insertAfter(selectLabel, summary);
|
||||
insertAfter(select, selectLabel);
|
||||
|
||||
var preselectedIndex = levels.indexOf(window.location.hash.slice(1));
|
||||
if (preselectedIndex >= 0) {
|
||||
filterLevel = select.selectedIndex = preselectedIndex;
|
||||
updateFilter();
|
||||
}
|
||||
|
||||
select.onchange = function (evt) {
|
||||
filterLevel = select.selectedIndex;
|
||||
updateFilter();
|
||||
window.location.hash = '#' + select.options[select.selectedIndex].value;
|
||||
};
|
||||
}
|
||||
@@ -0,0 +1,93 @@
|
||||
table {
|
||||
width: 100%;
|
||||
}
|
||||
|
||||
td, th {
|
||||
padding: 4px 15px 3px;
|
||||
}
|
||||
|
||||
.log-date {
|
||||
width: 8em;
|
||||
}
|
||||
|
||||
h1 {
|
||||
padding-left: 15px;
|
||||
}
|
||||
|
||||
.hidden {
|
||||
display: none;
|
||||
}
|
||||
|
||||
p, label {
|
||||
margin-left: 15px;
|
||||
margin-bottom: 15px;
|
||||
}
|
||||
|
||||
label {
|
||||
margin-right: 0.5em;
|
||||
}
|
||||
|
||||
.log-level-debug {
|
||||
background-color: #bbdda9;
|
||||
border-bottom: 1px solid #7bc142;
|
||||
color: #265127;
|
||||
}
|
||||
.log-level-debug td:first-child {
|
||||
border-left: 10px solid #7bc142;
|
||||
}
|
||||
|
||||
thead, .log-level-info {
|
||||
color: #333333;
|
||||
background-color: #ffffff;
|
||||
border-bottom: 1px solid #eaeaea;
|
||||
}
|
||||
.log-level-info td:first-child {
|
||||
border-left: 10px solid #eaeaea;
|
||||
}
|
||||
|
||||
thead th:first-child {
|
||||
border-left 10px solid #fff;
|
||||
}
|
||||
|
||||
.log-level-warning {
|
||||
color: #3e3115;
|
||||
background-color: #fef8c3;
|
||||
border-bottom: 1px solid #efcd3f;
|
||||
}
|
||||
.log-level-warning td:first-child {
|
||||
border-left: 10px solid #efcd3f;
|
||||
}
|
||||
|
||||
.log-level-error {
|
||||
color: #4c1315;
|
||||
background-color: #fcdcdc;
|
||||
border-bottom: 1px solid #d66767;
|
||||
}
|
||||
.log-level-error td:first-child {
|
||||
border-left: 10px solid #d66767;
|
||||
}
|
||||
|
||||
.log-level-fatal {
|
||||
color: #220f21;
|
||||
background-color: #ff7dc1;
|
||||
border-bottom: 1px solid #b84398;
|
||||
}
|
||||
.log-level-fatal td:first-child {
|
||||
border-left: 10px solid #b84398;
|
||||
}
|
||||
|
||||
.summary {
|
||||
padding: 5px;
|
||||
}
|
||||
.summary-warning {
|
||||
background-color: #fef8c3;
|
||||
}
|
||||
.summary-error {
|
||||
background-color: #fcdcdc;
|
||||
}
|
||||
.summary-fatal {
|
||||
background-color: #ff7dc1;
|
||||
}
|
||||
.summary-ok {
|
||||
background-color: #bbdda9;
|
||||
}
|
||||
@@ -0,0 +1,35 @@
|
||||
<div id="wrapper">
|
||||
<div id="sidebar-wrapper">
|
||||
<ul class="sidebar-nav">
|
||||
<li class="sidebar-brand">
|
||||
<a href="#">
|
||||
OpenSpace Lua Scripting
|
||||
</a>
|
||||
</li>
|
||||
{{#each scripting}}
|
||||
<li>
|
||||
<a href="#openspace{{#if library}}.{{library}}{{/if}}">openspace{{#if library}}.{{library}}{{/if}}</a>
|
||||
</li>
|
||||
{{/each}}
|
||||
</ul>
|
||||
</div>
|
||||
|
||||
<div id="page-content-wrapper">
|
||||
<div class="container-fluid documentation-container">
|
||||
<h1>OpenSpace Lua Scripting</h1>
|
||||
<p>Version: {{version.[0]}}.{{version.[1]}}.{{version.[2]}}</p>
|
||||
{{#each scripting}}
|
||||
<div class="row">
|
||||
<div class="col-lg-12">
|
||||
<h2>
|
||||
<a class="documentation-name" href="#openspace{{#if library}}.{{library}}{{/if}}" name="openspace{{#if library}}.{{library}}{{/if}}">
|
||||
openspace{{#if library}}.{{library}}{{/if}}
|
||||
</a>
|
||||
</h2>
|
||||
{{> scripting}}
|
||||
</div>
|
||||
</div>
|
||||
{{/each}}
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
@@ -0,0 +1,28 @@
|
||||
window.onload = function () {
|
||||
var mainTemplateElement = document.getElementById('mainTemplate');
|
||||
var mainTemplate = Handlebars.compile(mainTemplateElement.innerHTML);
|
||||
|
||||
var scriptingTemplateElement = document.getElementById('scriptingTemplate');
|
||||
Handlebars.registerPartial('scripting', scriptingTemplateElement.innerHTML);
|
||||
|
||||
Handlebars.registerHelper('urlify', function(options, context) {
|
||||
var data = context.data;
|
||||
var identifier = options.replace(" ", "-").toLowerCase();
|
||||
|
||||
while (data = data._parent) {
|
||||
if (data.key !== undefined) {
|
||||
identifier = data.key + "-" + identifier;
|
||||
}
|
||||
}
|
||||
|
||||
return identifier;
|
||||
});
|
||||
|
||||
var data = {
|
||||
scripting: scripting,
|
||||
version: version
|
||||
}
|
||||
|
||||
var contents = mainTemplate(data);
|
||||
document.body.innerHTML = contents;
|
||||
}
|
||||
@@ -0,0 +1,17 @@
|
||||
{{#each functions}}
|
||||
<div class="documentation-item">
|
||||
<div class="row">
|
||||
<div class="col-lg-12">
|
||||
<p>
|
||||
<a href="#{{urlify name}}" name="{{urlify name}}">
|
||||
|
||||
<span class="documentation-key">{{name}}(</span>
|
||||
<span class="documentation-type">{{arguments}}</span>
|
||||
<span class="documentation-key">)</span>
|
||||
</a>
|
||||
</p>
|
||||
<p class="documentation-description">{{help}}</p>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
{{/each}}
|
||||
@@ -0,0 +1,41 @@
|
||||
<div id="wrapper">
|
||||
<div id="sidebar-wrapper">
|
||||
<ul class="sidebar-nav">
|
||||
<li class="sidebar-brand">
|
||||
<a href="#">
|
||||
OpenSpace Scene Properties
|
||||
</a>
|
||||
</li>
|
||||
{{#each propertyOwners}}
|
||||
<li>
|
||||
<a href="#{{name}}">{{name}}</a>
|
||||
</li>
|
||||
{{/each}}
|
||||
</ul>
|
||||
</div>
|
||||
|
||||
<div id="page-content-wrapper">
|
||||
<div class="container-fluid documentation-container">
|
||||
<h1>OpenSpace Scene Properties</h1>
|
||||
<p>Version: {{version.[0]}}.{{version.[1]}}.{{version.[2]}}</p>
|
||||
<p>Scene name: {{sceneFilename}}</p>
|
||||
<p>Generated: {{generationTime}}</p>
|
||||
|
||||
{{#each propertyOwners}}
|
||||
<div class="row">
|
||||
<div class="col-lg-12">
|
||||
<h2><a class="documentation-name" href="#{{name}}" name="{{name}}">{{name}}</a></h2>
|
||||
{{#each properties}}
|
||||
{{> property}}
|
||||
{{/each}}
|
||||
{{#each propertyOwners}}
|
||||
{{> propertyOwner}}
|
||||
{{else}}
|
||||
<p>{{name}} has no property owners</p>
|
||||
{{/each}}
|
||||
</div>
|
||||
</div>
|
||||
{{/each}}
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
@@ -0,0 +1,15 @@
|
||||
<div class="documentation-item">
|
||||
<div class="row">
|
||||
<div class="col-lg-12" title="{{guiName}}">
|
||||
<p>
|
||||
<a href="#{{fullyQualifiedId}}" name="{{fullyQualifiedId}}">
|
||||
<span class="documentation-type">{{type}}</span>
|
||||
<span class="documentation-key">{{id}}</span>
|
||||
</a>
|
||||
</p>
|
||||
<p class="documentation-description">{{fullyQualifiedId}}
|
||||
<a class="documentation-small" onclick="copyTextToClipboard('{{fullyQualifiedId}}')">copy</a>
|
||||
</p>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
@@ -0,0 +1,18 @@
|
||||
<div class="documentation-item">
|
||||
<div class="row">
|
||||
<div class="col-lg-12">
|
||||
<p>
|
||||
<a href="#{{urlify name}}" name="{{urlify name}}">
|
||||
<span class="documentation-key">{{name}}</span>
|
||||
</a>
|
||||
</p>
|
||||
{{#each properties}}
|
||||
{{> property}}
|
||||
{{/each}}
|
||||
{{#each propertyOwners}}
|
||||
{{> propertyOwner}}
|
||||
{{/each}}
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
@@ -0,0 +1,58 @@
|
||||
function copyTextToClipboard(text) {
|
||||
var textArea = document.createElement("textarea");
|
||||
textArea.style.position = 'fixed';
|
||||
textArea.style.top = 0;
|
||||
textArea.style.left = 0;
|
||||
|
||||
textArea.style.width = '2em';
|
||||
textArea.style.height = '2em';
|
||||
|
||||
textArea.style.padding = 0;
|
||||
|
||||
textArea.style.border = 'none';
|
||||
textArea.style.outline = 'none';
|
||||
textArea.style.boxShadow = 'none';
|
||||
|
||||
textArea.style.background = 'transparent';
|
||||
textArea.value = text;
|
||||
|
||||
document.body.appendChild(textArea);
|
||||
|
||||
textArea.select();
|
||||
document.execCommand('copy');
|
||||
|
||||
document.body.removeChild(textArea);
|
||||
}
|
||||
|
||||
window.onload = function () {
|
||||
var mainTemplateElement = document.getElementById('mainTemplate');
|
||||
var mainTemplate = Handlebars.compile(mainTemplateElement.innerHTML);
|
||||
|
||||
var propertyOwnerTemplateElement = document.getElementById('propertyOwnerTemplate');
|
||||
Handlebars.registerPartial('propertyOwner', propertyOwnerTemplateElement.innerHTML);
|
||||
|
||||
var propertyTemplateElement = document.getElementById('propertyTemplate');
|
||||
Handlebars.registerPartial('property', propertyTemplateElement.innerHTML);
|
||||
|
||||
Handlebars.registerHelper('urlify', function(options, context) {
|
||||
var data = context.data;
|
||||
var identifier = options.replace(" ", "-").toLowerCase();
|
||||
|
||||
while (data = data._parent) {
|
||||
if (data.key !== undefined) {
|
||||
identifier = data.key + "-" + identifier;
|
||||
}
|
||||
}
|
||||
return identifier;
|
||||
});
|
||||
|
||||
var data = {
|
||||
propertyOwners: propertyOwners,
|
||||
version: version,
|
||||
sceneFilename: sceneFilename,
|
||||
generationTime: generationTime
|
||||
}
|
||||
|
||||
var contents = mainTemplate(data);
|
||||
document.body.innerHTML = contents;
|
||||
}
|
||||
Reference in New Issue
Block a user