AlanRace / SpectralAnalysis

Software for the analysis and interactive exploration of spectral imaging data
https://alanrace.github.io/SpectralAnalysis/
Apache License 2.0
29 stars 9 forks source link

Implement PImMS parser #14

Closed Turin508 closed 4 years ago

Turin508 commented 4 years ago

This code implements a parser for the Pixel Imaging Mass Spectrometry (PImMS) camera's binary data format. PImMS is an ultrafast imaging sensor typically used in time-of-flight mass spectrometry experiments. In an experimental cycle, the x, y and t coordinates of each event detected by the camera is recorded, where x is the x coordinate, y is the y coordinate and t is the timestamp.

This code has been implemented assuming the use of a PImMS2 camera, which has a 324x324 pixel sensor and 4096 timestamps. To reduce the memory usage when parsing, a subset of the timestamp range can be selected by adjusting the value of this.tof_start and this.tof_end on lines 48 and 49, respectively.

It would be beneficial if the spectrum of the entire image could also be displayed using SpectralAnalysis, perhaps displaying immediately after the data has been loaded in a similar way to the overview image. The underlying code to produce the spectrum has been included in the parser.