gw.download_strain_data.estimate_single_psd

gw.download_strain_data.estimate_single_psd(
    time_start,
    time_segment,
    window,
    f_s=4096,
    num_segments=128,
    det=None,
    channel=None,
)

Download strain data and generate a PSD based on these. Use num_segments of length time_segment, starting at GPS time time_start. If no channel is specified, GWOSC is used to download the data.

Parameters

Name Type Description Default
time_start start GPS time for PSD estimation required
time_segment time for a single segment for PSD information, in seconds required
window Window used for PSD generation, needs to be the same as used for Fourier transform of event strain data. Either provided directly as np.ndarray, or as dict in which case the window is generated by window = dingo.gw.gwutils.get_window(**window). required
num_segments int number of segments used for PSD generation 128
det If provided, will download data from GWOSC using TimeSeries.fetch_open_data(). Mutually exclusive with ‘channel’. None
channel If provided, will download the data from the channel instead of gwosc using TimeSeries.get() None

Returns

Name Type Description
psd np.array array of psd