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 sunTransforms = asset.require("scene/solarsystem/sun/transforms")
2
3
4
5local fluxNodesBinaries = asset.resource({
6 Name = "Bastille day Flux nodes binaries",
7 Type = "HttpSynchronization",
8 Identifier = "bastille_day_streamnodes_binaries",
9 Version = 1
10})
11
12
13-- FluxNodes from binaries
14local Fluxnodes = {
15 Identifier = "MAS-MHD-FluxNodes-bastille-day-2000",
16 Parent = sunTransforms.SunIAU.Identifier,
17 -- TODO Elon: 21 April 2022. Interaction sphere should not depend on the transform scale.
18 -- InteractionSphere = sunAsset.Sun.Renderable.Radii[1] * 1.05,
19 InteractionSphere = 695700000.0,
20 Renderable = {
21 Type = "RenderableFluxNodes",
22 SourceFolder = fluxNodesBinaries,
23 ColorTablePath = asset.resource("transferfunctions/CMR.txt"),
24 ColorTableRange = { -2.0, 4.0 }
25 },
26 GUI = {
27 Path = "/Solar System/Heliosphere/Bastille Day 2000",
28 Name = "Flux Nodes",
29 Description = [[Flux nodes for the bastille day CME event. This asset contains data
30 from 2000-07-14 08:38 to 2000-07-14 19:48]]
31 }
32}
33
34local ToggleFluxnodes = {
35 Identifier = "os.bastilleday.fluxnodes.ToggleFluxnodes",
36 Name = "Toggle flux nodes",
37 Command = [[
38 openspace.toggleFade("Scene.MAS-MHD-FluxNodes-bastille-day-2000.Renderable")
39 ]],
40 Documentation = "Toggle flux node rendering of CME",
41 GuiPath = "/Bastille-Day 2000",
42 IsLocal = false
43}
44
45
46asset.onInitialize(function()
47 openspace.action.registerAction(ToggleFluxnodes)
48 openspace.addSceneGraphNode(Fluxnodes)
49end)
50
51asset.onDeinitialize(function()
52 openspace.removeSceneGraphNode(Fluxnodes)
53 openspace.action.removeAction(ToggleFluxnodes)
54end)
55
56asset.export(Fluxnodes)
57asset.export("ToggleFluxnodes", ToggleFluxnodes.Identifier)
58
59
60
61asset.meta = {
62 Name = "Predictive Science Inc. Flux nodes Bastille Day",
63 Description = "Flux nodes for the bastille day CME event",
64 Author = "CCMC, Christian Adamsson, Emilie Ho",
65 URL = "https://dx.doi.org/10.3847/1538-4357/aab36d",
66 License = "CC-BY"
67}