TopoStats Modules
For decoding and loading .topostats (HDF5 format) AFM file format into Python Nympy arrays.
load_topostats(file_path)
Extract image and pixel to nm scaling from the .topostats (HDF5 format) file.
Parameters:
Name | Type | Description | Default |
---|---|---|---|
file_path
|
Path or str
|
Path to the .topostats file. |
required |
Returns:
Type | Description |
---|---|
tuple(ndarray, float)
|
A tuple containing the image, its pixel to nm scaling factor and the data dictionary containing all the extra image data and metadata in dictionary format. |
Raises:
Type | Description |
---|---|
OSError
|
If the file is not found. |
Examples: