tcv.diag.xtomo module

XTOMO diagnostics data

Written by Nicola Vianello

class tcv.diag.xtomo.XtomoCamera[source]

Bases: object

Load single XtomoCamera with appropriate LoS chosen eventually diagnostic analysis. All the methods are defined as staticmethods so they can be called without instances

static calibration_data(shot)[source]
static channels(shot, camera, los=None)[source]

Provide the names of the channel chosen in the init action

Parameters:
  • shot (int or MDSConnection) – Shot number or connection instance
  • camera (int) – Number of the XTOMO camera
  • los (int or sequence of ints) – Optional argument with lines of sight (LoS) of the chosen camera. If None, it loads all the 20 channels
Returns:

Return type:

Array of strings with the channel names

static fromshot(shot, camera, los=None)[source]

Return the calibrated signal of the XtomoCamera LoS chosen.

Parameters:
  • shot (int or MDSConnection) – Shot number or connection instance
  • camera (int) – Number of the XTOMO camera
  • los (int or sequence of ints) – Optional argument with lines of sight (LoS) of the chosen camera. If None, it loads all the 20 channels
Returns:

Return type:

Calibrated signals XTOMO signals.

Examples

>>> import tcv
>>> cam = tcv.diag.XtomoCamera.fromshot(50766, camera=1, los=[4, 5])
static gains(shot, camera, los=None)[source]
Parameters:as XtomoCamera.fromshot() (Same) –
Returns:
Return type:The gains and the multiplication factor for the chosen camera and LoS
static geo(shot, camera, los=None)[source]
Parameters:as XtomoCamera.fromshot() (Same) –
Returns:
Return type:the x,y coordinates of the LoS for the chosen camera