pipeparts.condition module¶
Review Status
Names |
Hash |
Date |
---|---|---|
Florent, Sathya, Duncan Me, Jolien, Kipp, Chad |
8a6ea41398be79c00bdc27456ddeb1b590b0f68e |
2014-06-18 |
- pipeparts.condition.mkcondition(pipeline, src, target_rate, instrument, psd=None, psd_fft_length=32, ht_gate_threshold=inf, idq_gate_threshold=inf, veto_segments=None, nxydump_segment=None, track_psd=False, block_duration=250000000, zero_pad=None, width=64, statevector=None, dqvector=None, idq_series=None, idq_channel_name=None, fir_whiten_reference_psd=None, track_latency=False)[source]¶
Build pipeline stage to whiten and downsample h(t).
pipeline: the gstreamer pipeline to add this to
src: the gstreamer element that will be providing data to this
target_rate: the requested sample rate.
instrument: the instrument to process
psd: a psd frequency series
psd_fft_length: length of fft used for whitening
ht_gate_threshold: gate h(t) if it crosses this value
veto_segments: segments to mark as gaps after whitening
track_psd: decide whether to dynamically track the spectrum or use the fixed spectrum provided
width: type convert to either 32 or 64 bit float
fir_whiten_reference_psd: when using FIR whitener, use this PSD to define desired desired phase response
Gstreamer graph describing this function
- pipeparts.condition.mkhtgate(pipeline, src, control=None, threshold=8.0, attack_length=128, hold_length=128, invert_control=True, **kwargs)[source]¶
A convenience function to provide thresholds on input data. This can be used to remove large spikes / glitches etc. Of course you can use it for other stuff by plugging whatever you want as input and ouput
NOTE: the queues constructed by this code assume the attack and hold lengths combined are less than 1 second in duration.
Gstreamer Graph