SurfaceTopography
Read and analyze surface topographies with Python. This code implements basic classes for handling uniform and nonuniform surface topography data. It contains a rich set of import filters for experimental surface topography data. Surface topographies can be easily analyzed using standard (rms height, power spectrum, ...) and some special purpose (autocorrelation function, variable bandwidth analysis, ...) statistical techniques.
Quick Start
from SurfaceTopography import read_topography
# Read a topography file (format is auto-detected)
topography = read_topography('surface.opd')
# Get basic properties
print(f"Grid size: {topography.nb_grid_pts}")
print(f"Physical size: {topography.physical_sizes}")
print(f"RMS height: {topography.Sq()}")
# Compute the power spectral density (PSD)
q, psd = topography.power_spectrum_from_profile()
# Compute the autocorrelation function (ACF)
r, acf = topography.autocorrelation_from_profile()
# Plot the topography
import matplotlib.pyplot as plt
plt.pcolormesh(*topography.positions_and_heights())
plt.colorbar(label='Height')
plt.show()
Supported File Formats
SurfaceTopography reads more than 40 file formats of commercial surface profilometers and scanning probe microscopes (see the full list):
| Format | Description |
|---|---|
al3d |
Alicona AL3D files |
asc |
ASCII text files (generic) |
bcr |
BCR-STM files |
datx |
Zygo DATX files |
di |
Digital Instruments / Bruker AFM files |
ezd |
Nanosurf EZD files |
frt |
FRT profilometer files |
gwy |
Gwyddion GWY files |
h5 |
HDF5 files |
hgt |
NASA SRTM HGT elevation files |
ibw |
Igor Pro binary wave files (Asylum Research) |
jpk |
JPK Instruments files |
lext |
Olympus LEXT files |
mat |
MATLAB .mat files |
mdt |
NT-MDT (Solver, Ntegra) AFM files |
metropro |
Zygo MetroPro files |
mi |
Agilent / Molecular Imaging files |
mitutoyo |
Mitutoyo surface roughness files |
mnt |
Digital Surf Mountains MNT files |
nc |
NetCDF files |
nmm |
Nanomeasuring machine (NMM) files |
nms |
Nanofocus NMS files |
npy |
NumPy binary files |
npz |
NumPy array archives |
oir |
Olympus OIR files |
opd |
Wyko OPD files |
opdx |
Bruker Dektak OPDx files |
os3d |
Digital Metrology OmniSurf3D files |
plu |
Sensofar PLU files |
plux |
Sensofar PLUX files |
poir |
Olympus POIR (zip) files |
ps |
Park Systems TIFF files |
qep |
Mahr MarWin QEP profile archives |
sdf |
ISO 25178-71 SDF files |
sur |
Digital Surf SUR files |
tmd |
TrueMap TMD files |
vk |
Keyence VK files |
wsxm |
WSxM files |
x3p |
ISO 25178-72 X3P files |
xyz |
XYZ point cloud files |
zmg |
KLA Zeta ZMG files |
zon |
Keyence ZON files |
If you use this code, please cite:
- Jacobs, Junge, Pastewka, Surf. Topogr. Metrol. Prop. 5, 013001 (2017)
- Röttger et al., Surf. Topogr. Metrol. Prop. 10, 035032 (2022)
Documentation
This README file contains a brief introduction into the code. The full documentation can be found at https://contactengineering.github.io/SurfaceTopography/.
Installation
Detailed instructions for the installation are provided in the documentation.
The most basic configuration of SurfaceTopography installs all requirements autonomously: python3 -m pip install SurfaceTopography
If you need an editable install (e.g. for development purposes), make sure you disable build isolation:
python3 -m pip install --no-build-isolation -e .
You need to manually install ninja, meson-python, pytest, DiscoverVersion and numpy before:
python3 -m pip install ninja meson-python pytest DiscoverVersion numpy
MPI-parallel (domain-decomposed) topographies need the mpi extra, with mpi4py and muGrid compiled against your MPI library:
CC=mpicc CXX=mpicxx python3 -m pip install --no-binary mpi4py --no-binary muGrid SurfaceTopography[mpi]
Funding
Development of this project is funded by the European Research Council within Starting Grant 757343 and by the Deutsche Forschungsgemeinschaft within projects PA 2023/2 and EXC 2193.
Metadata
Release files for SurfaceTopography 1.27.1
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| surfacetopography-1.27.1.tar.gz | 1.5 MB | Without provenance | Details for surfacetopography-1.27.1.tar.gz |
Built distributions (wheels)
Total release size: 57.3 MB
Release files / surfacetopography-1.27.1.tar.gz
| Download URL | surfacetopography-1.27.1.tar.gz |
|---|---|
| Size | 1.5 MB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
8fc88b93b33964e3b179e624a4823a89bf3060085870ef82be207e95546b5dd2
|
|
BLAKE2b-256 checksum How to use checksums |
9240a7a9e1b0d3e7434293ef8d6a6eb465bb9f86b106f78e2955d1847040699d
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/7.0.0 CPython/3.13.16
|
Release files / surfacetopography-1.27.1-cp314-cp314-win_amd64.whl
| Download URL | surfacetopography-1.27.1-cp314-cp314-win_amd64.whl |
|---|---|
| Size | 3.5 MB |
| Tags | CPython 3.14 Windows x86-64 |
|
SHA-256 checksum How to use checksums |
34cdaf7eb23ef98e87e08007c6c88db248d4711b5695f208406fb19608d556cb
|
|
BLAKE2b-256 checksum How to use checksums |
a11a2b17e1d680f0bc5219a80e31aae9edc4d1eb44c324e2a6dd9aa6813113b9
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/7.0.0 CPython/3.15.1
|
Release files / surfacetopography-1.27.1-cp314-cp314-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl
| Download URL | surfacetopography-1.27.1-cp314-cp314-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl |
|---|---|
| Size | 2.6 MB |
| Tags | CPython 3.14 Linux glibc 2.27+ x86-64 Linux glibc 2.28+ x86-64 |
|
SHA-256 checksum How to use checksums |
612f54cf933b427a06da6714999b4f6862774d960a0a8002f7b7de0faf14c8ef
|
|
BLAKE2b-256 checksum How to use checksums |
af4da152be83d75eb0c638ae18d87e4c98b8df1897de94bf2b047e2ced30806a
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/7.0.0 CPython/3.15.2
|
Release files / surfacetopography-1.27.1-cp314-cp314-manylinux_2_26_aarch64.manylinux_2_28_aarch64.whl
| Download URL | surfacetopography-1.27.1-cp314-cp314-manylinux_2_26_aarch64.manylinux_2_28_aarch64.whl |
|---|---|
| Size | 2.6 MB |
| Tags | CPython 3.14 Linux glibc 2.26+ ARM64 Linux glibc 2.28+ ARM64 |
|
SHA-256 checksum How to use checksums |
e5599986e5ba50f72e9c9c47813bfb5d40b1f8dcca87ae4323fa71626e7f4429
|
|
BLAKE2b-256 checksum How to use checksums |
fcc862342103296df779451e67e373ee505b99fcd1f02e4bbf3edf7179fc28d2
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/7.0.0 CPython/3.15.1
|
Release files / surfacetopography-1.27.1-cp314-cp314-macosx_14_0_arm64.whl
| Download URL | surfacetopography-1.27.1-cp314-cp314-macosx_14_0_arm64.whl |
|---|---|
| Size | 2.5 MB |
| Tags | CPython 3.14 macOS 14.0+ ARM64 |
|
SHA-256 checksum How to use checksums |
c4ec927231349991a46ff36e0d1c98183a09d81d74a064402436af14b1c83bf7
|
|
BLAKE2b-256 checksum How to use checksums |
abb942f3e89853f8efb0eb1b5dcdf196a47c3eada89b36558c226baa9fbcfd61
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/7.0.0 CPython/3.15.2
|
Release files / surfacetopography-1.27.1-cp313-cp313-win_amd64.whl
| Download URL | surfacetopography-1.27.1-cp313-cp313-win_amd64.whl |
|---|---|
| Size | 3.5 MB |
| Tags | CPython 3.13 Windows x86-64 |
|
SHA-256 checksum How to use checksums |
a2fd8f697872479ab0b2e8f3b1f44a678c8e8e8f2dc24a4ac3155ad3cf44e07e
|
|
BLAKE2b-256 checksum How to use checksums |
fbc8302cb94c03e50e69879df3368df2b586361f4ea0a541e2791cbea9786832
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/7.0.0 CPython/3.15.1
|
Release files / surfacetopography-1.27.1-cp313-cp313-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl
| Download URL | surfacetopography-1.27.1-cp313-cp313-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl |
|---|---|
| Size | 2.6 MB |
| Tags | CPython 3.13 Linux glibc 2.27+ x86-64 Linux glibc 2.28+ x86-64 |
|
SHA-256 checksum How to use checksums |
754db04d51ffb87862a25a689092d6f2249ee923caeb30d496302749840cd16b
|
|
BLAKE2b-256 checksum How to use checksums |
4fc2dbc214ae528b6a02d815967e8145b581492ec2df0ab566abea2c4af29966
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/7.0.0 CPython/3.15.2
|
Release files / surfacetopography-1.27.1-cp313-cp313-manylinux_2_26_aarch64.manylinux_2_28_aarch64.whl
| Download URL | surfacetopography-1.27.1-cp313-cp313-manylinux_2_26_aarch64.manylinux_2_28_aarch64.whl |
|---|---|
| Size | 2.6 MB |
| Tags | CPython 3.13 Linux glibc 2.26+ ARM64 Linux glibc 2.28+ ARM64 |
|
SHA-256 checksum How to use checksums |
2567c82ec89d60dd548785bbc3ac6060fb11655d8e0acf779bd1bd4f0117f1c0
|
|
BLAKE2b-256 checksum How to use checksums |
374477061b42e26894a6e4b562e7f1e5824963ef35949dad30d81446c6a964be
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/7.0.0 CPython/3.15.1
|
Release files / surfacetopography-1.27.1-cp313-cp313-macosx_14_0_arm64.whl
| Download URL | surfacetopography-1.27.1-cp313-cp313-macosx_14_0_arm64.whl |
|---|---|
| Size | 2.5 MB |
| Tags | CPython 3.13 macOS 14.0+ ARM64 |
|
SHA-256 checksum How to use checksums |
9a46645114493bb3d904a3ac52611aa93a625706b6e59d5a2f58806943a6e546
|
|
BLAKE2b-256 checksum How to use checksums |
1a85b44f4ca2f20785f8b48b9f569e9e060c54f1750ff1eb31b08a3151c8af2d
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/7.0.0 CPython/3.15.2
|
Release files / surfacetopography-1.27.1-cp312-cp312-win_amd64.whl
| Download URL | surfacetopography-1.27.1-cp312-cp312-win_amd64.whl |
|---|---|
| Size | 3.5 MB |
| Tags | CPython 3.12 Windows x86-64 |
|
SHA-256 checksum How to use checksums |
616cae00c31a109415916e4aa03cc86b58eb96fb1eb3c1338031f501ac1fbd09
|
|
BLAKE2b-256 checksum How to use checksums |
962bf8f7dc808f0581e70317ac240753e595dc14ab20d47b3dab78ef11b9a5e2
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/7.0.0 CPython/3.15.2
|
Release files / surfacetopography-1.27.1-cp312-cp312-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl
| Download URL | surfacetopography-1.27.1-cp312-cp312-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl |
|---|---|
| Size | 2.6 MB |
| Tags | CPython 3.12 Linux glibc 2.27+ x86-64 Linux glibc 2.28+ x86-64 |
|
SHA-256 checksum How to use checksums |
74f151039949b25265ff22aa067c4f5aea6ab29490155797815f1be5dc1a5dca
|
|
BLAKE2b-256 checksum How to use checksums |
7c0a0ed4d28c54b7d87dae0b8bb054fe4e27e2e13c16f77c25cdfaa5e0b084ac
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/7.0.0 CPython/3.15.1
|
Release files / surfacetopography-1.27.1-cp312-cp312-manylinux_2_26_aarch64.manylinux_2_28_aarch64.whl
| Download URL | surfacetopography-1.27.1-cp312-cp312-manylinux_2_26_aarch64.manylinux_2_28_aarch64.whl |
|---|---|
| Size | 2.6 MB |
| Tags | CPython 3.12 Linux glibc 2.26+ ARM64 Linux glibc 2.28+ ARM64 |
|
SHA-256 checksum How to use checksums |
f67dff278a9e017ef8a51c5badb4e2562e786f83a892176fceafc362e5535ad9
|
|
BLAKE2b-256 checksum How to use checksums |
feca3436ac61fd728973e546af22a66e3618a22c6ef281edd7fdc9b8f5c8fdcc
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/7.0.0 CPython/3.15.1
|
Release files / surfacetopography-1.27.1-cp312-cp312-macosx_14_0_arm64.whl
| Download URL | surfacetopography-1.27.1-cp312-cp312-macosx_14_0_arm64.whl |
|---|---|
| Size | 2.5 MB |
| Tags | CPython 3.12 macOS 14.0+ ARM64 |
|
SHA-256 checksum How to use checksums |
4ca719afddf101dc2ad04681a98975ffc40650697dba302bde792dc7315a81c8
|
|
BLAKE2b-256 checksum How to use checksums |
a9fbda0045339956bba39a390a03fc7176a7054c5fb01059df73854aab2c7506
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/7.0.0 CPython/3.15.2
|
Release files / surfacetopography-1.27.1-cp311-cp311-win_amd64.whl
| Download URL | surfacetopography-1.27.1-cp311-cp311-win_amd64.whl |
|---|---|
| Size | 3.5 MB |
| Tags | CPython 3.11 Windows x86-64 |
|
SHA-256 checksum How to use checksums |
6942b172c3dfcfbd74aec8771b1993ace1d16a6e641c314ff96f0c09769a43b2
|
|
BLAKE2b-256 checksum How to use checksums |
1e9bec475f778cc31df82f5c72daa386d4e96ec53b01c0a9238977165eb1f4a6
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/7.0.0 CPython/3.15.2
|
Release files / surfacetopography-1.27.1-cp311-cp311-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl
| Download URL | surfacetopography-1.27.1-cp311-cp311-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl |
|---|---|
| Size | 2.6 MB |
| Tags | CPython 3.11 Linux glibc 2.27+ x86-64 Linux glibc 2.28+ x86-64 |
|
SHA-256 checksum How to use checksums |
cfed1866c86bca5bd7a8cfb2de3999c317a59386c9fe62ee7d134107d1b54794
|
|
BLAKE2b-256 checksum How to use checksums |
a8b76f924d134fe6149ae89c3d5b169ada448d7e310c6be570987c0a85b6467b
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/7.0.0 CPython/3.15.1
|
Release files / surfacetopography-1.27.1-cp311-cp311-manylinux_2_26_aarch64.manylinux_2_28_aarch64.whl
| Download URL | surfacetopography-1.27.1-cp311-cp311-manylinux_2_26_aarch64.manylinux_2_28_aarch64.whl |
|---|---|
| Size | 2.6 MB |
| Tags | CPython 3.11 Linux glibc 2.26+ ARM64 Linux glibc 2.28+ ARM64 |
|
SHA-256 checksum How to use checksums |
ac80def8bd1d477e8a3d7195beb4cb0a4b81d378d21f9336903a34ed984865c8
|
|
BLAKE2b-256 checksum How to use checksums |
a25c5c6237b20fd1918d16a0dbc56247a22f3c7cc069a9037b358b04fdd19e8f
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/7.0.0 CPython/3.15.1
|
Release files / surfacetopography-1.27.1-cp311-cp311-macosx_14_0_arm64.whl
| Download URL | surfacetopography-1.27.1-cp311-cp311-macosx_14_0_arm64.whl |
|---|---|
| Size | 2.5 MB |
| Tags | CPython 3.11 macOS 14.0+ ARM64 |
|
SHA-256 checksum How to use checksums |
d063c7e19d88a5d9a7655e61d2bfaaaceae5beab41e731d9bf729c2b4748c856
|
|
BLAKE2b-256 checksum How to use checksums |
84be22107da4fa63c4de99865ee340acd30bfb82c06bcbdd3b6bc6975cfd783b
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/7.0.0 CPython/3.15.2
|
Release files / surfacetopography-1.27.1-cp310-cp310-win_amd64.whl
| Download URL | surfacetopography-1.27.1-cp310-cp310-win_amd64.whl |
|---|---|
| Size | 3.5 MB |
| Tags | CPython 3.10 Windows x86-64 |
|
SHA-256 checksum How to use checksums |
a3c3f0dec981b138e632c641196efef6d8bd55db8e7038134bd2f76b8eea6366
|
|
BLAKE2b-256 checksum How to use checksums |
10512920b1938638b3d22ae58d0a5c0d7be4099ba77124b447e5f481768f390a
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/7.0.0 CPython/3.15.2
|
Release files / surfacetopography-1.27.1-cp310-cp310-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl
| Download URL | surfacetopography-1.27.1-cp310-cp310-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl |
|---|---|
| Size | 2.6 MB |
| Tags | CPython 3.10 Linux glibc 2.27+ x86-64 Linux glibc 2.28+ x86-64 |
|
SHA-256 checksum How to use checksums |
8a848000a27847f2bfdf5a1439ab004d0d7e3505ce8b69e5e23a57f1130eb528
|
|
BLAKE2b-256 checksum How to use checksums |
2378171c301cb7f8178208944eed6a458741a5f556f90a7fb73a2601ea4aee03
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/7.0.0 CPython/3.15.1
|
Release files / surfacetopography-1.27.1-cp310-cp310-manylinux_2_26_aarch64.manylinux_2_28_aarch64.whl
| Download URL | surfacetopography-1.27.1-cp310-cp310-manylinux_2_26_aarch64.manylinux_2_28_aarch64.whl |
|---|---|
| Size | 2.6 MB |
| Tags | CPython 3.10 Linux glibc 2.26+ ARM64 Linux glibc 2.28+ ARM64 |
|
SHA-256 checksum How to use checksums |
dc76ace7afb63f9a1ffa82ea5b08ba8e777ad9c338b4052eef9fda9844feab78
|
|
BLAKE2b-256 checksum How to use checksums |
dbee2b6969747d14f448bc7cc45f3d3235ded42e1301d91539a98ab517df3e3c
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/7.0.0 CPython/3.15.1
|
Release files / surfacetopography-1.27.1-cp310-cp310-macosx_14_0_arm64.whl
| Download URL | surfacetopography-1.27.1-cp310-cp310-macosx_14_0_arm64.whl |
|---|---|
| Size | 2.5 MB |
| Tags | CPython 3.10 macOS 14.0+ ARM64 |
|
SHA-256 checksum How to use checksums |
b39bea45934d9177420ccde7b37c2c7c0dda3463b14158668a9df9a01d828dff
|
|
BLAKE2b-256 checksum How to use checksums |
be7ce1efb5e102ff15fb0c3675011cb928a118287546fef6bcf03ac0c3bbd8eb
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/7.0.0 CPython/3.15.2
|
Security for SurfaceTopography 1.27.1
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.