Standalone Usages¶
pynxtools-spm
is a tool for converting content from a raw data file and user provided data to the NeXus file according to the NeXus application definitions for SPM techniques.
One can use NOMAD (see how to upload in NOMAD documentation) research data management system (RMD) to upload the raw data files or command in terminal (needs pynxtools-spm
installed in your local Python environment, see installation guide) to convert the raw data files into NeXus file.
Convert Data¶
After installing pynxtools-spm
package, one can use the command line interface (CLI) to convert the raw data files into NeXus file. (see all available options by dataconverter --help
).
To convert the raw data files from various techniques, use a command similar to the following -
1. Command to convert a STS raw data file into NeXus file
$ dataconverter --nxdl NXsts --reader spm --output output.nxs eln_data.yaml nanonis_sts_file.dat config.json
2. Command to convert a STM raw data file into NeXus file
$ dataconverter --nxdl NXstm --reader spm --output output.nxs eln_data.yaml nanonis_stm_file.sxm config.json
Download and try with STM example files or visit the GitHub folder.
3. Command to convert a AFM raw data file into NeXus file
$ dataconverter --nxdl NXafm --reader spm --output output.nxs eln_data.yaml nanonis_afm_file.sxm config.json
Download and try with AFM example files or visit the GitHub folder.