You are viewing an old version of this page. View the current version.

Compare with Current View Page History

« Previous Version 9 Next »

 

The plotting of 1D arrays option and plot handling is one of the main features of IMASViz tool.

This tutorial subsection presents the basics of plotting a 1D array, stored in the IDS, and handling the created plots.

1.1.1. 3.1 Plotting a single 1D array

The procedure to plot 1D array is as follows:

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



  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



    The plot should display as shown in the image below.































    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.1.2. 3.2 Adding a plot to an existing figure

The procedure of adding a plot to an already existing figure is as follow:

  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 the attached submenu



    The plot should display as in the image below.

1.1.3.























3.3 Comparing float 1D arrays between 2 shots

IMASViz allows comparing of 1D arrays between 2 different shots. The procedure is very similar to the one presented in the previous section 3.2:

  1. Open the shot 52682.

    Tutorial 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 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 the attached submenu
    The plot should display as in the image below. 

1.1.4.






















3.4 Selecting 1D arrays, plotting the selection

IMASViz allows the user to preselect arrays to be added to a single plot, thus providing a faster plot option when multiple 1D data arrays are desired to be shown on a single plot and avoiding "one-by-one" selection.

The procedure of 1D arrays selection and plotting is as follows:

  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

    The selected node turns into red.
  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.















































  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
































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

1.1.5. 3.5 Plotting 1D arrays as a function of coordinate1 along the time axis and vice-versa

Another IMASViz function is plotting coordinate along the time axis and vice-versa. Examples are shown in the subsections below.

1.1.5.1. 3.5.1 Plotting 1D array as a function of coordinate1 along the time axis

  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


















































  3. Click on the + symbol  at the right of node ids.equilibrium.time_slice[0].profiles_1d.f 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.


















































  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


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






























  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.




























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


    The plot should display as in the image below.

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

































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































1.1.6. 3.6. Multiple plots configuration

IMASViz enables the creation and later use of custom plot configuration.

1.1.6.1. 3.6.1 Creating a multiple plots configuration

The procedure is as follows:

  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 next nodes:
    1. ids.magnetics.flux_loop[0].flux.data
    2. ids.magnetics.flux_loop[5].flux.data
    3. ids.magnetics.flux_loop[15].flux.data
    4. ids.magnetics.bpol_probe[0].field.data
    5. ids.magnetics.bpol_probe[40].field.data
    6. ids.magnetics.bpol_probe[80].field.data

      At this stage, there are six FLT_1D arrays selected.

      Currently, up to 6 plots only can be plotted simultaneously. This limitation will be removed in the future.
      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





























  5. In the menu, select Options -> Save plots configuration and type Magnetics_flux_loop_bpol_probes 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).

1.1.6.2. 3.6.2 Applying a multiple plots configuration to a new shot

The procedure is as follows:

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

    Tutorial 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






















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


























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.
The plots order depends on the order in which the data selection has been performed. First selected data will be the first plots in the multiplot window.
  • No labels