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

Compare with Current View Page History

« Previous Version 13 Next »

IMASViz is a tool developed within Integrated Modelling  Analysis Suite (IMAS) for the purposes of visualizing static and dynamic IMAS data, stored within IMAS Interface Data Structures (IDS). While the tool itself is already available for use it is still under active development, and various features, GUI improvements etc. are still being implemented. 

The tool has been migrated recently to Python 3 and utilizes the next Python packages:

  • matplotlib - provides plotting functionalities,
  • wxPython - provides graphical user interface customization, and
  • wxmPlot - provides plot customization.

The tool is available on ITER git repository (access permission is required) under Visualization/VIZ project.

Direct link to the repository: https://git.iter.org/projects/VIS/repos/viz/browse


The tutorial below is executed on the Gateway.


1.1.1. Loading required modules for executing IMAS_VIZ

In a new terminal, execute the following command in order to load the required modules for using IMAS_VIZ:

module load cineca imasenv/3.15.1 imas-viz 

1.1.2. Loading 'magnetics' IDS from a IMAS local data source

  1. In the previous opened terminal, simply type 'viz' and return to execute the command

    The main GUI of IMAS_VIZ should display. 

  2. Select the tab 'Local data source'
  3. Enter the following informations:

    User name: g2lfleur
    IMAS database name: test
    Shot number: 52344
    Run number: 0

    The data source is a pulse files located in the public/imasdb/test directory of user g2lfleur. 


  4. Click button open
    An navigation tree should open with a list of all IDSs. Available IDSs for the given shot are displayed in blue.
    The tree will allow to browse data for the specific shot number which is displayed by the root node (IDSs(52344)).

  5. Right click on 'magnetics' IDS and select the command 'Get magnetics data (default to occurrence 0)'
    The 'magnetics' IDS is displayed as new nodes in the tree.

1.1.3. Plotting a 1D array

  1. Navigate through the 'magnetics' IDS 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 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 unzoom).

1.1.4.
Adding a 1D plot to an existing figure

  1. From the prevous navigation tree, navigate to the node ''ds.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.5. Comparing 1D arrays between 2 shots

  1. Open the shot 52682

    User name: g2lfleur
    IMAS database name: test
    Shot number: 52682
    Run number: 0
  2. Load occurence 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

1.1.6. Selecting 1D arrays, plotting the selection

1.1.7. Plotting 1D arrays as a function of time along the coordinate1 axis

1.1.8. Plotting 1D arrays as a function of coordinate1 along the time axis

1.1.9. Creating a multiple plots configuration

1.1.10. Applying a multiple plots configuration to a new shot

1.1.11. Executing the equilibrium overview plugin

 

(WORK IN PROGRESS)

  • No labels