Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Comment: Add visual material, minor documentation edit.

 

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:

  1. Navigate through the 'magnetics' IDS  IDS and search for the node 'ids.magnetics.flux_loop[0].flux.data'

    Image Modified















































  2. Right-click on the node 'ids.magnetics.flux_loop[0].flux.data'
  3. From the pop-up menu, select the command ' Plot ids.magnetics.flux_loop[0].flux.data'
    Image Added

    The plot should display as shown in the image below.

    Image Modified

    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).

...

  1. From the previous navigation tree, navigate to the node ' ids.magnetics.flux_loop[16].flux.data'
  2. Right-click on the node 'ids.magnetics.flux_loop[16].flux.data'
  3. From the pop-up menu, select the command ' Add plot to existing figure' and 'Figure0' in  Figure0 in the attached submenu

    Image Added

    The plot should display as in the image below.

    Image Modified

























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:

  1. Open the shot 52682.

    section
    Panel
    titleTutorial IDS case parameters:
    User name: g2lfleur
    IMAS database name:test
    Shot number:52682
    Run number:0

  2. Load occurrence 0 of ' magnetics' IDS

  3. Navigate through the 'magnetics' IDS  IDS of shot 52682 and search for the node 'ids.magnetics.flux_loop[0].flux.data'

  4. Right-click on the node 'ids.magnetics.flux_loop[0].flux.data'
  5. 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. 

    Image Modified
























3.4 Selecting 1D arrays, plotting the selection

...

  1. Navigate the tree of shot 52682 and search for the node 'ids.magnetics.bpol_probe[0].field.data'
  2. Right-click on the node 'ids.magnetics.bpol_probe[0].field.data'
  3. From the pop-up menu, select the command 'Select ids.magnetics.bpol_probe[0].field.data'
    Image Added
    The selected node turns into red.
    Image Added
  4. Navigate the tree of shot 52682 and search for the node 'ids.magnetics.bpol_probe[9].field.data'
  5. Right-click on the node 'ids.magnetics.bpol_probe[9].field.data'
  6. From the pop-up menu, select the command 'Select ids.magnetics.bpol_probe[9].field.data'
    The selected node turns into red.
    Image Modified














































  7. Right-click one of the selected nodes
  8. From the pop-up menu, select the command 'Plot all selected signals to a new figure'
    Image Added

    Image Modified

    Note
    Selections list are proper to each shot navigation tree; selections list are not concatenated between different shots. 

...

  1. Load the equilibrium IDS from shot 52682
  2. Navigate the tree of shot 52682 and search for the node 'ids.equilibrium.time_slice[0].profiles_1d.f'

    Image Modified
















































  3. 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.

    Image Modified
















































  4. Right-click now on the node 'ids.equilibrium.time_slice[0].profiles_1d.f'
  5. From the pop-up menu, select the command 'Plot ids.equilibrium.time_slice[0].profiles_1d.f to a new figure'

    Image Added
    The plot should display as in the image below.
    The data are represented as a function of coordinate1 for the first time slice.

    Image Modified




























  6. 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.

    Image Modified

 




























3.5.2 Plotting 1D arrays as a function of the time along coordinate1

  1. From the previous shot 52682 tree, right-click now the node 'ids.equilibrium.time_slice[0].profiles_1d.f'
  2. From the pop-up menu, select the command 'Plot ids.equilibrium.time_slice[0].profiles_1d.f as a function of time'

    Image Added
    The plot should display as in the image below.

    The data are represented as a function of time for a given coordinate1 value.

    Image Modified































  3. 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).

    Image Modified

...































3.6. Multiple plots configuration

...

  1. Load the magnetics IDS (see above 'Loading 'magnetics' IDS from an IMAS local data source example')
  2. Navigate through the 'magnetics' IDS of shot 52682 and select the node 'next nodes:
    1. ids.magnetics.flux_loop[0].flux.data
    '
    Navigate through the 'magnetics' IDS of shot 52682 and select the node '
    1. ids.magnetics.flux_loop[5].flux.data
    '
    Navigate through the 'magnetics' IDS of shot 52682 and select the node '
    1. ids.magnetics.flux_loop[15].flux.data
    '
    Navigate through the 'magnetics' IDS of shot 52682 and select the node ''
    1. ids.magnetics.bpol_probe[0].field.data
    '
    Navigate through the 'magnetics' IDS of shot 52682 and select the node ''
    1. ids.magnetics.bpol_probe[40].field.data
    '
    Navigate through the 'magnetics' IDS of shot 52682 and select the node ''
    1. ids.magnetics.bpol_probe[80].field.data

    '


    1. At this stage

    we have 6
    1. , 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'.
  3. Right-click on one of the selected node
  4. From the pop-up menu, select the command 'Plot all selected signals to a multiplot frame'
    Image Added


    Image Modified

























  5. 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

    Image Added

    Image Modified







    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

...

  1. Open the shot 52344 if it is not already opened

    Panel
    titleTutorial IDS case parameters:
    User name: g2lfleur
    IMAS database name:test
    Shot number:52344
    Run number:0
  2. From the Options menu of the navigation tree of shot 52344, select the command 'Apply multiple plots configuration'
    Image Added


    Image Modified



















  3. Click on the 'Apply configuration button'
    The new multiplot should displayed as should be displayed as shown in the image below.

    Image Modified


 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

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.

...