Image files written in the CBF format by a PILATUS detector are by default "minimal" CBF files and contain a PILATUS CBF header. Documentation and specification of this format is available for download with the following link:
A reference implementation written in Python for parsing of PILATUS CBF headers is available for download with the following link:
Optionally it is possible to write PILATUS images as full CBF files using a template system developed in collaboration with Graeme Winter from Diamond Light Source. Documentation is provided in the file "cbf_template_HOWTO.txt" which comes with the detector software camserver and is also available here:
For any further questions please feel free to contact support@dectris.com.
Properties of a PILATUS CBF header
The header line
# Beam_xy (243.12, 309.12) pixels
is equivalent to all following lines:
Keyword, values, and unit always appear at the same position relative to delimitation by space or space equivalent characters ‘#=:,()’
A reference implementation for parsing of PILATUS CBF headers written in Python is available:
Keyword | Value position(s) | Unit positions | Dimension | Type |
---|---|---|---|---|
Wavelength | 1 | 2 | Å | float |
Energy_range | 1, 2 | 3 | eV | integer |
Detector_distance | 1 | 2 | m | float |
Detector_Voffset | 1 | 2 | m | float |
Beam_xy | 1, 2 | 3 | pixels | float |
Parsing of parameter values according to position with respect to space delimitation:
0 1 2 3 Position Beam_xy 243.12 309.12 pixels