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’.