Python library to read .mul and .flm files
Project description
Mulfile is a Python library for reading .mul and .flm files, acquired by the scanning tunneling microscopy (STM) software “SpecsProbe.exe”, which is used with the SPM 150 Aarhus by SPECS.
Installing
Installation via pip:
$ pip install mulfile
Example Usage
import mulfile as mul
# load a mul or flm file
stm_images = mul.load('path/to/mulfile.mul')
This returns all STM-images and their metadata as a list-like object. Thus, it is possible to access images by indexing and slicing.
# get the first STM-image
image_1 = stm_images[0]
# get images 1 to 5
images = stm_images[0:5]
Single STM-images are stored in objects with their image data (2D numpy array) and metadata as properties.
# get the image data for image_1
image_1.img_data
# get the bias voltage for image_1
image_1.bias
It is also possible to save one or multiple images in the native file format of gwyddion (.gwy)
# save the complete mul-file as a gwyddion file
stm_images.save_gwy('output.gwy')
Development Status
STM-images, together with the corresponding metadata, are fully supported in both .mul and .flm files. Pointscans are not supported yet.
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
File details
Details for the file mulfile-0.1.0.tar.gz
.
File metadata
- Download URL: mulfile-0.1.0.tar.gz
- Upload date:
- Size: 6.1 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.5.0 importlib_metadata/4.8.2 pkginfo/1.7.1 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.9.5
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 8ad5f7b59acae096f9a1b92092ab5c60ff779a03f84a69cc7c5c9912e30ae270 |
|
MD5 | fd36f2ef85f6445aab091fb40e3fc690 |
|
BLAKE2b-256 | a83eaa702453fb090e1cd0030b49b8464fd58f0a8b70b7503e00c25d9faa4331 |
File details
Details for the file mulfile-0.1.0-py3-none-any.whl
.
File metadata
- Download URL: mulfile-0.1.0-py3-none-any.whl
- Upload date:
- Size: 6.7 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.5.0 importlib_metadata/4.8.2 pkginfo/1.7.1 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.9.5
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | b886342fd889938d8731fb89eada41d069be8f9a9d05c537353af317f8fdc1aa |
|
MD5 | afac86a12ebab9123d07e19a44fe8960 |
|
BLAKE2b-256 | 307f8c13405bb122ccfc255a6e1da2db50fc1f7992542b7cdbc0b7d9ba11f9b3 |