tcvpy: Data access for the TCV experiment in Python

Release v0.2.0. (Installation)

This library provides easy access to experimental data of the Tokamak à Configuration Variable (TCV) in Python. Here’s a quick example how to get the plasma current in the latest experiment:

>>> import tcv
>>> conn = tcv.shot()
>>> ip = conn.tdi(r'tcv_ip()')
<xray.DataArray 'tcv_ip()' (dim_0: 16384)>
array([  2229.64526367,   2116.44580078,   2209.29492188, ...,
       -23054.24414062, -22913.67578125, -23049.359375  ], dtype=float32)
Coordinates:
  * dim_0    (dim_0) float32 -0.318 -0.3178 -0.3176 -0.3174 -0.3172  ...
Attributes:
    units: A
    query: tcv_ip()
    shot: 0

This example opens the latest TCV shot, executes a TDI query and returns an xray DataArray.

API documentation

If you are looking for information on a specific function, class or method, this part of the documentation is for you.