playnano.io.formats package¶
Submodules¶
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_h5jpk module¶
Module to decode and load .h5-jpk 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_h5jpk.apply_z_unit_conversion(images: ndarray, channel_group: Group, channel: str = 'height_trace') ndarray[source]¶
Apply z unit conversion to nanometers if needed, or guess if unknown.
- playnano.io.formats.read_h5jpk.load_h5jpk(file_path: Path | str, channel: str, flip_image: bool = True) AFMImageStack[source]¶
Load image stack from a JPK .h5-jpk file, scaled to nanometers.
The images are loaded, reshaped into frames, and have timestamps generated.
- Parameters:
- Returns:
Loaded AFM image stack with metadata and per-frame info.
- Return type:
playnano.io.formats.read_jpk_folder module¶
Module to load .jpk AFM data files from a folder into Python NumPy arrays.
Files contained within the same folder are read together. Files read with the height data in nm.
- playnano.io.formats.read_jpk_folder.load_jpk_folder(folder_path: Path | str, channel: str, flip_image: bool = True) AFMImageStack[source]¶
Load an AFM video from a folder of individual .jpk image files.
AFMReader converts “height”, “measuredHeight” and “amplitude” channels to nm.
- Parameters:
- Returns:
Loaded AFM image stack with metadata and per-frame info.
- Return type:
playnano.io.formats.read_spm_folder module¶
Placeholder for a functional script to load a folder containing .spm frames.
- playnano.io.formats.read_spm_folder.load_spm_folder(folder_path: Path | str, channel: str) AFMImageStack[source]¶
Load an AFM video from a folder of individual .spm image files.
- Parameters:
- Returns:
Loaded AFM image stack with metadata and per-frame info.
- Return type:
Module contents¶
Public package initialization.