gwdetchar.daq module¶
Utilities for analysing ADC or DAC overflows
- gwdetchar.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
- Returns
times :
numpy.ndarray
an array of GPS times (
float64
) at which the input data crossed the threshold
- gwdetchar.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]
- Returns
overflows :
SegmentList
a list of overflow segments
- gwdetchar.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]
- Returns
times :
numpy.ndarray
an array of GPS times (
float64
) at which overflows were recorded
- gwdetchar.daq.ligo_accum_overflow_channel(dcuid, ifo=None)[source]¶
Returns the channel name for cumulative overflows for this DCUID
- gwdetchar.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
, optionalthe prefix of the interferometer to use
frametype :
str
, optionalthe frametype to use, defaults to
{ifo}_R
gpstime :
int
, optionalthe GPS time at which to search
accum :
bool
, optionalnds :
str
, optionalthe
'host:port'
to use for accessing data via NDS, orNone
to use direct GWF file access- Returns
-
the list of channel names found