How afm-spm/afmreader works
AFMReader is a Python library that decodes AFM files into image arrays with pixel-to-nanometre scaling, and sometimes metadata or frame timestamps. Users can call a format-specific loader directly, or use the suffix-based LoadFile switchboard; that switchboard dispatches to the relevant decoder and returns the image and scaling (or a propagated channel error). Format readers cover the README’s supported formats, while shared binary/HDF5 helpers support several decoders. Relationships are limited to documented usage, shown dispatch calls, and source-index references; unsampled implementation details are not inferred.
Main entry points: general_loader.py Suffix dispatcher · io.py Binary and HDF5 I/O · asd.py ASD reader · gwy.py GWY reader
Components 13
Loading API
- Suffix dispatcher
AFMReader/general_loader.py
Format Readers
- ASD reader
AFMReader/asd.py - GWY reader
AFMReader/gwy.py - H5-JPK reader
AFMReader/h5_jpk.py - IBW reader
AFMReader/ibw.py - JPK reader
AFMReader/jpk.py - SPM reader
AFMReader/spm.py - STP reader
AFMReader/stp.py - TOP reader
AFMReader/top.py - TopoStats reader
AFMReader/topostats.py
Shared Utilities
- Binary and HDF5 I/O
AFMReader/io.py - Logging setup
AFMReader/logging.py
Other components
- Python caller
Connections 16
- Python caller → Suffix dispatcher: loads by suffix
- Suffix dispatcher → ASD reader: dispatches to
AFMReader/general_loader.py - Suffix dispatcher → GWY reader: dispatches to
AFMReader/general_loader.py - Suffix dispatcher → H5-JPK reader: dispatches to
AFMReader/general_loader.py - Suffix dispatcher → IBW reader: dispatches to
AFMReader/general_loader.py - Suffix dispatcher → JPK reader: dispatches to
AFMReader/general_loader.py - Suffix dispatcher → SPM reader: dispatches to
AFMReader/general_loader.py - Suffix dispatcher → STP reader: dispatches to
AFMReader/general_loader.py - Suffix dispatcher → TOP reader: dispatches to
AFMReader/general_loader.py - Suffix dispatcher → TopoStats reader: dispatches to
AFMReader/general_loader.py - ASD reader → Binary and HDF5 I/O: reads with
AFMReader/asd.py - GWY reader → Binary and HDF5 I/O: reads with
AFMReader/gwy.py - JPK reader → Binary and HDF5 I/O: reads with
AFMReader/jpk.py - STP reader → Binary and HDF5 I/O: reads with
AFMReader/stp.py - TOP reader → Binary and HDF5 I/O: reads with
AFMReader/top.py - TopoStats reader → Binary and HDF5 I/O: unpacks with
AFMReader/topostats.py