Class SPCReader

All Implemented Interfaces:
Closeable, AutoCloseable, ICompressedTileReader, IFormatHandler, IFormatReader, IMetadataConfigurable, IPyramidHandler

public class SPCReader extends FormatReader
SPCReader is the file format reader for Becker & Hickl SPC-Image SPC FIFO files.
Author:
Ian i.munro at imperial.ac.uk Ported from Matlab code kindly provided by ulorenzo at ikasle.ehu.eus. This format is documented in the TCSPC Handbook available from http://www.becker-hickl.com/handbookphp.htm See Page 675 FIFO Data Files (SPC-134, SPC-144, SPC-154, SPC-830). Note that this code assumes the presence of pixel clock events and therefore the MacroTime information is not used.
  • Field Details

    • TAC_RANGE

      public static final String TAC_RANGE
      See Also:
    • TAC_GAIN

      public static final String TAC_GAIN
      See Also:
    • adcResShift

      private final int adcResShift
      See Also:
    • allFiles

      private ArrayList<String> allFiles
      List of all files to open
    • nTimebins

      protected int nTimebins
      Number of time bins in lifetime histogram.
    • nChannels

      protected int nChannels
      Number of spectral nChannels.
    • Tstore

      protected byte[] Tstore
    • tstoreb

      ByteBuffer tstoreb
    • storedChannel

      protected int storedChannel
    • storedT

      protected int storedT
    • currentPixel

      private int currentPixel
    • currentLine

      private int currentLine
    • currentFrame

      private int currentFrame
    • bufLength

      protected int bufLength
    • rawBuf

      protected byte[] rawBuf
    • nBuffers

      private int nBuffers
    • nLines

      private int nLines
    • nFrames

      private int nFrames
    • nPixels

      private int nPixels
    • endOfFrameFlag

      private boolean endOfFrameFlag
    • bpp

      private int bpp
    • binSize

      private int binSize
    • channel

      private int channel
    • frameClockList

      List<Integer> frameClockList
    • endOfFrameList

      List<Integer> endOfFrameList
    • lineMode

      private boolean lineMode
    • spcId

      private String spcId
  • Constructor Details

    • SPCReader

      public SPCReader()
      Constructs a new SPC reader.
  • Method Details