This page presents a selection of programs that can read the Crystallographic Binary File (CBF) format produced by PILATUS detectors. By default, PILATUS detectors write CBF files with header information minimized to what is necessary for processing by typical crystallographic programs (like XDS). Through a template mechanism, it is possible to extend those CBF files to the full specification. However, this is implemented in very few cases only. The following sections highlight software for the cbf format as written by default.
To learn more about the format, read about the full CBF image specification and about the DECTRIS implementation.
The following examples were written by different users mainly using the cbf library. These examples are for information only. They are not tested and we do not take any responsibility regarding the functionality of the programs.
These simple compress and decompress functions written in C are part of the bigger TVX code (used to control the Pilatus detectors) and should give a good starting point for integration.
ALBULA offers a Python API that allows manipulation of CBF files. Download it here, then start with Teemu Ikonen's code: https://github.com/tpikonen/CBF-ctypes.
A set of Matlab tools that include the functionality of reading cbf files can be found on the homepage of the cSAXS beamline at the SLS (Paul Scherrer Institut).
The routine below was written by Patrick Huber (PSI & ETHZ).
If you have suggestion or links to other programs, please let us know at info@dectris.com.