Skip to main content

Read Becker & Hickl SDT files

Project description

Sdtfile is a Python library to read SDT files produced by Becker & Hickl SPCM software. SDT files 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

License:

3-clause BSD

Version:

2019.7.28

Requirements

Revisions

2019.7.28

Fix reading compressed, multi-channel data.

2018.9.22

Use str, not bytes for ASCII data.

2018.8.29

Move module into sdtfile package.

2018.2.7

Bug fixes.

2016.3.30

Support revision 15 files and compression.

2015.1.29

Read SPC DLL data files.

2014.9.5

Fixed reading multiple MEASURE_INFO records.

Notes

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

Python 2.7 and 3.4 are deprecated.

References

  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.

Examples

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

>>> sdt = SdtFile('image.sdt')
>>> sdt.header.revision
588
>>> sdt.info.id[1:-1]
'SPC Setup & Data File'
>>> int(sdt.measure_info[0].scan_x)
128
>>> len(sdt.data)
1
>>> sdt.data[0].shape
(128, 128, 256)
>>> sdt.times[0].shape
(256,)

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

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

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

>>> sdt = SdtFile('fcs.sdt')
>>> sdt.info.id[1:-1]
'SPC FCS Data File'
>>> len(sdt.data)
1
>>> sdt.data[0].shape
(512, 512, 256)
>>> sdt.times[0].shape
(256,)

Project details


Download files

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

Source Distribution

sdtfile-2019.7.28.tar.gz (7.6 kB view details)

Uploaded Source

Built Distribution

sdtfile-2019.7.28-py2.py3-none-any.whl (9.2 kB view details)

Uploaded Python 2 Python 3

File details

Details for the file sdtfile-2019.7.28.tar.gz.

File metadata

  • Download URL: sdtfile-2019.7.28.tar.gz
  • Upload date:
  • Size: 7.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.13.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/41.0.1 requests-toolbelt/0.9.1 tqdm/4.32.2 CPython/3.7.4

File hashes

Hashes for sdtfile-2019.7.28.tar.gz
Algorithm Hash digest
SHA256 3f6ada264a10a6c5132a42f8abcd004c76689a03fe96f6194ecf2892743512e3
MD5 0c76060af782d2bbe4d5dca20d16d514
BLAKE2b-256 2bef5dc6fd7e3141a098e8c1f1d7d18d319f88659daf1ae45e2ec8d997a35ebd

See more details on using hashes here.

File details

Details for the file sdtfile-2019.7.28-py2.py3-none-any.whl.

File metadata

  • Download URL: sdtfile-2019.7.28-py2.py3-none-any.whl
  • Upload date:
  • Size: 9.2 kB
  • Tags: Python 2, Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.13.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/41.0.1 requests-toolbelt/0.9.1 tqdm/4.32.2 CPython/3.7.4

File hashes

Hashes for sdtfile-2019.7.28-py2.py3-none-any.whl
Algorithm Hash digest
SHA256 5c7109c8c491269efe84661f647a371e1a842082c328d2b8fa8086b088149450
MD5 76da90d0b32e4ce37dec36fa37fa445b
BLAKE2b-256 cbc374612f68f1f7cf7f02e02c1037f382b974da940c26f1a42b2067feacb6cb

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page