gwdetchar.utils.daq module¶
Utilities for analysing ADC or DAC overflows
- gwdetchar.utils.daq.find_crossings(timeseries, threshold)[source]¶
Find the times that a timeseries crosses a specific value
- Parameters:
- timeseries
TimeSeries the input data to test against a threshold
- threshold
float function will analyze input timeseries and find times when data crosses this threshold
- timeseries
- Returns:
- times
numpy.ndarray an array of GPS times (
float64) at which the input data crossed the threshold
- times
- gwdetchar.utils.daq.find_overflow_segments(timeseries, cumulative=True, round=False)[source]¶
Find the segments during which the given counter indicated an overflow
- Parameters:
- timeseries
TimeSeries the input data from the cumulative overflow counter
- cumulative
bool, default:True whether the timeseries contains a cumulative overflow counter or an overflow state [0/1]
- timeseries
- Returns:
- overflows
SegmentList a list of overflow segments
- overflows
- gwdetchar.utils.daq.find_overflows(timeseries, cumulative=True)[source]¶
Find the times of overflows from an overflow counter
- Parameters:
- timeseries
TimeSeries the input data from the cumulative overflow counter
- cumulative
bool, default:True whether the timeseries contains a cumulative overflow counter or an overflow state [0/1]
- timeseries
- Returns:
- times
numpy.ndarray an array of GPS times (
float64) at which overflows were recorded
- times
- gwdetchar.utils.daq.ligo_accum_overflow_channel(dcuid, ifo=None)[source]¶
Returns the channel name for cumulative overflows for this DCUID
- gwdetchar.utils.daq.ligo_model_overflow_channels(dcuid, ifo=None, frametype=None, gpstime=None, accum=True, nds=None)[source]¶
Find the CDS overflow channel names for a given DCUID
- Parameters:
- dcuid
int the ID of the front-end controller to search
- ifo
str, optional the prefix of the interferometer to use
- frametype
str, optional the frametype to use, defaults to
{ifo}_R- gpstime
int, optional the GPS time at which to search
- accum
bool, optional whether to retun the accumulated overflow channels (
True) or not (False)- nds
str, optional the
'host:port'to use for accessing data via NDS, orNoneto use direct GWF file access
- dcuid
- Returns: