act.io.read_sp2

act.io.read_sp2(file_name, debug=False, arm_convention=True)[source]

Loads a binary SP2 raw data file and returns all of the wave forms into an xarray Dataset.

Parameters:
  • file_name (str) – The name of the .sp2b file to read.

  • debug (bool) – Set to true for verbose output.

  • arm_convention (bool) – If True, then the file name will follow ARM standard naming conventions. If False, then the file name follows the SP2 default naming convention.

Returns:

dataset (xarray.Dataset) – The xarray Dataset containing the raw SP2 waveforms for each particle.