RenderableFluxNodes
Inherits Renderable
Members
Name |
Documentation |
Type |
Description |
Optional |
---|---|---|---|---|
|
Color Table/Transfer Function to use for ‘By Flux Value’ coloring. |
|
Value of type ‘String’ |
No |
|
Path to a source folder with the three binary files in it. |
|
Value of type ‘Directory’ |
No |
|
Valid range for the color table as the exponent, with base 10, of flux values. [Min, Max]. |
|
Value of type ‘Vector2 |
Yes |
|
Select which energy bin you want to show. GOES = Geostationary Operational Environmental Satellites. Emin01 is values > 10 MeV, Default is Emin03 where values > 100 MeV. |
|
Value of type ‘Integer’ |
Yes |
Inherited members from Renderable
Name |
Documentation |
Type |
Description |
Optional |
---|---|---|---|---|
|
Decides if the object should be dimmed (i.e. faded out) when the camera is in the sunny part of an atmosphere. |
|
Value of type ‘Boolean’ |
Yes |
|
Determines whether this object will be visible or not. |
|
Value of type ‘Boolean’ |
Yes |
|
This value determines the opacity of this renderable. A value of 0 means completely transparent. |
|
In range: ( 0,1 ) |
Yes |
|
A value that specifies if the renderable should be rendered in the Background, Opaque, Pre-/PostDeferredTransparency, Overlay, or Sticker rendering step. |
|
In list { Background, Opaque, PreDeferredTransparent, Overlay, PostDeferredTransparent, Sticker } |
Yes |
|
A single tag or a list of tags that this renderable will respond to when setting properties. |
|
Value of type ‘Table’, or Value of type ‘String’ |
Yes |
|
The type of the renderable. |
|
Value of type ‘String’ |
Yes |
Asset Examples
1local heliosphereTransforms = asset.require("scene/solarsystem/sun/transforms_heliosphere")
2local rot = asset.require("./carrington_to_heeq_rotation")
3
4
5
6local fluxNodesBinaries = asset.resource({
7 Name = "Bastille day Flux nodes binaries",
8 Type = "HttpSynchronization",
9 Identifier = "bastille_day_streamnodes_binaries",
10 Version = 1
11})
12
13
14-- FluxNodes from binaries
15local Fluxnodes = {
16 Identifier = "MAS-MHD-FluxNodes-bastille-day-2000",
17 Parent = heliosphereTransforms.HeliocentricEarthEquatorial180.Identifier,
18 -- TODO Elon: 21 April 2022. Interaction sphere should not depend on the transform scale.
19 -- InteractionSphere = sunAsset.Sun.Renderable.Radii[1] * 1.05,
20 InteractionSphere = 695700000.0,
21 Transform = {
22 Rotation = rot.CarringtonLongitudeToHEEQ180Rotation
23 },
24 Renderable = {
25 Type = "RenderableFluxNodes",
26 SourceFolder = fluxNodesBinaries,
27 ColorTablePath = asset.resource("transferfunctions/CMR.txt"),
28 ColorTableRange = { -2.0, 4.0 }
29 },
30 GUI = {
31 Path = "/Solar System/Heliosphere/Bastille Day 2000",
32 Name = "Flux Nodes",
33 Description = [[Flux nodes for the bastille day CME event. This asset contains data
34 from 2000-07-14 08:38 to 2000-07-14 19:48]]
35 }
36}
37
38local ToggleFluxnodes = {
39 Identifier = "os.bastilleday.fluxnodes.ToggleFluxnodes",
40 Name = "Toggle flux nodes",
41 Command = [[
42 if openspace.propertyValue("Scene.MAS-MHD-FluxNodes-bastille-day-2000.Renderable.Enabled") then
43 openspace.setPropertyValueSingle(
44 "Scene.MAS-MHD-FluxNodes-bastille-day-2000.Renderable.Fade",
45 0.0,
46 openspace.propertyValue("OpenSpaceEngine.FadeDuration"),
47 "Linear",
48 'openspace.setPropertyValueSingle("Scene.MAS-MHD-FluxNodes-bastille-day-2000.Renderable.Enabled", false)'
49 )
50 else
51 openspace.setPropertyValueSingle("Scene.MAS-MHD-FluxNodes-bastille-day-2000.Renderable.Enabled", true)
52 openspace.setPropertyValueSingle(
53 "Scene.MAS-MHD-FluxNodes-bastille-day-2000.Renderable.Fade",
54 1.0,
55 openspace.propertyValue("OpenSpaceEngine.FadeDuration"),
56 "Linear"
57 )
58 end
59 ]],
60 Documentation = "Toggle flux node rendering of CME",
61 GuiPath = "/Bastille-Day 2000",
62 IsLocal = false
63}
64
65
66asset.onInitialize(function()
67 openspace.action.registerAction(ToggleFluxnodes)
68 openspace.addSceneGraphNode(Fluxnodes)
69end)
70
71asset.onDeinitialize(function()
72 openspace.removeSceneGraphNode(Fluxnodes)
73 openspace.action.removeAction(ToggleFluxnodes)
74end)
75
76asset.export(Fluxnodes)
77asset.export("ToggleFluxnodes", ToggleFluxnodes.Identifier)
78
79
80
81asset.meta = {
82 Name = "Predictive Science Inc. Flux nodes Bastille Day",
83 Description = "Flux nodes for the bastille day CME event",
84 Author = "CCMC, Christian Adamsson, Emilie Ho",
85 URL = "https://dx.doi.org/10.3847/1538-4357/aab36d",
86 License = "CC-BY"
87}