If you need to work with the Igor Program, arpespythontools
provides a way to
import and export data in Igor text (.itx
) format. import_itx
and
export_itx
functions can import and export 1-dimensionl, 2-dimensionl, and
3-dimensionl data/wave, respectively.
```python showLineNumbers
import arpespythontools as arp
import itx file
data, x = arp.import_itx('path/data.itx') # 1D wave data, x, y = arp.import_itx('path/data.itx') # 2D wave data, x, y, z = arp.import_itx('path/data.itx') # 3D wave
export itx file
arp.export_itx("path/data.itx", data, x=[], y=[], z =[], wave_name='wave',\
x_label='x-label', y_label='y-label', z_label='z-label')
``
While importing,
datacontains the 1D, 2D or 3D data.
x,
y,
zare the
corresponding axis scaling. While exporting, axis scaling is optional. In case
x,
y,
zis not provided the default scaling (
DimOffset=0, and
DimDelta=1`) would be applied. Similarly, you can provide wave name, and axis
labels (optional) as well.
:::note
If you need to read Igor Binary Waves (.ibw
format), you can check out this
Python implementation: https://github.com/wking/igor.
:::