SciFiReaders.readers.microscopy.spm.afm.base_utilsΒΆ

Created on Fri May 25 16:04:34 2016 @author: Suhas Somnath

Ported to SciFireaders on Fri Dec 10 at 16:00 2021

Functions

read_binary_data

Reads numeric data encoded in binary files. Uses instructions such as offset, length and precision :param file_path: :type file_path: str :param offset: Byte offset into the file :type offset: uint :param num_bytes: Number of bytes to read from the offset :type num_bytes: uint :param bytes_per_data_point: Precision of stored data. Currently accounting only for half-precision (16 bit / 2 byte) and full precision (32 bit / 4 byte) data :type bytes_per_data_point: uint.