Skip to main content

Read Becker & Hickl SDT files

Project description

SDT files are produced by Becker & Hickl SPCM software. They contain time correlated single photon counting instrumentation parameters and measurement data. Currently only the “Setup & Data”, “DLL Data”, and “FCS Data” formats are supported.

Becker & Hickl GmbH is a manufacturer of equipment for photon counting.

Author:Christoph Gohlke
Organization:Laboratory for Fluorescence Dynamics. University of California, Irvine


Move module into sdtfile package.
Bug fixes.
Support revision 15 files and compression.
Read SPC DLL data files.
Fixed reading multiple MEASURE_INFO records.


The API is not stable yet and might change between revisions.

Python 2.7 and 3.4 are deprecated.


  1. W Becker. The bh TCSPC Handbook. Third Edition. Becker & Hickl GmbH 2008. pp 401.
  2. SPC_data_file_structure.h header file. Part of the Becker & Hickl SPCM software.


Read image and metadata from a SPC Setup & Data File:

>>> sdt = SdtFile('image.sdt')
>>> sdt.header.revision
b'SPC Setup & Data File'
>>> int(sdt.measure_info[0].scan_x)
>>> len(
(128, 128, 256)
>>> sdt.times[0].shape

Read data and metadata from a SPC Setup & Data File with mutliple data sets:

>>> sdt = SdtFile('fluorescein.sdt')
>>> len(
(1, 1024)
>>> sdt.times[3].shape

Read data from a SPC FCS Data File as numpy array:

>>> sdt = SdtFile('fcs.sdt')
b'SPC FCS Data File'
>>> len(
(512, 512, 256)
>>> sdt.times[0].shape

Project details

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Files for sdtfile, version 2018.8.29
Filename, size File type Python version Upload date Hashes
Filename, size sdtfile-2018.8.29-py2.py3-none-any.whl (7.9 kB) File type Wheel Python version py2.py3 Upload date Hashes View hashes
Filename, size sdtfile-2018.8.29.tar.gz (7.4 kB) File type Source Python version None Upload date Hashes View hashes

Supported by

Elastic Elastic Search Pingdom Pingdom Monitoring Google Google BigQuery Sentry Sentry Error logging AWS AWS Cloud computing DataDog DataDog Monitoring Fastly Fastly CDN DigiCert DigiCert EV certificate StatusPage StatusPage Status page