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:
- Organization:
Laboratory for Fluorescence Dynamics. University of California, Irvine
- Version:
2019.1.1
Requirements
Revisions
- 2019.1.1
Update copyright year.
- 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
W Becker. The bh TCSPC Handbook. Third Edition. Becker & Hickl GmbH 2008. pp 401.
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
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
File details
Details for the file sdtfile-2019.1.1.tar.gz
.
File metadata
- Download URL: sdtfile-2019.1.1.tar.gz
- Upload date:
- Size: 7.5 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/1.12.1 pkginfo/1.4.2 requests/2.21.0 setuptools/40.6.3 requests-toolbelt/0.8.0 tqdm/4.28.1 CPython/3.7.2
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 34266c0ad3b81ced73c91741fd73f827bcdde93c236bd4648c40d4a100357067 |
|
MD5 | ba240ca08251f3175c142ecc768c88d6 |
|
BLAKE2b-256 | 385f2012deb64fc1bb6cb048657e1f82a4a9dac6450c422323e99c9fc9710344 |
File details
Details for the file sdtfile-2019.1.1-py2.py3-none-any.whl
.
File metadata
- Download URL: sdtfile-2019.1.1-py2.py3-none-any.whl
- Upload date:
- Size: 9.1 kB
- Tags: Python 2, Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/1.12.1 pkginfo/1.4.2 requests/2.21.0 setuptools/40.6.3 requests-toolbelt/0.8.0 tqdm/4.28.1 CPython/3.7.2
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | bef08d06cd13296931710bbe65a253b7883fedd6bf241efbae10754fbeac0c21 |
|
MD5 | 3634c192e481f6fd6409f5e60e12afed |
|
BLAKE2b-256 | 465b9cd9d5acbc2a6909748ac04f492420730aff475c5265249fc639834a8ecc |