Miscellaneous
=============
**MITIM** can also be used to perform other tasks, such as:
.. contents::
:local:
:depth: 1
Interpret Tokamak equilibrium
-----------------------------
MITIM has a quick g-eqdsk file reader and visualizer that is based on the ``megpy`` package.
To open and plot a g-eqdsk file:
.. code-block:: python
from mitim_tools.gs_tools import GEQtools
g = GEQtools.MITIMgeqdsk(file)
g.plot()
It will plot results in a notebook-like plot with different tabs:
.. figure:: ./figs/GSnotebook.png
:align: center
:alt: GEQ_Notebook
:figclass: align-center
.. raw:: html
Note that the same can be achieved with the following alias:
.. code-block:: bash
mitim_plot_eq eq_file.geqdsk
Interpret input.gacode files
----------------------------
MITIM has a quick ``input.gacode`` file reader and visualizer.
To open and plot an ``input.gacode`` file:
.. code-block:: python
from mitim_tools.gacode_tools import PROFILEStools
p = PROFILEStools.gacode_state(file)
p.plot()
It will plot results in a notebook-like plot with different tabs:
.. figure:: ./figs/PROFILESnotebook.png
:align: center
:alt: PROFILES_Notebook
:figclass: align-center
.. raw:: html
Note that the same can be achieved with the following alias:
.. code-block:: bash
mitim_plot_gacode input.gacode