xylib is a portable C++ library for reading files that contain x-y data from powder diffraction, spectroscopy or other experimental methods.
Supported formats:
For API description, see xylib/xylib.h file.
Licence: LGPL
You can download source tarball or use Subversion repository.
To build xylib you need:
Linux, FreeBSD, etc: the library can be compiled in a standard ./configure && make way. If you downloaded the source from svn, you need to run autoreconf -i before.
The file sample-urls contains links to files in formats handled by xylib.
The library comes with a tiny program xyconv, which converts files supported by xylib to TSV.
xylib is used by:
We will be glad to include support for (almost) any format. You may contact us before you start working.
Each .cpp/.h file pair in xylib/ (excluding xylib.* and util.*) corresponds to one supported filetype.
Each of these .cpp files contains basic info about the format in constructor of struct FormatInfo. Each header files includes a note what the implementation is based on (i.e. what documentation was available to developers). In some cases the format is described in .cpp file.
To add a new filetype:
Feel free to send e-mail to the authors, or to the fityk-devel mailing list.