playnano.io.formats.read_asd module

Module to decode and load .asd high speed AFM data files into Python NumPy arrays.

Files containing multiple image frames are read together. Converts the height data into nm from another metric unit (e.g. m).

playnano.io.formats.read_asd.load_asd_file(file_path: Path | str, channel: str) AFMImageStack[source]

Load image stack from an .asd file scaled to nanometers.

Parameters:
  • file_path (Path | str) – Path to the .asd file.

  • channel (str) – Channel to extract.

Returns:

Loaded AFM image stack with metadata and per-frame info.

Return type:

AFMImageStack