offsetCorrect

fiducia.rawProcess.offsetCorrect(df, timesFrame, offsetsFile)[source]

Reads given offset correction file (.xls) and applies offsets to dante measurement data given in dataframe. The input dataframe should already be background corrected and scaled to units of volts, see bkgCorrect() and voltageScale(). Note that although timing offsets are also applied, they are not as relevant since timing should be realigned to a fiducial peak anyway. Additional attenuation is not implemented and an error will be raised if the offsets file contains attenuation values other than 1. Returns a dataframe with applied offsets.

Parameters
  • df (pandas.core.frame.DataFrame) – Dante dataframe with background corrected values and scaled to units of volts. See readDanteData(), bkgCorrect() and voltageScale().

  • timesFrame (pandas.core.frame.DataFrame) – Dataframe containing time axis corresponding to dante signals in df dataframe. See timesScope() and bkgCorrect().

Returns

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

  • dfOffset (pandas.core.frame.DataFrame) – Dante dataframe with applied offset corrections

Notes

Examples