spym.io package
Subpackages
Submodules
spym.io.load module
- spym.io.load.convert(filename, folder=None)[source]
Convert data from supported SPM file formats to NeXus/HDF5.
- Parameters:
filename – path to the SPM file.
folder – (optional) path for converted files. If not provided, converted files are placed in the same folder of the originals.
- Returns:
Nothing.
- spym.io.load.load(filename, scaling=True)[source]
Import data from common SPM file formats.
- Currently supported file formats are:
NeXus (.nx, .nxs). Package nxarray is needed.
RHK (.sm4).
Omicron Scala (.par).
- Parameters:
filename – path to the SPM file.
scaling – if True convert data to physical units (default), if False keep raw data.
- Returns:
xarray Dataset with data and metadata.