nxxas_loader¶
Functions to load data from i06-1 and i10-1 beamline XAS measurements
create_xas_scan(name, energy, monitor, raw_signals, filename='', beamline='', scan_no=0, start_date_iso='', end_date_iso='', cmd='', default_mode='tey', pol='pc', sample_name='', temp=300, mag_field=0, pitch=0, element_edge=None)
¶
Function to load data from i06-1 and i10-1 beamline XAS measurements
Source code in mmg_toolbox/xas/nxxas_loader.py
find_similar_measurements(*filenames, temp_tol=1.0, field_tol=0.1)
¶
Find similar measurements based on energy, temperature and field.
Each measurement is compared to the first one in the list, using energy, temperature and field tolerances.
The polarisation is also checked to be similar (lh, lv or cl, cr).
Scans with different or missing metadata are removed from the list.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
filenames
|
str
|
List of filenames to compare |
()
|
temp_tol
|
Tolerance for temperature comparison (default: 0.1 K) |
1.0
|
|
field_tol
|
Tolerance for field comparison (default: 0.1 T) |
0.1
|
Returns:
| Type | Description |
|---|---|
list[SpectraContainer]
|
List of similar measurements |
Source code in mmg_toolbox/xas/nxxas_loader.py
load_from_nxs_using_hdfmap(filename, sample_name=None, element_edge=None)
¶
Load ScanContainer
Source code in mmg_toolbox/xas/nxxas_loader.py
load_xas_scans(*filenames, sample_name='')
¶
Load scans from a list of filenames, return {'pol': [scan1, scan2, ...]}