Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Comment: Minor changes: figure sizes, important parts of text to bold etc.

IMASViz is an utility tool 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.

...

  1. Select the tab 'Local data source'
  2. Enter the following IDS case parameters as shown in the figure below:

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


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


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

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

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.

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

Image Modified

Comparing 1D arrays between 2 shots

  1. Open the shot 52682

    Section
    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 '
    The plot should display as in the image below. Add plot to existing figure' and 'Figure0' in the attached submenushown submenu
    The plot should display as in the image below. 


Image Modified

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'
    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'

    Image Modified

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

Plotting 1D arrays 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. Right-click on the node 'ids.equilibrium.time_slice[0].profiles_1d.f'
  4. 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.

    Image Modified


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

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

...