Raw Dante Data Processing (fiducia.rawProcess)¶
Created on Wed Mar 13 16:43:39 2019
- Utilities for processing raw DANTE data. Typical steps include:
attenuator correction
background shot subtraction
channel alignment (via e.g. peak finding)
temporal axis calibration
@author: Pawel M. Kozlowski
Functions¶
|
Given a header frame, return a list of channels with no scope. |
|
Given a header frame, return a list of channels with no XRD. |
|
Given a header frame, return a list of which dante channels were on for the shot. |
|
Given a headerFrame, returns a timesFrame containing an array of oscilloscope times for each channel and background shot in the headerFrame. |
|
Scales voltage (vertical) axis of dante signals based on information contained in the header. |
|
Give a Dante data frame containing measurement data and background shot data, remove the background from the data and return the corrected data as a dataframe. |
|
Reads given offset correction file (.xls) and applies offsets to dante measurement data given in dataframe. |
|
Given a header frame, return the attenuation factors applied to each channel. |
|
Given a Dante data frame and header frame, return a data frame with attenuation corrections applied to each channel. |
|
Calculates time averaged background for given data. |
|
Applies background correction to bring the signal down to zero, based on averaging the signal background over a section of time from earliest time contained in timesFrame to earliest time plus timeLength. |
|
Fit polynomial function to ends of the signal as an estimate of the background signal + hyesteresis. |
|
Determines locations and widths of peaks above the mean of the signal for each dante channel. |
|
|
|
Find the highest peak, and return list of peaks with the highest peak removed from the list. |
|
Select the N tallest peaks. |
|
|
|
|
|
Takes out put timesFrame and dataFrame from rawProcess.py functions and generates a measurementFrame that can be passed to analyzeStreak() and other main.py functions. |
|
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. |
|
Corrects for hysteresis by detecting edges of signal containing region and fitting a polynomial background to regions that do not belong to signal. |
|
Aligns dante signals based on peak finding. |