Reading and writing

Read and write NeXus files in the ellipsometry standard. NeXus is a format originating from large beam line facitilies and is adapted for other smaller labratory experiments to supply an agreed standard for data sharing. For now only reading is supported but in the future there will also be a writer to store the whole optical model and fit inside the NeXus file.

elli.nexus.read_psi_delta(nxs_filename)[source]

Read a NeXus file containing Psi and Delta data.

Parameters

nxs_filename (str) – The filename of the NeXus file.

Raises

ValueError – Is raised when the data is not stored as psi / delta value.

Returns

Psi/Delta DataFrame. The index is a multiindex consisting of the angle of incidents as first column and the wavelength as second column.

Return type

pd.DataFrame

elli.nexus.read_rho(nxs_filename)[source]

Reads rho value from NeXus datafile. Currently, this works only with psi / delta representation in the NeXus file.

Raises

ValueError – Is raised when the data is not stored as psi / delta value.

Returns

DataFrame containing the measured data as imaginary rho value. The index is a multiindex consisting of the angle of incidents as first column and the wavelength as second column.

Return type

pd.DataFrame