Gwyddion – Free SPM (AFM, SNOM/NSOM, STM, MFM, …) data analysis software


Most of interesting Gwyddion functions are provided as software libraries that you can use in your own programs – SPM related or not (providing that you comply with the GNU General Public License of course). Most of the functions are related to one- and two-dimensional data processing and visualization.

Below we list a few known programs written using Gwyddion libraries:

See also gwydump which is completely independent of Gwyddion, however, it works with Gwyddion files.

If you want to write a Gwyddion-independent program working with Gwyddion files consider using libgwyfile, a standalone, portable and permissively licensed implementation of the file format.

Sample standalone module

Threshold-example is a sample non-trivial (with a GUI) standalone module that can serve as a base for your modules. So it is not a separate program, it lives inside Gwyddion and is invoked from within Gwyddion.

The module compiles both on GNU/Linux and cross-compiles for MS Windows. Please see the included README file for detailed instructions.

Source code tarball (xz): threshold-example-2.5.tar.xz2016-07-20223 kB
Source code tarball (gzip): threshold-example-2.5.tar.gz2016-07-20328 kB

Only the source code is provided as the module is not particularly useful as a data processing tool. Its point is to demonstrate how to build a standalone Gwyddion extension module.

threshold-example screenshot
Screenshot of threshold-example module dialog.


gwybatch is a quite simple standalone SPM batch data processing program written in C using Gwyddion libraries. It is command-line oriented and it does not anything very useful as-is, however, it shows how to load, process and save SPM files and you can replace the data processing part with something more interesting.

Source code tarball (bzip2): gwybatch.tar.bz22011-05-259.32 kB

See also the source code diretly in the Subversion repository.


gwyiew is a quite simple standalone SPM file viewer that makes use of Gwyddion libraries. Its primary purpose is to serve as a comprehensible example – its source code has only slightly over 200 lines.

It can display any SPM file Gwyddion can (except raw and pixmap files that have to imported manually to Gwyddion) and it supports multiple channels even though it only displays one at a time – use PageUp/PageDown to cycle through channels.

Since it is more useful as an example than a real application (although a quick SPM file viewer has certain utility), only the source code is published:

Source code tarball (bzip2): gwyiew-2.0.tar.bz22009-03-169.9 kB
Source code tarball (gzip): gwyiew-2.0.tar.gz2009-03-1610.5 kB

See also the source code diretly in the Subversion repository.

gwyiew screenshot
Screenshot of gwyiew showing a sample data file.

1.12 (yeti, 2015-04-24 19:23:52)
© David Nečas and Petr Klapetek

Home Download News Features Screenshots Documentation Communicate Participate Resources Applications Site Map

Valid XHTML 1.0 Valid CSS