pygwb.preprocessing.apply_high_pass_filter

pygwb.preprocessing.apply_high_pass_filter(timeseries: TimeSeries, sample_rate: int, cutoff_frequency: float, number_cropped_seconds: int = 2)[source]

Function to apply a high pass filter to a timeseries.

Parameters:
  • timeseries (gwpy.timeseries.TimeSeries) – Timeseries to which to apply the high pass filter.

  • sample_rate (int) – Sampling rate of the timeseries in Hz.

  • cutoff_frequency (float) – Frequency (in Hz) from which to start applying the high pass filter.

  • number_cropped_seconds (int, optional) – Number of seconds to remove at the beginning and end of the high-passed data; default is 2.

Returns:
filtered: gwpy.timeseries.TimeSeries

High-pass filtered timeseries.