Function adas.xxdata_35

def xxdata_35(file=None)

Reads an adf35 energy transmission filter file (EEDF) file and returns all of its contents in a dictionary.

Parameters

file : str
full name of ADAS adf35 file

Returns

fulldata : dict
contents of the adf35 file
    'file'       :  adf35 filename
    'edge'       :  array of energy edges
                      None, scalar or array(nedges)
    'energy'     :  energy points of tabulation (eVV)
                      array(nenergy)
    'trans'      :  log10 of transmission fraction
                      array(nenergy)

Notes

Pure python routine.

References

ADAS manual description of adf35: http://www.adas.ac.uk/man/appxa-35.pdf

Version History

  • Martin O'Mullane, 17-07-2018

    • First version
  • Martin O'Mullane, 23-11-2019

    • Use the adas readfile routine to read in file.
  • Martin O'Mullane, 10-08-2023

    • Determine the number of columns before reading data.

Example

A filter for the JET SXR diagnostic with a 250micron Be window and a Si-diode detector with a 100micron depth.

>>> import adas as adas
>>> file='/home/adas/adas/adf35/jet_filter.dat'
>>> fulldata = adas.xxdata_35(file)
>>> fulldata['edge']
array([111.6])
>>> fulldata['energy'][0:500:20]
array([1.00000e+01, 1.37840e+01, 1.89990e+01, 2.61870e+01, 3.60960e+01,
       4.97530e+01, 6.85770e+01, 9.45250e+01, 1.22190e+02, 1.68422e+02,
       2.32147e+02, 3.19983e+02, 4.41052e+02, 6.07930e+02, 8.37949e+02,
       1.15500e+03, 1.59201e+03, 2.12506e+03, 2.92911e+03, 4.03738e+03,
       5.56497e+03, 7.67054e+03, 1.05728e+04, 1.45731e+04, 2.00871e+04])
>>> 10.0**(fulldata['trans'][0:500:20])
array([1.00000000e-74, 1.00000000e-74, 1.00000000e-74, 1.00000000e-74,
       1.00000000e-74, 1.00000000e-74, 1.00000000e-74, 1.00000000e-74,
       1.00000000e-74, 1.00000000e-74, 1.00000000e-74, 1.00000000e-74,
       1.00000000e-74, 3.38766143e-53, 3.08006584e-21, 1.21031942e-08,
       9.24102191e-04, 5.55737880e-02, 3.44254797e-01, 6.79250552e-01,
       8.58499408e-01, 7.75496782e-01, 4.73282014e-01, 2.21809427e-01,
       9.07925053e-02])