spym.io
¶
Subpackages¶
Submodules¶
Package Contents¶
Functions¶
load |
|
convert (filename, folder=None) |
Convert data from supported SPM file formats to NeXus/HDF5. |
-
spym.io.
load
(filename, scaling=True)¶ Import data from common SPM file formats.
- Currently supported file formats are:
- NeXus (.nx, .nxs). Package nxarray is needed.
- RHK (.sm4).
- Omicron Scala (.par).
- Args:
- 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.
-
spym.io.
convert
(filename, folder=None)¶ Convert data from supported SPM file formats to NeXus/HDF5.
- Args:
- 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.