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
TimeSeries
orSpectrogram
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
hoft
is 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_range
unlessenergy
is 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.4
solar masses
- hoft
- Returns:
- out
Spectrogram
time-frequency spectrogram of astrophysical range
- out
See also
gwpy.timeseries.TimeSeries.spectrogram
for the underlying power spectral density estimator
inspiral_range_psd
for the function that computes inspiral range integrand
burst_range_spectrum
for the function that computes burst range integrand
range_timeseries
for
TimeSeries
trends 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
fmax
exceeds the frequency of the innermost stable circular orbit (ISCO), the output will extend only up to the latter.