pygwb.preprocessing.resample_filter

pygwb.preprocessing.resample_filter(time_series_data: TimeSeries, new_sample_rate: int, cutoff_frequency: float, number_cropped_seconds: int = 2, window_downsampling: str = 'hamming', ftype: str = 'fir')[source]

Function doing part of the pre-processing (resampling and filtering) of the data to be used in the remainder of the code.

Parameters:
  • time_series_data (gwpy.timeseries.TimeSeries) – Timeseries data to be analysed.

  • new_sample_rate (int) – Sampling rate of the downsampled 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.

  • window_downsampling (str, optional) – Type of window used to downsample. Default window is hamming.

  • ftype (str) – Type of filter to use in the downsampling. Default filter is fir.

Returns:
filtered: gwpy.timeseries.TimeSeries

Timeseries containing the filtered and high-passed data.