The plotting of 1D arrays option and plot handling is one of the main features of IMASViz tool.
...
The procedure to plot 1D array is as follows:
- Navigate through the 'magnetics' IDS IDS and search for the node 'ids.magnetics.flux_loop[0].flux.data'
- Right-click on the node 'ids.magnetics.flux_loop[0].flux.data'
From the pop-up menu, select the command ' Plot ids.magnetics.flux_loop[0].flux.data'
The plot should display as shown in the image below.Info Each plot window has a menu for printing (File menu), saving and exporting data (File menu) or customizing the plot (Options menu).
Any part of the plot can be zoom-in using the mouse (Options menu to zoom out).
...
- From the previous navigation tree, navigate to the node ' ids.magnetics.flux_loop[16].flux.data'
- Right-click on the node 'ids.magnetics.flux_loop[16].flux.data'
- From the pop-up menu, select the command ' Add plot to existing figure' and 'Figure0' in Figure0 in the attached submenu
The plot should display as in the image below.
3.3 Comparing float 1D arrays between 2 shots
IMASViz allows comparing of 1D arrays between 2 different shots. The procedure is shown as followsvery similar to the one presented in the previous section 3.2:
Open the shot 52682.
Panel sectiontitle Tutorial IDS case parameters: User name: g2lfleur
IMAS database name:test
Shot number:52682
Run number:0
Load occurrence 0 of ' magnetics' IDS
Navigate through the 'magnetics' IDS IDS of shot 52682 and search for the node 'ids.magnetics.flux_loop[0].flux.data'
- Right-click on the node 'ids.magnetics.flux_loop[0].flux.data'
From the pop-up menu, select the command 'Add plot to existing figure' and 'Figure0' in figure and Figure0 in the attached submenu
The plot should display as in the image below.
3.4 Selecting 1D arrays, plotting the selection
...
- Navigate the tree of shot 52682 and search for the node 'ids.magnetics.bpol_probe[0].field.data'
- Right-click on the node 'ids.magnetics.bpol_probe[0].field.data'
- From the pop-up menu, select the command 'Select ids.magnetics.bpol_probe[0].field.data'
The selected node turns into red. - Navigate the tree of shot 52682 and search for the node 'ids.magnetics.bpol_probe[9].field.data'
- Right-click on the node 'ids.magnetics.bpol_probe[9].field.data'
- From the pop-up menu, select the command 'Select ids.magnetics.bpol_probe[9].field.data'
The selected node turns into red. - Right-click one of the selected nodes
From the pop-up menu, select the command 'Plot all selected signals to a new figure'
Note Selections list are proper to each shot navigation tree; selections list are not concatenated between different shots.
...
- Load the equilibrium IDS from shot 52682
- Navigate the tree of shot 52682 and search for the node 'ids.equilibrium.time_slice[0].profiles_1d.f'
- Click on the + symbol at the right of node 'ids.equilibrium.time_slice[0].profiles_1d.f' to to expand it.
You should get the image below. Note that coordinate1 = ' ids.equilibrium.time_slice[itime].profiles_1d.psi'
for this FLT_1D data array. - Right-click now on the node 'ids.equilibrium.time_slice[0].profiles_1d.f'
- From the pop-up menu, select the command 'Plot ids.equilibrium.time_slice[0].profiles_1d.f to a new figure'
The plot should display as in the image below.
The data are represented as a function of coordinate1 for the first time slice. - Click on the time slider and release the mouse at index value 41
The time slider allows you to move along the time axis. You should obtain the image below.
3.5.2 Plotting 1D arrays as a function of the time along coordinate1
- From the previous shot 52682 tree, right-click now the node 'ids.equilibrium.time_slice[0].profiles_1d.f'
- From the pop-up menu, select the command 'Plot ids.equilibrium.time_slice[0].profiles_1d.f as a function of time'
The plot should display as in the image below.
The data are represented as a function of time for a given coordinate1 value. - Click on the time slider and release the mouse at index value 19.
The slider allows you to move along the coordinate1. You should obtain the image below.
The title of the plot gives the coordinate1 value which is selected by the slider. The label of the
plot is the short name of the quantity which has been selected in the tree (equilibrium.time_slice[itime] has
been removed from the label).
...
3.6. Multiple plots configuration
...
- Load the magnetics IDS (see above 'Loading 'magnetics' IDS from an IMAS local data source example')
- Navigate through the 'magnetics' IDS of shot 52682 and select the node 'next nodes:
- ids.magnetics.flux_loop[0].flux.data
- ids.magnetics.flux_loop[5].flux.data
- ids.magnetics.flux_loop[15].flux.data
- ids.magnetics.bpol_probe[0].field.data
- ids.magnetics.bpol_probe[40].field.data
ids.magnetics.bpol_probe[80].field.data
At this stage
, there are six FLT_1D arrays selected.
Note Currently, up to 6 plots only can be plotted simultaneously. This limitation will be removed in the future. Info Each plot can be customized individually; right click on a node and select 'Configure Plot'.
- Right-click on one of the selected node
- From the pop-up menu, select the command 'Plot all selected signals to a multiplot frame'
- In the menu, select Options/Save plots configuration and type 'Magnetics_flux_loop_bpol_probes' as as a name for the configuration, click the OK button
The configuration has been saved as a file in your $HOME/.imasviz directory (i.e Magnetics_flux_loop_bpol_probes.cfg file).
3.6.2 Applying a multiple plots configuration to a new shot
...
Open the shot 52344 if it is not already opened
Panel title Tutorial IDS case parameters: User name: g2lfleur
IMAS database name:test
Shot number:52344
Run number:0
- From the Options menu of the navigation tree of shot 52344, select the command 'Apply multiple plots configuration'
- Click on the 'Apply configuration button'
The new multiplot should displayed as should be displayed as shown in the image below.
Info |
---|
The time that is taken by the command 'Apply multiple plots configuration' is short (few seconds) if all the required IDSs have been loaded previously. If not, the command needs to load all IDSs (from which the data to be plotted are fetched) before to plot the data. |
...