attenuationCorrect¶
-
fiducia.rawProcess.
attenuationCorrect
(attenuatorsFile, hf, df, channels)[source]¶ Given a Dante data frame and header frame, return a data frame with attenuation corrections applied to each channel.
- Parameters
attenuatorsFile (str) – Full path to .xls file containing attenuator serial numbers and corresponding attenuation factors. See attenuationFactors().
hf (pandas.core.frame.DataFrame) – Header dataframe from dante .dat file. See readDanteData().
df (pandas.core.frame.DataFrame) – Dante dataframe. This frame should already be voltage scaled, background corrected, and offset corrected. See readDanteData().
channels (list) – List of dante channels in df to be analyzed.
- Returns
dfAtten – Returns dataframe with attenuation corrected signal values for the given channels.
- Return type
pandas.core.frame.DataFrame
Notes
Examples