range_spectrogram¶
- gwpy.astro.range_spectrogram(hoft, stride=None, fftlength=None, overlap=None, window='hann', method='median', nproc=1, range_func=None, **rangekwargs) Spectrogram[source]¶
Calculate the average range or range power spectrogram (Mpc or Mpc^2 / Hz) directly from strain.
- Parameters:
- hoft
TimeSeriesorSpectrogram record of gravitational-wave strain output from a detector
- stride
float, optional number of seconds in a single PSD (i.e., step size of spectrogram), required if
hoftis an instance ofTimeSeries- fftlength
float, optional number of seconds in a single FFT
- overlap
float, optional number of seconds of overlap between FFTs, defaults to the recommended overlap for the given window (if given), or 0
- window
str,numpy.ndarray, optional window function to apply to timeseries prior to FFT, see
scipy.signal.get_window()for details on acceptable formats- method
str, optional FFT-averaging method, defaults to median averaging, see
spectrogram()for more details- nproc
int, optional number of CPUs to use in parallel processing of FFTs, default: 1
- fmin
float, optional low frequency cut-off (Hz), defaults to
1/fftlength- fmax
float, optional high frequency cut-off (Hz), defaults to Nyquist frequency of
hoft- range_func
callable, optional the function to call to generate the range for each stride, defaults to
inspiral_rangeunlessenergyis given as a keyword argument to the range function- **rangekwargs
dict, optional additional keyword arguments to
burst_range_spectrum()orinspiral_range_psd()(see “Notes” below), defaults to inspiral range withmass1 = mass2 = 1.4solar masses
- hoft
- Returns:
- out
Spectrogram time-frequency spectrogram of astrophysical range
- out
See also
gwpy.timeseries.TimeSeries.spectrogramfor the underlying power spectral density estimator
inspiral_range_psdfor the function that computes inspiral range integrand
burst_range_spectrumfor the function that computes burst range integrand
range_timeseriesfor
TimeSeriestrends of the astrophysical range
Notes
This method is designed to show the contribution to a gravitational-wave detector’s sensitive range across frequency bins as a function of time. It supports the range to compact binary inspirals and to unmodelled GW bursts, each a class of transient event.
If inspiral range is requested and
fmaxexceeds the frequency of the innermost stable circular orbit (ISCO), the output will extend only up to the latter.