xicsrt_bragg
xicsrt.tools.xicsrt_bragg
A set of utility routines to load bragg reflection data files from several external applications including x0h, XOP and SHADOW.
Data will be returned in a standardized dictionary.
- read(filename, filetype=None)[source]
The main routine to read Bragg reflection data files.
This will switch between the various format specific routines based on the filetype parameter.
- Parameters:
filename (str) – The file to read.
- Keyword Arguments:
filetype (str) – The source of the given file. If not provided, the filetype will be guessed. Currently supported types are: ‘xop’, ‘x0h’.
- read_xop(filename)[source]
Read a data file from XOP and return a standard rocking-curve dict.
It is expected that the given file is diff_pat.dat file from XOP.
Private Members
- _guess_filetype(filename)[source]
- _read_xop__diff_pat_dat__data(filename)[source]
- _read_xop__diff_pat_dat__header(filename)[source]