Skip to main content

Read Becker & Hickl SDT files

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

License:

BSD 3-Clause

Version:

2022.9.28

Requirements

This release has been tested with the following requirements and dependencies (other versions may work):

Revisions

2022.9.28

  • Convert docstrings to Google style with Sphinx directives.

2022.2.2

  • Add type hints.

  • Drop support for Python 3.7 and numpy < 1.19 (NEP29).

2021.11.18

  • Fix reading FLIM files created by Prairie View software (#5).

2021.3.21

  • Add sdt2dat script.

2020.12.10

  • Fix shape of non-square frames.

2020.8.3

  • Fix integer overflow (#3).

  • Support os.PathLike file names.

2020.1.1

  • Fix reading MCS_BLOCK data.

  • Remove support for Python 2.7 and 3.5.

  • Update copyright.

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

  • Fix reading multiple MEASURE_INFO records.

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 image 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,)

Metadata

Release files for sdtfile 2022.9.28

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for sdtfile 2022.9.28
File Size Uploaded Provenance Actions
sdtfile-2022.9.28.tar.gz 12.3 kB Without provenance Details for sdtfile-2022.9.28.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for sdtfile 2022.9.28
File Interpreter ABI Platform Actions
sdtfile-2022.9.28-py3-none-any.whl Python 3 none any Details for sdtfile-2022.9.28-py3-none-any.whl

Total release size: 27.1 kB

Release files / sdtfile-2022.9.28.tar.gz

Download URL sdtfile-2022.9.28.tar.gz
Size 12.3 kB
Tags Source
SHA-256 checksum
How to use checksums
61cd6949f593004868975d556ec9fd2cb226471bef1755a99e2afb2751d641d4
BLAKE2b-256 checksum
How to use checksums
171ccc79c0494c87576fd62806e0a92d48f2d2cab3309c6dc8f326a60f858b85
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.1 CPython/3.10.7

Release files / sdtfile-2022.9.28-py3-none-any.whl

Download URL sdtfile-2022.9.28-py3-none-any.whl
Size 14.8 kB
Tags Python 3
SHA-256 checksum
How to use checksums
6424562eb2a4dc460b974ee475bc587da31fe6af302b414d4075d2edaccb8ca7
BLAKE2b-256 checksum
How to use checksums
24dae239962ca77f415fab8727c818834d85276c6dceee3db89f4fd91450d052
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.1 CPython/3.10.7

Security for sdtfile 2022.9.28

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Release history Release notifications | RSS feed

This release

2022.9.28 This release

2 release files No provenance

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page