Skip to main content

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 attributes.

# 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')

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

mulfile-0.2.0.tar.gz (6.7 kB view details)

Uploaded Source

Built Distribution

mulfile-0.2.0-py3-none-any.whl (7.2 kB view details)

Uploaded Python 3

File details

Details for the file mulfile-0.2.0.tar.gz.

File metadata

  • Download URL: mulfile-0.2.0.tar.gz
  • Upload date:
  • Size: 6.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.1.14 CPython/3.9.13 Darwin/21.6.0

File hashes

Hashes for mulfile-0.2.0.tar.gz
Algorithm Hash digest
SHA256 654f0aaeafef53a446057d034420bad8b6e221616066fef5263eb9cf725e32d8
MD5 31b7f0cdfb93e1111577338af62c5c7c
BLAKE2b-256 56262ae11c9211638019da30c4e02674b60a59949f554809ab2d27263aa0a9b0

See more details on using hashes here.

File details

Details for the file mulfile-0.2.0-py3-none-any.whl.

File metadata

  • Download URL: mulfile-0.2.0-py3-none-any.whl
  • Upload date:
  • Size: 7.2 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.1.14 CPython/3.9.13 Darwin/21.6.0

File hashes

Hashes for mulfile-0.2.0-py3-none-any.whl
Algorithm Hash digest
SHA256 cff50ea1ea3968a43c21d46513ce3710d5e5ce16c55003313be6f3545abdf7cd
MD5 83b3055543aa7d2dce3880d7b8aca192
BLAKE2b-256 5a691059db5075ffe5f1f690915912dcea91c337fc115bceb592cc7dacffba7f

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page