est.io package¶
Subpackages¶
est.io.io module¶
-
class
est.io.io.
InputType
¶ Bases:
silx.utils.enum.Enum
An enumeration.
-
dat_spectrum
= '*.dat'¶
-
hdf5_spectra
= '*.h5'¶
-
xmu_spectrum
= '*.xmu'¶
-
-
est.io.io.
get_xasproc
(h5_file, entry)¶ Return the list of all NXxasproc existing at the data_path level
- Parameters
h5_file (str) – hdf5 file
entry (str) – data location
- Returns
- Return type
list
-
est.io.io.
read_xas
(spectra_url, channel_url, config_url=None)¶ Read the given spectra url and the config url if any
- Parameters
str] spectra_url (Union[DataUrl,) –
config_url (DataUrl) –
- Returns
spectra, energy, configuration
-
est.io.io.
write_xas
(h5_file, entry, energy, mu, sample=None, start_time=None, data_path='/', title=None, definition=None, overwrite=True)¶ Write raw date in nexus format
- Parameters
h5_file (str) – path to the hdf5 file
entry (str) – entry name
sample – definition of the sample
energy – beam energy (1D)
mu – beam absorption (2D)
start_time –
data_path (str) –
title (str) – experiment title
definition (str) – experiment definition
- Type
- Type
numpy.ndarray
- Type
numpy.ndarray
-
est.io.io.
write_xas_proc
(h5_file, entry, process, data, processing_order, data_path='/', overwrite=True)¶ Write a xas
Process
into .h5- Parameters
h5_file (str) – path to the hdf5 file
entry (str) – entry name
process – process executed
data – process result data
processing_order – processing order of treatment
data_path – path to store the data
- Type
- Type
numpy.ndarray
- Type
int
- Type
str