ITER-specific tutorial

How to access the ToFu library

The plugin for ITER is hosted on the theory (Tok) clusters of the Max-Planck Institute for Plasma Physics (IPP) in Garching. If you have an account in IPP, you can then connect to one of the tok clusters where the library is hosted, via the command:

>>> ssh toki01

Enter your password and then you need to load the module in the terminal

>>> module load tofu

You may need to load other modules on which ToFu depends (see the dependencies).

You can then start a ipython console and load the AUG plugin for ToFu:

>>> import tofu.plugins.ITER as tfITER

How to load existing geometry

You can now load the geometry that was already computed and stored for some diagnostics (only the Soft X-Ray diagnostic at this date). In general loading the geometry means using a method of the plugin that will load and return a list of tofu.geom.GDetect instances. On AUG, each tofu.geom.GDetect instance corresponds to a camera head. Since the geometry (position, aperture size...) of each camera head may change in time (changes are sometimes implemented between experimental campaigns), you can specify a shot number and the plugin will return the latest geometry that was computed before that shot number (only a few have been computed so far, but more will come).

>>> LGD = tfAUG.SXR.geom.load(shot=31801)

This command returns a list of tofu.geom.GDetect instances with the latest geometry computed before shot 31801.