spectroscopy-py

Spectroscopy - Export Data

Logo


Table of Contents
  1. Introduction
  2. Spectroscopy File Format
  3. Phasors File Format
  4. Data Visualization
  5. </ul> </li>
  6. Useful links
  7. License
  8. Contact

Introduction

Spectroscopy GUI

The Spectroscopy software allows seamless export of decay curves and phasors data to binary files, with convenient plotting and visualization capabilities. This guide provides an in-depth exploration of the binary files structure, offering a comprehensive understanding of how exported data is formatted and can be leveraged.

(back to top)

Spectroscopy File Format

Here a detailed explanation of the exported Spectroscopy binary data file structure:

Header (4 bytes):

The first 4 bytes of the file must be SP01. This serves as a validation check to ensure the correct format of the file. If the check fails, the script prints “Invalid data file” and exits.

Metadata Section (Variable length):

Following the header, metadata is stored in the file. This includes:

Data Records (Variable length):

After the metadata, the script enters a loop to read and process data in chunks of variable length, depending on the number of active channels. Each chunk represents a data record containing:

For example, if there are 3 active channels, the total length of a data record will be 8 + 1024 * 3 = 3080 bytes.

(back to top)

Phasors File Format

Here a detailed explanation of the exported Phasors binary data file structure:

Header (4 bytes):

The first 4 bytes of the file must be SPF1. This serves as a validation check to ensure the correct format of the file. If the check fails, the script prints “Invalid phasors_data file” and exits.

Metadata Section (Variable length):

Following the header, metadata is stored in the file. This includes:

Data Records (Variable length):

After the metadata, the script enters a loop to read and process phasor data. Each data record contains:

(back to top)

Data Visualization

The script files are automatically downloaded along with the acquisition .bin file once the acquisition is complete and a file name has been chosen. Follow one of the guides below if you wish to use the Python or Matlab script:

For more details about the project follow these links:

(back to top)

License

Distributed under the MIT License.

(back to top)

Contact

FLIM LABS: info@flimlabs.com

Project Link: FLIM LABS - Spectroscopy

(back to top)