mirror of
https://github.com/OpenSpace/OpenSpace.git
synced 2026-04-29 23:39:26 -05:00
indentation
This commit is contained in:
+11
-11
@@ -1,17 +1,17 @@
|
||||
local TexturesPath = asset.syncedResource({
|
||||
Name = "PREDSCI MAS Bastille Day Textures",
|
||||
Type = "HttpSynchronization",
|
||||
Identifier = "bastille_day_magnetogram",
|
||||
Version = 4
|
||||
})
|
||||
Name = "PREDSCI MAS Bastille Day Textures",
|
||||
Type = "HttpSynchronization",
|
||||
Identifier = "bastille_day_magnetogram",
|
||||
Version = 4
|
||||
})
|
||||
|
||||
asset.export("TexturesPath", TexturesPath)
|
||||
|
||||
asset.meta = {
|
||||
Name = "Predictive Science Inc. MAS Bastille Day Textures",
|
||||
Version = "1.0",
|
||||
Description = " Magnetograms of the sun ",
|
||||
Author = "Jonathan Grangien, Matthias Berg",
|
||||
URL = "https://dx.doi.org/10.3847/1538-4357/aab36d",
|
||||
License = ""
|
||||
Name = "Predictive Science Inc. MAS Bastille Day Textures",
|
||||
Version = "1.0",
|
||||
Description = " Magnetograms of the sun ",
|
||||
Author = "Jonathan Grangien, Matthias Berg",
|
||||
URL = "https://dx.doi.org/10.3847/1538-4357/aab36d",
|
||||
License = ""
|
||||
}
|
||||
|
||||
@@ -2,58 +2,58 @@ local assetHelper = asset.require("util/asset_helper")
|
||||
local sunTransforms = asset.require('scene/solarsystem/sun/transforms')
|
||||
|
||||
local densityDirectory = asset.syncedResource({
|
||||
Name = "Bastille Day MAS Density",
|
||||
Type = "HttpSynchronization",
|
||||
Identifier = "bastille_day_mas_density",
|
||||
Version = 1
|
||||
Name = "Bastille Day MAS Density",
|
||||
Type = "HttpSynchronization",
|
||||
Identifier = "bastille_day_mas_density",
|
||||
Version = 1
|
||||
})
|
||||
|
||||
local sunRadius = 6.957E8
|
||||
|
||||
local densityVolume = {
|
||||
Identifier = "MAS_MHD_density",
|
||||
Parent = sunTransforms.SunIAU.Identifier,
|
||||
Renderable = {
|
||||
Type = "RenderableTimeVaryingVolume",
|
||||
StepSize = 0.004,
|
||||
--Enabled = false,
|
||||
Opacity = 0.3,
|
||||
TransferFunction = asset.localResource("transferfunctions/mas_mhd_r_squared.txt"),
|
||||
SourceDirectory = densityDirectory,
|
||||
--LowerValueBound = 0,
|
||||
--UpperValueBound = 1,
|
||||
GridType = "Spherical",
|
||||
SecondsBefore = 24*60*60,
|
||||
SecondsAfter = 24*60*60,
|
||||
Dimensions = {100, 100, 128},
|
||||
InvertDataAtZ = true
|
||||
Identifier = "MAS_MHD_density",
|
||||
Parent = sunTransforms.SunIAU.Identifier,
|
||||
Renderable = {
|
||||
Type = "RenderableTimeVaryingVolume",
|
||||
StepSize = 0.004,
|
||||
--Enabled = false,
|
||||
Opacity = 0.3,
|
||||
TransferFunction = asset.localResource("transferfunctions/mas_mhd_r_squared.txt"),
|
||||
SourceDirectory = densityDirectory,
|
||||
--LowerValueBound = 0,
|
||||
--UpperValueBound = 1,
|
||||
GridType = "Spherical",
|
||||
SecondsBefore = 24*60*60,
|
||||
SecondsAfter = 24*60*60,
|
||||
Dimensions = {100, 100, 128},
|
||||
InvertDataAtZ = true
|
||||
},
|
||||
Transform = {
|
||||
Scale = {
|
||||
Type = "StaticScale",
|
||||
Scale = sunRadius
|
||||
},
|
||||
Transform = {
|
||||
Scale = {
|
||||
Type = "StaticScale",
|
||||
Scale = sunRadius
|
||||
},
|
||||
Rotation = {
|
||||
--Type = "StaticRotation", --LuaRotation
|
||||
Type = "FixedRotation",
|
||||
XAxis = {-1.0, 0.0, 0.0},
|
||||
YAxis = {0.0, 1.0, 0.0},
|
||||
ZAxis = {0.0, 0.0, -1.0}
|
||||
}
|
||||
},
|
||||
GUI = {
|
||||
Name = "MAS Density",
|
||||
Path = "/Solar System/Heliosphere"
|
||||
}
|
||||
Rotation = {
|
||||
--Type = "StaticRotation", --LuaRotation
|
||||
Type = "FixedRotation",
|
||||
XAxis = {-1.0, 0.0, 0.0},
|
||||
YAxis = {0.0, 1.0, 0.0},
|
||||
ZAxis = {0.0, 0.0, -1.0}
|
||||
}
|
||||
},
|
||||
GUI = {
|
||||
Name = "MAS Density",
|
||||
Path = "/Solar System/Heliosphere"
|
||||
}
|
||||
}
|
||||
|
||||
assetHelper.registerSceneGraphNodesAndExport(asset, { densityVolume })
|
||||
|
||||
asset.meta = {
|
||||
Name = "Predictive Science Inc. Volume Rendering Bastille Day",
|
||||
Version = "1.0",
|
||||
Description = " Volumetric rendering for the bastille day CME event ",
|
||||
Author = "CCMC, OpenSpace team",
|
||||
URL = "https://dx.doi.org/10.3847/1538-4357/aab36d",
|
||||
License = ""
|
||||
Name = "Predictive Science Inc. Volume Rendering Bastille Day",
|
||||
Version = "1.0",
|
||||
Description = " Volumetric rendering for the bastille day CME event ",
|
||||
Author = "CCMC, OpenSpace team",
|
||||
URL = "https://dx.doi.org/10.3847/1538-4357/aab36d",
|
||||
License = ""
|
||||
}
|
||||
@@ -1,83 +1,82 @@
|
||||
local assetHelper = asset.require('util/asset_helper')
|
||||
local heliosphereTransforms = asset.require('scene/solarsystem/sun/transforms_heliosphere')
|
||||
|
||||
|
||||
local transferFunctions = asset.localResource("transferfunctions")
|
||||
local masVelocityColorTable = transferFunctions .. "/velocity_fieldlines.txt"
|
||||
local masDensityColorTable = transferFunctions .. "/density_fieldlines.txt"
|
||||
|
||||
local fieldlinesDirectory = asset.syncedResource({
|
||||
Name = "Bastille Day MAS Fieldlines",
|
||||
Type = "HttpSynchronization",
|
||||
Identifier = "bastille_day_mas_fieldlines",
|
||||
Version = 2
|
||||
Name = "Bastille Day MAS Fieldlines",
|
||||
Type = "HttpSynchronization",
|
||||
Identifier = "bastille_day_mas_fieldlines",
|
||||
Version = 2
|
||||
})
|
||||
|
||||
local sunRadius = 6.957E8
|
||||
|
||||
-- Fieldlies from binaries
|
||||
local fieldlines = {
|
||||
Identifier = "MAS_MHD_Fieldlines",
|
||||
Parent = heliosphereTransforms.HNMReferenceFrame.Identifier,
|
||||
--wrong Parent = sunTransforms.SunIAU.Identifier,
|
||||
Renderable = {
|
||||
Type = "RenderableFieldlinesSequence",
|
||||
SourceFolder = fieldlinesDirectory,
|
||||
-- FlowEnabled = false,
|
||||
-- LineWidth = 1.0;
|
||||
AlphaBlendlingEnabled = false,
|
||||
InputFileType = "osfls",
|
||||
ColorTablePaths = {
|
||||
masDensityColorTable,
|
||||
masVelocityColorTable,
|
||||
},
|
||||
ColorTableMinMax = {
|
||||
{ 0, 1000000 },
|
||||
{ 100, 2000 }
|
||||
},
|
||||
LoadAtRuntime = true,
|
||||
ScaleToMeters = 1.0,
|
||||
SecondsBefore = 24*60*60,
|
||||
SecondsAfter = 24*60*60,
|
||||
SimulationModel = "mas",
|
||||
Color = {
|
||||
Uniform = {0, 0.725, 0.75, 1}
|
||||
}
|
||||
Identifier = "MAS_MHD_Fieldlines",
|
||||
Parent = heliosphereTransforms.HNMReferenceFrame.Identifier,
|
||||
--wrong Parent = sunTransforms.SunIAU.Identifier,
|
||||
Renderable = {
|
||||
Type = "RenderableFieldlinesSequence",
|
||||
SourceFolder = fieldlinesDirectory,
|
||||
-- FlowEnabled = false,
|
||||
-- LineWidth = 1.0;
|
||||
AlphaBlendlingEnabled = false,
|
||||
InputFileType = "osfls",
|
||||
ColorTablePaths = {
|
||||
masDensityColorTable,
|
||||
masVelocityColorTable,
|
||||
},
|
||||
GUI = {
|
||||
Path = "/Solar System/Heliosphere",
|
||||
Name = "MAS Fieldlines"
|
||||
ColorTableMinMax = {
|
||||
{ 0, 1000000 },
|
||||
{ 100, 2000 }
|
||||
},
|
||||
Transform = {
|
||||
Scale = {
|
||||
Type = "StaticScale",
|
||||
Scale = sunRadius
|
||||
},
|
||||
Rotation = {
|
||||
--This is a rotation matrix to go from Carrington longitude referens frame to HEEQ180
|
||||
--which is what the renderables paretn transforms.HNMReferenceFrame.Identifier is
|
||||
--refering to. At the referens time, MAS_seq = 0, 2000-07-14T08:33:37.105 the Carrington
|
||||
--longitude was 309.3 degrees.
|
||||
--Difference from HEEQ => 360-309.3=50.7
|
||||
--(or 0-309.3 = -309.3 However this leads to the same rotation matrix in the end)
|
||||
--Since OpenSpace supports HEEQ180 and not HEEQ, 180 was added or subtracted
|
||||
-- => a1 = -129.3 and a2 = 230.7
|
||||
--Rotation matrix: (cos a, -sin a, 0)(sin a, cos a, 0)(0, 0, 1) leads to the result.
|
||||
Type = "FixedRotation",
|
||||
XAxis = {-0.63338087262755016203262119192353, -0.77384020972650618518999944537717, 0.0},
|
||||
YAxis = {0.77384020972650618518999944537717, -0.63338087262755016203262119192353, 0.0},
|
||||
ZAxis = {0.0, 0.0, 1.0}
|
||||
}
|
||||
LoadAtRuntime = true,
|
||||
ScaleToMeters = 1.0,
|
||||
SecondsBefore = 24*60*60,
|
||||
SecondsAfter = 24*60*60,
|
||||
SimulationModel = "mas",
|
||||
Color = {
|
||||
Uniform = {0, 0.725, 0.75, 1}
|
||||
}
|
||||
},
|
||||
GUI = {
|
||||
Path = "/Solar System/Heliosphere",
|
||||
Name = "MAS Fieldlines"
|
||||
},
|
||||
Transform = {
|
||||
Scale = {
|
||||
Type = "StaticScale",
|
||||
Scale = sunRadius
|
||||
},
|
||||
Rotation = {
|
||||
--This is a rotation matrix to go from Carrington longitude referens frame to HEEQ180
|
||||
--which is what the renderables paretn transforms.HNMReferenceFrame.Identifier is
|
||||
--refering to. At the referens time, MAS_seq = 0, 2000-07-14T08:33:37.105 the Carrington
|
||||
--longitude was 309.3 degrees.
|
||||
--Difference from HEEQ => 360-309.3=50.7
|
||||
--(or 0-309.3 = -309.3 However this leads to the same rotation matrix in the end)
|
||||
--Since OpenSpace supports HEEQ180 and not HEEQ, 180 was added or subtracted
|
||||
-- => a1 = -129.3 and a2 = 230.7
|
||||
--Rotation matrix: (cos a, -sin a, 0)(sin a, cos a, 0)(0, 0, 1) leads to the result.
|
||||
Type = "FixedRotation",
|
||||
XAxis = {-0.63338087262755016203262119192353, -0.77384020972650618518999944537717, 0.0},
|
||||
YAxis = {0.77384020972650618518999944537717, -0.63338087262755016203262119192353, 0.0},
|
||||
ZAxis = {0.0, 0.0, 1.0}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
assetHelper.registerSceneGraphNodesAndExport(asset, { fieldlines })
|
||||
|
||||
asset.meta = {
|
||||
Name = "Predictive Science Inc. Fieldlines Bastille Day",
|
||||
Version = "1.0",
|
||||
Description = " Magnetic fieldlines for the bastille day CME event ",
|
||||
Author = "Jonathan Grangien, Matthias Berg",
|
||||
URL = "https://dx.doi.org/10.3847/1538-4357/aab36d",
|
||||
License = ""
|
||||
Name = "Predictive Science Inc. Fieldlines Bastille Day",
|
||||
Version = "1.0",
|
||||
Description = " Magnetic fieldlines for the bastille day CME event ",
|
||||
Author = "Jonathan Grangien, Matthias Berg",
|
||||
URL = "https://dx.doi.org/10.3847/1538-4357/aab36d",
|
||||
License = ""
|
||||
}
|
||||
@@ -8,67 +8,67 @@ local fluxnodeColorTableEarth = transferFunctions .. "/flux_nodes_grey_scale.txt
|
||||
local fluxnodeColorTableFlow = transferFunctions .. "/flux_nodes_flow.txt"
|
||||
|
||||
local fluxnodesBinaries = asset.syncedResource({
|
||||
Name = "Bastille day Flux nodes binaries",
|
||||
Type = "HttpSynchronization",
|
||||
Identifier = "bastille_day_streamnodes_binaries",
|
||||
Version = 1
|
||||
Name = "Bastille day Flux nodes binaries",
|
||||
Type = "HttpSynchronization",
|
||||
Identifier = "bastille_day_streamnodes_binaries",
|
||||
Version = 1
|
||||
})
|
||||
|
||||
-- Fluxnodes from binaries
|
||||
local Fluxnodes = {
|
||||
Identifier = "MAS_MHD_FluxNodes",
|
||||
Parent = heliosphereTransforms.HNMReferenceFrame.Identifier,
|
||||
Identifier = "MAS_MHD_FluxNodes",
|
||||
Parent = heliosphereTransforms.HNMReferenceFrame.Identifier,
|
||||
|
||||
Renderable = {
|
||||
Type = "RenderableFluxNodes",
|
||||
SourceFolder = fluxnodesBinaries,
|
||||
ColorTablePaths = {
|
||||
Standard = fluxnodeColorTable,
|
||||
CMR = fluxnodeColorTableCMR,
|
||||
Earth = fluxnodeColorTableEarth,
|
||||
Flow = fluxnodeColorTableFlow,
|
||||
},
|
||||
Renderable = {
|
||||
Type = "RenderableFluxNodes",
|
||||
SourceFolder = fluxnodesBinaries,
|
||||
ColorTablePaths = {
|
||||
Standard = fluxnodeColorTable,
|
||||
CMR = fluxnodeColorTableCMR,
|
||||
Earth = fluxnodeColorTableEarth,
|
||||
Flow = fluxnodeColorTableFlow,
|
||||
},
|
||||
|
||||
LoadAtRuntime = true,
|
||||
ScaleToMeters = 1.0,
|
||||
SecondsBefore = 24*60*60,
|
||||
SecondsAfter = 24*60*60,
|
||||
Enabled = false
|
||||
LoadAtRuntime = true,
|
||||
ScaleToMeters = 1.0,
|
||||
SecondsBefore = 24*60*60,
|
||||
SecondsAfter = 24*60*60,
|
||||
Enabled = false
|
||||
},
|
||||
GUI = {
|
||||
Path = "/Solar System/Heliosphere",
|
||||
Name = "Fluxnodes"
|
||||
},
|
||||
Transform = {
|
||||
Scale = {
|
||||
Type = "StaticScale",
|
||||
Scale = 1
|
||||
},
|
||||
GUI = {
|
||||
Path = "/Solar System/Heliosphere",
|
||||
Name = "Fluxnodes"
|
||||
},
|
||||
Transform = {
|
||||
Scale = {
|
||||
Type = "StaticScale",
|
||||
Scale = 1
|
||||
},
|
||||
Rotation = {
|
||||
--This is a rotation matrix to go from Carrington longitude referens frame to HEEQ180
|
||||
--which is what the renderables paretn transforms.HNMReferenceFrame.Identifier is
|
||||
--refering to. At the referens time, MAS_seq = 0, 2000-07-14T08:33:37.105 the Carrington
|
||||
--longitude was 309.3 degrees.
|
||||
--Difference from HEEQ => 360-309.3=50.7
|
||||
--(or 0-309.3 = -309.3 However this leads to the same rotation matrix in the end)
|
||||
--Since OpenSpace supports HEEQ180 and not HEEQ, 180 was added or subtracted
|
||||
-- => a1 = -129.3 and a2 = 230.7
|
||||
--Rotation matrix: (cos a, -sin a, 0)(sin a, cos a, 0)(0, 0, 1) leads to the result.
|
||||
Type = "FixedRotation",
|
||||
XAxis = {-0.63338087262755016203262119192353, -0.77384020972650618518999944537717, 0.0},
|
||||
YAxis = {0.77384020972650618518999944537717, -0.63338087262755016203262119192353, 0.0},
|
||||
ZAxis = {0.0, 0.0, 1.0}
|
||||
}
|
||||
Rotation = {
|
||||
--This is a rotation matrix to go from Carrington longitude referens frame to HEEQ180
|
||||
--which is what the renderables paretn transforms.HNMReferenceFrame.Identifier is
|
||||
--refering to. At the referens time, MAS_seq = 0, 2000-07-14T08:33:37.105 the Carrington
|
||||
--longitude was 309.3 degrees.
|
||||
--Difference from HEEQ => 360-309.3=50.7
|
||||
--(or 0-309.3 = -309.3 However this leads to the same rotation matrix in the end)
|
||||
--Since OpenSpace supports HEEQ180 and not HEEQ, 180 was added or subtracted
|
||||
-- => a1 = -129.3 and a2 = 230.7
|
||||
--Rotation matrix: (cos a, -sin a, 0)(sin a, cos a, 0)(0, 0, 1) leads to the result.
|
||||
Type = "FixedRotation",
|
||||
XAxis = {-0.63338087262755016203262119192353, -0.77384020972650618518999944537717, 0.0},
|
||||
YAxis = {0.77384020972650618518999944537717, -0.63338087262755016203262119192353, 0.0},
|
||||
ZAxis = {0.0, 0.0, 1.0}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
assetHelper.registerSceneGraphNodesAndExport(asset, { Fluxnodes })
|
||||
|
||||
asset.meta = {
|
||||
Name = "Predictive Science Inc. Flux nodes Bastille Day",
|
||||
Version = "1.0",
|
||||
Description = " Flux nodes for the bastille day CME event ",
|
||||
Author = "CCMC, Christian Adamsson, Emilie Ho",
|
||||
URL = "https://dx.doi.org/10.3847/1538-4357/aab36d",
|
||||
License = ""
|
||||
Name = "Predictive Science Inc. Flux nodes Bastille Day",
|
||||
Version = "1.0",
|
||||
Description = " Flux nodes for the bastille day CME event ",
|
||||
Author = "CCMC, Christian Adamsson, Emilie Ho",
|
||||
URL = "https://dx.doi.org/10.3847/1538-4357/aab36d",
|
||||
License = ""
|
||||
}
|
||||
@@ -4,85 +4,85 @@ local transforms = asset.require('scene/solarsystem/sun/transforms_heliosphere')
|
||||
--15 cmr emin01, 16 cmr emin03
|
||||
local TexturesPathEquitorial = asset.syncedResource({
|
||||
Type = "HttpSynchronization",
|
||||
Name = "cutplanes_textures",
|
||||
Identifier = "cutplanes_textures",
|
||||
Version = 1
|
||||
Name = "cutplanes_textures",
|
||||
Identifier = "cutplanes_textures",
|
||||
Version = 1
|
||||
})
|
||||
local TexturesPathMeridial = asset.syncedResource({
|
||||
Type = "HttpSynchronization",
|
||||
Name = "cutplane_meridial_textures",
|
||||
Identifier = "cutplane_meridial_textures",
|
||||
Version = 1
|
||||
Type = "HttpSynchronization",
|
||||
Name = "cutplane_meridial_textures",
|
||||
Identifier = "cutplane_meridial_textures",
|
||||
Version = 1
|
||||
})
|
||||
|
||||
local Cutplane = {
|
||||
Identifier = "Cutplane",
|
||||
Parent = transforms.HNMReferenceFrame.Identifier,
|
||||
--Parent = transforms.SunIAU.Identifier,
|
||||
Transform = {
|
||||
--Rotation = {
|
||||
--This is a rotation matrix to go from Carrington longitude referens frame to HEEQ180
|
||||
--which is what the renderables paretn transforms.HNMReferenceFrame.Identifier is
|
||||
--refering to. At the referens time, MAS_seq = 0, 2000-07-14T08:33:37.105 the Carrington
|
||||
--longitude was 309.3 degrees.
|
||||
--Difference from HEEQ => 360-309.3=50.7
|
||||
--(or 0-309.3 = -309.3 However this leads to the same rotation matrix in the end)
|
||||
--Since OpenSpace supports HEEQ180 and not HEEQ, 180 was added or subtracted
|
||||
-- => a1 = -129.3 and a2 = 230.7
|
||||
--Rotation matrix: (cos a, -sin a, 0)(sin a, cos a, 0)(0, 0, 1) leads to the result.
|
||||
Identifier = "Cutplane",
|
||||
Parent = transforms.HNMReferenceFrame.Identifier,
|
||||
--Parent = transforms.SunIAU.Identifier,
|
||||
Transform = {
|
||||
--Rotation = {
|
||||
--This is a rotation matrix to go from Carrington longitude referens frame to HEEQ180
|
||||
--which is what the renderables paretn transforms.HNMReferenceFrame.Identifier is
|
||||
--refering to. At the referens time, MAS_seq = 0, 2000-07-14T08:33:37.105 the Carrington
|
||||
--longitude was 309.3 degrees.
|
||||
--Difference from HEEQ => 360-309.3=50.7
|
||||
--(or 0-309.3 = -309.3 However this leads to the same rotation matrix in the end)
|
||||
--Since OpenSpace supports HEEQ180 and not HEEQ, 180 was added or subtracted
|
||||
-- => a1 = -129.3 and a2 = 230.7
|
||||
--Rotation matrix: (cos a, -sin a, 0)(sin a, cos a, 0)(0, 0, 1) leads to the result.
|
||||
--[[ Type = "FixedRotation",
|
||||
XAxis = {-0.63338087262755016203262119192353, -0.77384020972650618518999944537717, 0.0},
|
||||
YAxis = {0.77384020972650618518999944537717, -0.63338087262755016203262119192353, 0.0},
|
||||
ZAxis = {0.0, 0.0, 1.0}
|
||||
}--]]
|
||||
XAxis = {-0.63338087262755016203262119192353, -0.77384020972650618518999944537717, 0.0},
|
||||
YAxis = {0.77384020972650618518999944537717, -0.63338087262755016203262119192353, 0.0},
|
||||
ZAxis = {0.0, 0.0, 1.0}
|
||||
}--]]
|
||||
},
|
||||
Renderable = {
|
||||
Type = "RenderablePlaneTimeVaryingImage",
|
||||
Size = 1.57*10^11,
|
||||
Enabled = false,
|
||||
Texture = TexturesPathEquitorial,
|
||||
BlendMode = "Normal",
|
||||
MirrorBackside = false,
|
||||
Opacity = 0.7
|
||||
},
|
||||
GUI = {
|
||||
Name = "Cutplane Equitorial",
|
||||
Path = "/Solar System/Heliosphere"
|
||||
},
|
||||
Renderable = {
|
||||
Type = "RenderablePlaneTimeVaryingImage",
|
||||
Size = 1.57*10^11,
|
||||
Enabled = false,
|
||||
Texture = TexturesPathEquitorial,
|
||||
BlendMode = "Normal",
|
||||
MirrorBackside = false,
|
||||
Opacity = 0.7
|
||||
},
|
||||
GUI = {
|
||||
Name = "Cutplane Equitorial",
|
||||
Path = "/Solar System/Heliosphere"
|
||||
},
|
||||
};
|
||||
|
||||
local Cutplane2 = {
|
||||
Identifier = "Cutplane2",
|
||||
Parent = transforms.HNMReferenceFrame.Identifier,
|
||||
Transform = {
|
||||
Rotation = {
|
||||
Type = "StaticRotation",
|
||||
Rotation = {-1.5707965, -3.141593, 0}
|
||||
}
|
||||
Rotation = {
|
||||
Type = "StaticRotation",
|
||||
Rotation = {-1.5707965, -3.141593, 0}
|
||||
}
|
||||
},
|
||||
Renderable = {
|
||||
Type = "RenderablePlaneTimeVaryingImage",
|
||||
Size = 1.57*10^11,
|
||||
Enabled = false,
|
||||
Texture = TexturesPathMeridial,
|
||||
BlendMode = "Normal",
|
||||
MirrorBackside = false,
|
||||
Opacity = 0.7
|
||||
Type = "RenderablePlaneTimeVaryingImage",
|
||||
Size = 1.57*10^11,
|
||||
Enabled = false,
|
||||
Texture = TexturesPathMeridial,
|
||||
BlendMode = "Normal",
|
||||
MirrorBackside = false,
|
||||
Opacity = 0.7
|
||||
},
|
||||
GUI = {
|
||||
Name = "Cutplane Meridial",
|
||||
Path = "/Solar System/Heliosphere"
|
||||
},
|
||||
Name = "Cutplane Meridial",
|
||||
Path = "/Solar System/Heliosphere"
|
||||
},
|
||||
};
|
||||
|
||||
assetHelper.registerSceneGraphNodesAndExport(asset, { Cutplane, Cutplane2})
|
||||
--assetHelper.registerSceneGraphNodesAndExport(asset, { Cutplane})
|
||||
|
||||
asset.meta = {
|
||||
Name = "Predictive Science Inc. Flux nodes Bastille Days",
|
||||
Version = "1.0",
|
||||
Description = " Flux nodes for the bastille day CME events ",
|
||||
Author = "Christian Adamsson, Emilie Ho",
|
||||
URL = "https://dx.doi.org/10.3847/1538-4357/aab36d",
|
||||
License = ""
|
||||
Name = "Predictive Science Inc. Flux nodes Bastille Days",
|
||||
Version = "1.0",
|
||||
Description = " Flux nodes for the bastille day CME events ",
|
||||
Author = "Christian Adamsson, Emilie Ho",
|
||||
URL = "https://dx.doi.org/10.3847/1538-4357/aab36d",
|
||||
License = ""
|
||||
}
|
||||
@@ -1,8 +1,8 @@
|
||||
local TexturesPath = asset.syncedResource({
|
||||
Type = "HttpSynchronization",
|
||||
Name = "Streamnodes textures",
|
||||
Identifier = "streamnodes_legend",
|
||||
Version = 1
|
||||
Type = "HttpSynchronization",
|
||||
Name = "Streamnodes textures",
|
||||
Identifier = "streamnodes_legend",
|
||||
Version = 1
|
||||
})
|
||||
|
||||
asset.require("spice/base")
|
||||
@@ -10,10 +10,10 @@ local assetHelper = asset.require("util/asset_helper")
|
||||
--local textures = asset.require('./streamnodes_textures').TexturesPath
|
||||
|
||||
local legend = {
|
||||
Identifier = "Legendfluxnodes",
|
||||
--Type = "ScreenSpaceRenderable",
|
||||
Type = "ScreenSpaceImageLocal",
|
||||
TexturePath = TexturesPath .. "/CMR_transparent_vittext.png",
|
||||
Identifier = "Legendfluxnodes",
|
||||
--Type = "ScreenSpaceRenderable",
|
||||
Type = "ScreenSpaceImageLocal",
|
||||
TexturePath = TexturesPath .. "/CMR_transparent_vittext.png",
|
||||
};
|
||||
|
||||
openspace.addScreenSpaceRenderable(legend)
|
||||
@@ -26,10 +26,10 @@ openspace.setPropertyValueSingle('ScreenSpace.Legendfluxnodes.Enabled', false);
|
||||
assetHelper.registerSceneGraphNodesAndExport(asset, { legend })
|
||||
|
||||
asset.meta = {
|
||||
Name = "Predictive Science Inc. Stream nodes Bastille Days",
|
||||
Version = "1.0",
|
||||
Description = " Stream nodes for the bastille day CME events ",
|
||||
Author = "Christian Adamsson, Emilie Ho",
|
||||
URL = "https://dx.doi.org/10.3847/1538-4357/aab36d",
|
||||
License = ""
|
||||
Name = "Predictive Science Inc. Stream nodes Bastille Days",
|
||||
Version = "1.0",
|
||||
Description = " Stream nodes for the bastille day CME events ",
|
||||
Author = "Christian Adamsson, Emilie Ho",
|
||||
URL = "https://dx.doi.org/10.3847/1538-4357/aab36d",
|
||||
License = ""
|
||||
}
|
||||
@@ -2,23 +2,23 @@ local assetHelper = asset.require('util/asset_helper')
|
||||
openspace.setPropertyValueSingle("Modules.Space.ShowExceptions", false)
|
||||
|
||||
local focusPoint = {
|
||||
Identifier = "focusPoint",
|
||||
Parent = "SunIAU",
|
||||
Transform = {
|
||||
Translation = {
|
||||
-- Type = "StaticTranslation",
|
||||
Type = "GlobeTranslation",
|
||||
-- Position = {4.44531843286E8, 4.89946069886E8, 2.52887479935E8}
|
||||
Globe = "Sun",
|
||||
Longitude = -45,
|
||||
Latitude = 20,
|
||||
Altitude = 102000000
|
||||
}
|
||||
},
|
||||
GUI = {
|
||||
Path = "/Solar System/Heliosphere",
|
||||
Name = "Focus point"
|
||||
Identifier = "focusPoint",
|
||||
Parent = "SunIAU",
|
||||
Transform = {
|
||||
Translation = {
|
||||
-- Type = "StaticTranslation",
|
||||
Type = "GlobeTranslation",
|
||||
-- Position = {4.44531843286E8, 4.89946069886E8, 2.52887479935E8}
|
||||
Globe = "Sun",
|
||||
Longitude = -45,
|
||||
Latitude = 20,
|
||||
Altitude = 102000000
|
||||
}
|
||||
},
|
||||
GUI = {
|
||||
Path = "/Solar System/Heliosphere",
|
||||
Name = "Focus point"
|
||||
}
|
||||
}
|
||||
|
||||
assetHelper.registerSceneGraphNodesAndExport(asset, { focusPoint })
|
||||
@@ -30,10 +30,10 @@ assetHelper.registerSceneGraphNodesAndExport(asset, { focusPoint })
|
||||
-- Long = 47.7823 => 18.1863 * PI/180 = 0.83395845917 rad
|
||||
|
||||
asset.meta = {
|
||||
Name = "Focus point",
|
||||
Version = "1.0",
|
||||
Description = "Speed of light from sun to earth",
|
||||
Author = "Christian Adamsson, Emilie Ho",
|
||||
URL = "https://dx.doi.org/10.3847/1538-4357/aab36d",
|
||||
License = ""
|
||||
Name = "Focus point",
|
||||
Version = "1.0",
|
||||
Description = "Speed of light from sun to earth",
|
||||
Author = "Christian Adamsson, Emilie Ho",
|
||||
URL = "https://dx.doi.org/10.3847/1538-4357/aab36d",
|
||||
License = ""
|
||||
}
|
||||
@@ -4,29 +4,29 @@ local sunTransforms = asset.require('scene/solarsystem/sun/transforms')
|
||||
--openspace.setPropertyValueSingle("Modules.Space.ShowExceptions", false)
|
||||
|
||||
local travelSpeedIndicator = {
|
||||
Identifier = "travelSpeedIndicator",
|
||||
Parent = sunTransforms.SolarSystemBarycenter.Identifier,
|
||||
Renderable = {
|
||||
Type = "RenderableTravelSpeed",
|
||||
Target = "Earth", --name of scene graph node. Earth by default
|
||||
LineWidth = 4,
|
||||
IndicatorLength = 10,
|
||||
FadeLength = 10
|
||||
},
|
||||
GUI = {
|
||||
Path = "/Solar System/Heliosphere",
|
||||
Name = "Speed indicator"
|
||||
}
|
||||
Identifier = "travelSpeedIndicator",
|
||||
Parent = sunTransforms.SolarSystemBarycenter.Identifier,
|
||||
Renderable = {
|
||||
Type = "RenderableTravelSpeed",
|
||||
Target = "Earth", --name of scene graph node. Earth by default
|
||||
LineWidth = 4,
|
||||
IndicatorLength = 10,
|
||||
FadeLength = 10
|
||||
},
|
||||
GUI = {
|
||||
Path = "/Solar System/Heliosphere",
|
||||
Name = "Speed indicator"
|
||||
}
|
||||
}
|
||||
|
||||
assetHelper.registerSceneGraphNodesAndExport(asset, { travelSpeedIndicator })
|
||||
|
||||
|
||||
asset.meta = {
|
||||
Name = "Lighttravel sun to earth",
|
||||
Version = "1.0",
|
||||
Description = "Speed of light from sun to earth",
|
||||
Author = "Christian Adamsson, Emilie Ho",
|
||||
URL = "",
|
||||
License = ""
|
||||
Name = "Lighttravel sun to earth",
|
||||
Version = "1.0",
|
||||
Description = "Speed of light from sun to earth",
|
||||
Author = "Christian Adamsson, Emilie Ho",
|
||||
URL = "",
|
||||
License = ""
|
||||
}
|
||||
@@ -1,8 +1,8 @@
|
||||
local TexturesPath = asset.syncedResource({
|
||||
Name = "Bastille Day Magnetogram",
|
||||
Type = "HttpSynchronization",
|
||||
Identifier = "bastille_day_magnetogram",
|
||||
Version = 3
|
||||
Name = "Bastille Day Magnetogram",
|
||||
Type = "HttpSynchronization",
|
||||
Identifier = "bastille_day_magnetogram",
|
||||
Version = 3
|
||||
})
|
||||
|
||||
asset.export("TexturesPath", TexturesPath)
|
||||
@@ -12,10 +12,10 @@ asset.export("TexturesPath", TexturesPath)
|
||||
-- ApJ,
|
||||
-- 856:75.
|
||||
asset.meta = {
|
||||
Name = "Predictive Science Inc. MAS Bastille Day Textures",
|
||||
Version = "1.0",
|
||||
Description = " Magnetograms of the sun ",
|
||||
Author = "Jonathan Grangien, Matthias Berg",
|
||||
URL = "https://dx.doi.org/10.3847/1538-4357/aab36d",
|
||||
License = ""
|
||||
Name = "Predictive Science Inc. MAS Bastille Day Textures",
|
||||
Version = "1.0",
|
||||
Description = " Magnetograms of the sun ",
|
||||
Author = "Jonathan Grangien, Matthias Berg",
|
||||
URL = "https://dx.doi.org/10.3847/1538-4357/aab36d",
|
||||
License = ""
|
||||
}
|
||||
@@ -11,24 +11,24 @@ local textures = openspace.walkDirectoryFiles(textureDirectory);
|
||||
|
||||
-- put elements from textures into magnetograms
|
||||
for _, v in ipairs(textures) do
|
||||
table.insert(magnetograms, v)
|
||||
table.insert(magnetograms, v)
|
||||
end
|
||||
|
||||
asset.onInitialize(function ()
|
||||
-- add all all elements in magnetograms as layers
|
||||
for i, imagename in ipairs(magnetograms) do
|
||||
-- add all all elements in magnetograms as layers
|
||||
for i, imagename in ipairs(magnetograms) do
|
||||
|
||||
openspace.globebrowsing.addLayer(
|
||||
'Sun',
|
||||
'ColorLayers',
|
||||
{
|
||||
Identifier = "magnetogram-" .. i,
|
||||
Name = imagename, --"Magnetogram-" .. i,
|
||||
Description = "",
|
||||
FilePath = imagename,
|
||||
Enabled = false
|
||||
}
|
||||
)
|
||||
end
|
||||
openspace.globebrowsing.addLayer(
|
||||
'Sun',
|
||||
'ColorLayers',
|
||||
{
|
||||
Identifier = "magnetogram-" .. i,
|
||||
Name = imagename, --"Magnetogram-" .. i,
|
||||
Description = "",
|
||||
FilePath = imagename,
|
||||
Enabled = false
|
||||
}
|
||||
)
|
||||
end
|
||||
|
||||
end)
|
||||
|
||||
@@ -3,49 +3,49 @@ local transforms = asset.require('../../planets/earth/transforms_magnetosphere')
|
||||
|
||||
--local fieldlinesDirectory = "C:/Users/elono/Documents/OpenSpace/data/earthMagnetoSphere"
|
||||
local fieldlinesDirectory = asset.syncedResource({
|
||||
Name = "Magnetosphere 2012 event",
|
||||
Type = "HttpSynchronization",
|
||||
Identifier = "magnetosphere_2012_event",
|
||||
Version = 1
|
||||
Name = "Magnetosphere 2012 event",
|
||||
Type = "HttpSynchronization",
|
||||
Identifier = "magnetosphere_2012_event",
|
||||
Version = 1
|
||||
})
|
||||
|
||||
-- Fieldlies from binaries
|
||||
local earthMagnetosphere = {
|
||||
Identifier = "Earths_Magnetosphere",
|
||||
Parent = transforms.GSMReferenceFrame.Identifier,
|
||||
--Parent = sunTransforms.SunIAU.Identifier,
|
||||
Renderable = {
|
||||
Type = "RenderableFieldlinesSequence",
|
||||
SourceFolder = fieldlinesDirectory,
|
||||
-- FlowEnabled = false,
|
||||
LineWidth = 3.0,
|
||||
AlphaBlendlingEnabled = false,
|
||||
InputFileType = "osfls", -- openspace Field lines Sequence
|
||||
Identifier = "Earths_Magnetosphere",
|
||||
Parent = transforms.GSMReferenceFrame.Identifier,
|
||||
--Parent = sunTransforms.SunIAU.Identifier,
|
||||
Renderable = {
|
||||
Type = "RenderableFieldlinesSequence",
|
||||
SourceFolder = fieldlinesDirectory,
|
||||
-- FlowEnabled = false,
|
||||
LineWidth = 3.0,
|
||||
AlphaBlendlingEnabled = false,
|
||||
InputFileType = "osfls", -- openspace Field lines Sequence
|
||||
|
||||
--maskingEnabled = true,
|
||||
--MaskingRanges = {0.0, 0.0}, -- this seem to map it to an int =0 which correspond to the topology=closed (fieldlines)
|
||||
LoadAtRuntime = true,
|
||||
ScaleToMeters = 1.0,
|
||||
SecondsBefore = 24*60*60*365*100,
|
||||
SecondsAfter = 24*60*60*365*100,
|
||||
--SimulationModel = "mas",
|
||||
Color = {
|
||||
Uniform = {1.0, 0.725, 0.75, 1}
|
||||
}
|
||||
},
|
||||
GUI = {
|
||||
Path = "/Solar System/Planets/Earth",
|
||||
Name = "Magnetosphere"
|
||||
},
|
||||
--maskingEnabled = true,
|
||||
--MaskingRanges = {0.0, 0.0}, -- this seem to map it to an int =0 which correspond to the topology=closed (fieldlines)
|
||||
LoadAtRuntime = true,
|
||||
ScaleToMeters = 1.0,
|
||||
SecondsBefore = 24*60*60*365*100,
|
||||
SecondsAfter = 24*60*60*365*100,
|
||||
--SimulationModel = "mas",
|
||||
Color = {
|
||||
Uniform = {1.0, 0.725, 0.75, 1}
|
||||
}
|
||||
},
|
||||
GUI = {
|
||||
Path = "/Solar System/Planets/Earth",
|
||||
Name = "Magnetosphere"
|
||||
},
|
||||
}
|
||||
|
||||
assetHelper.registerSceneGraphNodesAndExport(asset, { earthMagnetosphere })
|
||||
|
||||
asset.meta = {
|
||||
Name = "",
|
||||
Version = "1.0",
|
||||
Description = " Magnetic fieldlines for the bastille day CME event ",
|
||||
Author = "CCMC",
|
||||
URL = "",
|
||||
License = ""
|
||||
Name = "",
|
||||
Version = "1.0",
|
||||
Description = " Magnetic fieldlines for the bastille day CME event ",
|
||||
Author = "CCMC",
|
||||
URL = "",
|
||||
License = ""
|
||||
}
|
||||
|
||||
@@ -5,31 +5,31 @@ asset.require("spice/base")
|
||||
local GSMKernel = asset.localResource("./kernels/GSM.ti")
|
||||
|
||||
local GSMReferenceFrame = {
|
||||
Identifier = "GSMReferenceFrame",
|
||||
Parent = transforms.EarthCenter.Identifier,
|
||||
Transform = {
|
||||
Rotation = {
|
||||
Type = "SpiceRotation",
|
||||
SourceFrame = "GSM", --Geocentric Solar Magnetospheric
|
||||
DestinationFrame = "GALACTIC",
|
||||
Kernels = GSMKernel
|
||||
}
|
||||
},
|
||||
GUI = {
|
||||
Name = "GSM Reference Frame",
|
||||
Path = "/Solar System/Planets/Earth",
|
||||
Hidden = true
|
||||
Identifier = "GSMReferenceFrame",
|
||||
Parent = transforms.EarthCenter.Identifier,
|
||||
Transform = {
|
||||
Rotation = {
|
||||
Type = "SpiceRotation",
|
||||
SourceFrame = "GSM", --Geocentric Solar Magnetospheric
|
||||
DestinationFrame = "GALACTIC",
|
||||
Kernels = GSMKernel
|
||||
}
|
||||
},
|
||||
GUI = {
|
||||
Name = "GSM Reference Frame",
|
||||
Path = "/Solar System/Planets/Earth",
|
||||
Hidden = true
|
||||
}
|
||||
}
|
||||
|
||||
assetHelper.registerSceneGraphNodesAndExport(asset, { GSMReferenceFrame })
|
||||
|
||||
asset.meta = {
|
||||
Name = "Earth magnetosphere transforms",
|
||||
Version = "1.0",
|
||||
Description = [[ Earth transforms: GSMReferenceFrame. Geocentric Solar Magnetospheric]],
|
||||
Author = "CCMC",
|
||||
URL = "http://openspaceproject.com",
|
||||
License = "MIT license",
|
||||
Identifiers = {"GSMReferenceFrame"}
|
||||
Name = "Earth magnetosphere transforms",
|
||||
Version = "1.0",
|
||||
Description = [[ Earth transforms: GSMReferenceFrame. Geocentric Solar Magnetospheric]],
|
||||
Author = "CCMC",
|
||||
URL = "http://openspaceproject.com",
|
||||
License = "MIT license",
|
||||
Identifiers = {"GSMReferenceFrame"}
|
||||
}
|
||||
@@ -1,10 +1,10 @@
|
||||
asset.meta = {
|
||||
Name = "Predictive Science Inc. EUV texture sequence Bastille Days",
|
||||
Version = "1.0",
|
||||
Description = "EUV simulation, texture sequence",
|
||||
Author = "CCMC, OpenSpace team",
|
||||
URL = "https://dx.doi.org/10.3847/1538-4357/aab36d",
|
||||
License = ""
|
||||
Name = "Predictive Science Inc. EUV texture sequence Bastille Days",
|
||||
Version = "1.0",
|
||||
Description = "EUV simulation, texture sequence",
|
||||
Author = "CCMC, OpenSpace team",
|
||||
URL = "https://dx.doi.org/10.3847/1538-4357/aab36d",
|
||||
License = ""
|
||||
}
|
||||
|
||||
asset.require("spice/base")
|
||||
@@ -12,28 +12,28 @@ local assetHelper = asset.require("util/asset_helper")
|
||||
local transforms = asset.require("./transforms")
|
||||
|
||||
local textureSourcePath = asset.syncedResource({
|
||||
Type = "HttpSynchronization",
|
||||
Name = "euv_textures_bastille_event",
|
||||
Identifier = "euv_textures_bastille_event",
|
||||
Version = 1
|
||||
Type = "HttpSynchronization",
|
||||
Name = "euv_textures_bastille_event",
|
||||
Identifier = "euv_textures_bastille_event",
|
||||
Version = 1
|
||||
})
|
||||
|
||||
local EUV_Layer = {
|
||||
Identifier = "EUV_Layer",
|
||||
Parent = transforms.SunIAU.Identifier,
|
||||
Renderable = {
|
||||
Type = "RenderableTimeVaryingSphere",
|
||||
Size = 6.96E8, -- Slightly bigger than the sun renderable,
|
||||
Enabled = false,
|
||||
TextureSource = textureSourcePath,
|
||||
--BlendMode = "Additive",
|
||||
Opacity = 1,
|
||||
Segments = 132
|
||||
},
|
||||
GUI = {
|
||||
Name = "EUV_Layer",
|
||||
Path = "/Solar System/Sun"
|
||||
},
|
||||
Identifier = "EUV_Layer",
|
||||
Parent = transforms.SunIAU.Identifier,
|
||||
Renderable = {
|
||||
Type = "RenderableTimeVaryingSphere",
|
||||
Size = 6.96E8, -- Slightly bigger than the sun renderable,
|
||||
Enabled = false,
|
||||
TextureSource = textureSourcePath,
|
||||
--BlendMode = "Additive",
|
||||
Opacity = 1,
|
||||
Segments = 132
|
||||
},
|
||||
GUI = {
|
||||
Name = "EUV_Layer",
|
||||
Path = "/Solar System/Sun"
|
||||
},
|
||||
}
|
||||
|
||||
assetHelper.registerSceneGraphNodesAndExport(asset, { EUV_Layer })
|
||||
|
||||
@@ -4,21 +4,21 @@ asset.require("spice/base")
|
||||
local HNMKernel = asset.localResource("./kernels/HNM.tf")
|
||||
|
||||
local HNMReferenceFrame = {
|
||||
Identifier = "HNMReferenceFrame",
|
||||
Parent = sunTransforms.SunIAU.Identifier,
|
||||
Transform = {
|
||||
Rotation = {
|
||||
Type = "SpiceRotation",
|
||||
SourceFrame = "HEEQ180",
|
||||
DestinationFrame = "GALACTIC",
|
||||
Kernels = HNMKernel
|
||||
}
|
||||
},
|
||||
GUI = {
|
||||
Name = "HNM Reference Frame",
|
||||
Path = "/Solar System/Sun",
|
||||
Hidden = true
|
||||
Identifier = "HNMReferenceFrame",
|
||||
Parent = sunTransforms.SunIAU.Identifier,
|
||||
Transform = {
|
||||
Rotation = {
|
||||
Type = "SpiceRotation",
|
||||
SourceFrame = "HEEQ180",
|
||||
DestinationFrame = "GALACTIC",
|
||||
Kernels = HNMKernel
|
||||
}
|
||||
},
|
||||
GUI = {
|
||||
Name = "HNM Reference Frame",
|
||||
Path = "/Solar System/Sun",
|
||||
Hidden = true
|
||||
}
|
||||
}
|
||||
|
||||
assetHelper.registerSceneGraphNodesAndExport(asset, { HNMReferenceFrame })
|
||||
|
||||
Reference in New Issue
Block a user