tcv.diag.dmpx module

XTOMO diagnostics data

Written by Nicola Vianello

class tcv.diag.dmpx.Top[source]

Bases: object

Class to load and analyze the data contained in the top chamber of DMPX. All the methods described as classmethod and so they can be called directly .. method:: read

Read the data calibrated in the same way as mpxdata matlab routine. It can read also single chords, accordingly to the call to Top
gains()[source]

Return the gains used for the calibration of the chors

geo()[source]

return the geometrical position of the chords

spectrogram()

It create and eventually plot the spectrograms(s)

static calibration_data(name)[source]
static channels(shot, los=None)[source]
Parameters:as fromshot. (Same) –
Returns:
  • String array containing the channels, already sorted out according to
  • shot number
static fromshot(shot, los=None)[source]

Return the calibrated DMPX signals.

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:

  • An xarray.DataArray containing the data, time basis and all the
  • information in dictionary

Examples

>>> from tcv.diag.dmpx import Top
>>> data = Top.fromshot(50730, los=32)
static gains(shot, los=None)[source]

Provide the proper calibration factor for the signals so that can obtain directly the calibration used call:

Calibration, Gain = Top.gains()
static geo(shot)[source]
Parameters:Input – shot: shot number
Returns:
Return type:The radial and vertical coordinates of the LoS

Examples

In [1]: from tcv.diag.dmpx import Top In [2]: x, y = Top.geo(50766)