pygwb.preprocessing.read_data

pygwb.preprocessing.read_data(IFO: str, data_type: str, channel: str, t0: int, tf: int, local_data_path: str = '', frametype: str = '', input_sample_rate: int = 16384)[source]

Function that read in the data to be used in the rest of the code.

Parameters:
  • IFO (str) – Interferometer name for which to retrieve the data.

  • data_type (str) – String indicating the type of data to be read, either: - ‘public’ : data from GWOSC (https://www.gw-openscience.org/) - ‘private’ : data from the LIGO-Virgo servers restricted to members of the LIGO-Virgo-KAGRA collaboration - ‘local’ (if ‘local_data_path’): locally saved data

  • channel (str) – Name of the channel (e.g.: “L1:GWOSC-4KHZ_R1_STRAIN”).

  • t0 (int) – GPS time of the start of the data taking.

  • tf (int) – GPS time of the end of the data taking.

  • frametype (str) – Frame type that contains the channel, only used if data_type=private (e.g.: “L1_HOFT_C00”).

  • local_data_path (str, optional) – Path where local data (gwf format) is stored.

  • input_sample_rate (int, optional) – Sampling rate of the timeseries to be read in Hz. Default is 16384 Hz.

Returns:
data: gwpy.timeseries.TimeSeries

Time series containing the requested data.

See also

gwpy.timeseries.TimeSeries

More information here.

gwsumm.data.timeseries.get_timeseries

More information here.