IBW Modules
For decoding and loading .ibw AFM file format into Python Numpy arrays.
load_ibw(file_path, channel)
Load image from Asylum Research (Igor) .ibw files.
Parameters:
Name | Type | Description | Default |
---|---|---|---|
file_path
|
Path | str
|
Path to the .ibw file. |
required |
channel
|
str
|
The channel to extract from the .ibw file. |
required |
Returns:
Type | Description |
---|---|
tuple[ndarray, float]
|
A tuple containing the image and its pixel to nanometre scaling value. |
Raises:
Type | Description |
---|---|
FileNotFoundError
|
If the file is not found. |
ValueError
|
If the channel is not found in the .ibw file. |
Examples:
Load the image and pixel to nanometre scaling factor - 'HeightTracee' is the default channel name (the extra 'e' is not a typo!).
>>> from AFMReader.ibw import load_ibw
>>> image, pixel_to_nanometre_scaling_factor = load_ibw(file_path="./my_ibw_file.ibw", channel="HeightTracee")