Hamamatsu#

Reader for spectroscopy data saved in .img (ITEX) files from the HPD-TA (High Performance Digital Temporal Analyzer) or HiPic (High Performance image control) softwares from Hamamatsu, e.g. for streak cameras or high performance CCD cameras.

If LumiSpy is installed, Luminescence will be used as the signal_type.

Note

Reading files containing multiple channels or multiple images per channel is not implemented.

API functions#

rsciio.hamamatsu.file_reader(filename, lazy=False, use_uniform_signal_axes=False, **kwds)#

Reads Hamamatsu’s .img file.

Parameters:
filenamestr, pathlib.Path

Filename of the file to read or corresponding pathlib.Path.

lazybool, default=False

Whether to open the file lazily or not.

use_uniform_signal_axisbool, default=False

Can be specified to choose between non-uniform or uniform signal axis. If True, the scale attribute is calculated from the average delta along the signal axis and a warning is raised in case the delta varies by more than 1 percent.

Returns:
list of dict

List of dictionaries containing the following fields:

  • ‘data’ – multidimensional numpy.ndarray or dask.array.Array

  • ‘axes’ – list of dictionaries describing the axes containing the fields ‘name’, ‘units’, ‘index_in_array’, and either ‘size’, ‘offset’, and ‘scale’ or a numpy array ‘axis’ containing the full axes vector

  • ‘metadata’ – dictionary containing the parsed metadata

  • ‘original_metadata’ – dictionary containing the full metadata tree from the input file