loadCorrected

fiducia.rawProcess.loadCorrected(danteFile, attenuatorsFile, offsetsFile, cut=None, plot=False, addCh=[])[source]

Given a dante data file, an attenuators file, and an offsets file, reads the file and applies background correction, attenuation correction, and channel offset correction. Returns the corrected data traces as a pandas dataframe. The row indices of this dataframe also contain the correct time scaling given the oscilloscope settings, but note that the channels are not aligned. User must apply alignment correction using some measured signal as a temporal fiducial.

Parameters
  • danteFile (str) – Full path to .dat file containing raw dante traces.

  • attenuatorsFile (str) – Full path to the .xls file containing attenuator serial numbers and corresponding attenuation factors.

  • offsetsFile (str) – Full path to .xls file containing dante channel offsets.

  • cut (int) – Number of points to cut from leading and trailing end of each Dante channel trace. This is used to remove noise that occurs at the edges of the signal. Default is None, which means no cut is applied.

  • plot (bool) – Flag for plotting data after each calibration/correction step. Default is False.

  • addCh (list) – Add channels to analyze. This is used to override which channels are listed as on in the header of the data dante data file.

Returns

Return type

timeOffset

dfAvg:

onChList:

hf:

dfVolt:

Notes

Examples