Getting started¶
Installation¶
To install afmformats, use one of the following methods (the package dependencies will be installed automatically):
Basic Usage¶
In [1]: import afmformats
In [2]: dslist = afmformats.load_data("data/force-save-example.jpk-force")
# dslist is a list of force-distance curves
In [3]: dslist
Out[3]: [<AFMForceDistance 'data/force-save-example.jpk-force'[0] at 0x7fd6e62073d0>]
# available data columns of the first curve
In [4]: dslist[0].columns
Out[4]: ['force', 'height (measured)', 'height (piezo)', 'segment', 'time']
In [5]: dslist[0]["force"]
Out[5]:
array([-6.56678981e-10, -6.64172230e-10, -6.79510911e-10, ...,
-7.61449435e-10, -7.68909858e-10, -7.58163174e-10])
Supported file formats¶
All supported file formats are listed in the table below. If you are interested in other file formats, please create a new issue.
Format introduced by |
Description |
Extension |
Loader |
---|---|---|---|
AFM workshop |
comma-separated values |
.csv |
|
afmformats |
HDF5-based |
.h5 |
|
Asylum Research |
binarywave |
.ibw |
|
JPK Instruments |
binary FD data |
.jpk-force |
|
JPK Instruments |
binary QMap data |
.jpk-force-map |
|
JPK Instruments |
binary QMap data |
.jpk-qi-data |
|
JPK Instruments |
binary QMap data |
.jpk-qi-series |
|
afmformats |
tab-separated values |
.tab |
|
NT-MDT Spectrum Instruments |
exported by NT-MDT Nova |
.txt |
|
AFM workshop |
QMAP as zipped comma-separated values |
.zip |