SpectraRay Import/Export helpers

A helper class to load data from SpectraRay ASCII Files. It only supplies a rundimentary loading of standard psi/delta values and misses some other features.

class elli.spectraray.SpectraRay(path)[source]

Helper class to load spectraray ascii files into pyEllis pandas format.

loadDispersionTable(fname)[source]

Load a dispersion table from a ascii file in the spectraray materials ascii format. This only accounts for tabulated dielectric function data. Spectraray also stores dispersion data in other formats, but this function is not able to read these other formats.

Parameters

fname (str) – The filename of the spectraray ascii file.

Returns

A dispersion class containing the tabulated data.

Return type

TableEpsilon

static read_mmatrix(fname, decimal='.')[source]

Read a mueller matrix spectraray ascii file. Only reads the first entry and does not support reading multiple angles. For multiple angles you have to save the data in multiple files.

Parameters
  • fname (str) – Filename of the measurement ascii file.

  • decimal (str, optional) – Decimal separator in the datafile. Defaults to “.”.

Returns

DataFrame containing the psi/delta data in the format to be further processes inside pyElli.

Return type

pd.DataFrame

static read_psi_delta_file(fname, decimal='.')[source]

Read a psi/delta spectraray ascii file. Only reads the first entry and does not support reading multiple angles. For multiple angles you have to save the data in multiple files.

Parameters
  • fname (str) – Filename of the measurement ascii file.

  • decimal (str, optional) – Decimal separator in the datafile. Defaults to “.”.

Returns

DataFrame containing the psi/delta data in the format to be further processes inside pyElli.

Return type

pd.DataFrame

static read_rho(fname, decimal='.')[source]

Read a psi/delta spectraray ascii file and converts it to rho values. Only reads the first entry and does not support reading multiple angles. For multiple angles you have to save the data in multiple files.

Parameters
  • fname (str) – Filename of the measurement ascii file.

  • decimal (str, optional) – Decimal separator in the datafile. Defaults to “.”.

Returns

DataFrame containing the rho data in the format to be further processes inside pyElli.

Return type

pd.DataFrame