SciFiReaders.readers.microscopy.spm.stm.nanonis_base.NanonisFile#
- class SciFiReaders.readers.microscopy.spm.stm.nanonis_base.NanonisFile(fname)[source]#
Bases:
objectBase class for Nanonis data files (grid, scan, point spectroscopy).
Handles methods and parsing tasks common to all Nanonis files.
- Parameters:
fname (str) – Name of Nanonis file.
Methods
Return header as a raw string.
set_data_formatFind first byte after end tag signalling end of header info.
- read_raw_header(byte_offset)[source]#
Return header as a raw string.
Everything before the end tag is considered to be part of the header. the parsing will be done later by subclass methods.
- start_byte()[source]#
Find first byte after end tag signalling end of header info.
Caveat, I believe this is the first byte after the end of the line that the end tag is found on, not strictly the first byte directly after the end tag is found. For example in Scan __init__, byte_offset is incremented by 4 to account for a ‘start’ byte that is not actual data.
- Returns:
Size of header in bytes.
- Return type: