grasshopper package

Subpackages

Submodules

grasshopper.general module

grasshopper.general.snr(signal, detector)[source]

Calculate the SNR of a signal in a given detector, assuming that it has been detected with an optimal filter. See e.g. arxiv.org/abs/1408.0740

Parameters:
signal : Source

A Source object which describes the source producing the signal, e.g. a CBC.

detector : Detector

A Detector object describing the instrument making the observation e.g. aLIGO.

Returns:
SNR : float

The signal-to-noise ratio of the signal in the detector.

grasshopper.grasshopper module

grasshopper.interferometers module

class grasshopper.interferometers.AdvancedLIGO(frequencies=None, configuration=None, obs_time=None)[source]

Bases: grasshopper.interferometers.Interferometer

The aLIGO Interferometer

Attributes:
configuration

Methods

antenna_pattern(theta, phi, psi) Produce the antenna pattern for a detector, given its detector tensor, and a set of angles.
energy_density([frequencies]) Produce the sensitivity curve of the detector in terms of the energy density.
noise_amplitude([frequencies]) The noise amplitude for a detector is defined as $h^2_n(f) = f S_n(f)$ and is designed to incorporate the effect of integrating an inspiralling signal.
plot([axis]) Plot the noise curve for this detector.
psd([frequencies]) Calculate the one-sided power spectral desnity for a detector.
skymap([nx, ny, psi]) Produce a skymap of the antenna repsonse of the interferometer.
noise_spectrum  
srpsd  
S0 = <Quantity 1e-49 1 / Hz>
configurations = {'O1': ['data/aligo_freqVector.txt', 'data/o1_data50Mpc_step1.txt']}
detector_tensor = <Quantity [[ 4., 0., 0.], [ 0.,-4., 0.], [ 0., 0., 0.]] km>
f0 = <Quantity 215.0 Hz>
frequencies = <Quantity [ 30. , 30.99274819, 31.98549637,..., 3998.01450363, 3999.00725181, 4000. ] Hz>
frequency_range = <Quantity [ 30., 4000.] Hz>
fs = <Quantity 20.0 Hz>
length = <Quantity 4.0 km>
name = 'aLIGO'
noise_spectrum(x)[source]
xhat = array([1, 0, 0])
yhat = array([0, 1, 0])
zhat = array([0, 0, 1])
class grasshopper.interferometers.BDecigo(frequencies=None, configuration=None, obs_time=None)[source]

Bases: grasshopper.interferometers.Interferometer

Attributes:
configuration

Methods

antenna_pattern(theta, phi, psi) Produce the antenna pattern for a detector, given its detector tensor, and a set of angles.
energy_density([frequencies]) Produce the sensitivity curve of the detector in terms of the energy density.
noise_amplitude([frequencies]) The noise amplitude for a detector is defined as $h^2_n(f) = f S_n(f)$ and is designed to incorporate the effect of integrating an inspiralling signal.
plot([axis]) Plot the noise curve for this detector.
skymap([nx, ny, psi]) Produce a skymap of the antenna repsonse of the interferometer.
psd  
srpsd  
S0 = <Quantity 4.04e-46 1 / Hz>
frequencies = <Quantity [ 1.00000000e-02, 1.00092155e-02, 1.00184395e-02,..., 9.98159444e+01, 9.99079298e+01, 1.00000000e+02] Hz>
frequency_range = <Quantity [ 1.00000000e-02, 1.00000000e+02] Hz>
name = 'BDecigo'
psd(frequencies)[source]
class grasshopper.interferometers.BigBangObservatory(frequencies=None, configuration=None, obs_time=None)[source]

Bases: grasshopper.interferometers.Interferometer

The Big Bang Observatory.

Attributes:
configuration

Methods

antenna_pattern(theta, phi, psi) Produce the antenna pattern for a detector, given its detector tensor, and a set of angles.
energy_density([frequencies]) Produce the sensitivity curve of the detector in terms of the energy density.
noise_amplitude([frequencies]) The noise amplitude for a detector is defined as $h^2_n(f) = f S_n(f)$ and is designed to incorporate the effect of integrating an inspiralling signal.
plot([axis]) Plot the noise curve for this detector.
psd(frequencies) The power spectrum density of the detector, taken from equation 6 of arxiv:1101.3940.
skymap([nx, ny, psi]) Produce a skymap of the antenna repsonse of the interferometer.
srpsd  
frequencies = <Quantity [ 1.00000000e-03, 1.00115207e-03, 1.00230547e-03,..., 9.97699834e+01, 9.98849255e+01, 1.00000000e+02] Hz>
frequency_range = <Quantity [ 1.00000000e-03, 1.00000000e+02] Hz>
psd(frequencies)[source]

The power spectrum density of the detector, taken from equation 6 of arxiv:1101.3940.

class grasshopper.interferometers.Decigo(frequencies=None, configuration=None, obs_time=None)[source]

Bases: grasshopper.interferometers.Interferometer

The full, original Decigo noise curve, from arxiv:1101.3940.

Attributes:
configuration

Methods

antenna_pattern(theta, phi, psi) Produce the antenna pattern for a detector, given its detector tensor, and a set of angles.
energy_density([frequencies]) Produce the sensitivity curve of the detector in terms of the energy density.
noise_amplitude([frequencies]) The noise amplitude for a detector is defined as $h^2_n(f) = f S_n(f)$ and is designed to incorporate the effect of integrating an inspiralling signal.
plot([axis]) Plot the noise curve for this detector.
psd(frequencies) The power spectrum density of the detector, taken from equation 5 of arxiv:1101.3940.
skymap([nx, ny, psi]) Produce a skymap of the antenna repsonse of the interferometer.
srpsd  
fp = <Quantity 7.36 Hz>
frequencies = <Quantity [ 1.00000000e-02, 1.00092155e-02, 1.00184395e-02,..., 9.98159444e+01, 9.99079298e+01, 1.00000000e+02] Hz>
frequency_range = <Quantity [ 1.00000000e-02, 1.00000000e+02] Hz>
name = 'Decigo'
psd(frequencies)[source]

The power spectrum density of the detector, taken from equation 5 of arxiv:1101.3940.

class grasshopper.interferometers.Detector[source]

This is the base class for all types of detectors, and contains the conversion methods between the various different ways of expressing the noise levels (sensitivity) of any detector.

Methods

energy_density([frequencies]) Produce the sensitivity curve of the detector in terms of the energy density.
noise_amplitude([frequencies]) The noise amplitude for a detector is defined as $h^2_n(f) = f S_n(f)$ and is designed to incorporate the effect of integrating an inspiralling signal.
plot([axis]) Plot the noise curve for this detector.
srpsd  
energy_density(frequencies=None)[source]

Produce the sensitivity curve of the detector in terms of the energy density.

Parameters:
frequencies : ndarray

An array of frequencies, in units of Hz

Returns:
energy_density : ndarray

An array of the dimensionless energy density of the sensitivity of the detector.

noise_amplitude(frequencies=None)[source]

The noise amplitude for a detector is defined as $h^2_n(f) = f S_n(f)$ and is designed to incorporate the effect of integrating an inspiralling signal.

Parameters:
frequencies : ndarray

An array of frequencies, in units of Hz

Returns:
noise_amplitude : ndarray

An array of the noise amplitudes correcsponding to the input frequency values

plot(axis=None, **kwargs)[source]

Plot the noise curve for this detector.

srpsd(frequencies=None)[source]
class grasshopper.interferometers.EinsteinTelescope(frequencies=None, configuration=None, obs_time=None)[source]

Bases: grasshopper.interferometers.Interferometer

The Einstein Telescope Interferometer

Methods

antenna_pattern(theta, phi, psi) Produce the antenna pattern for a detector, given its detector tensor, and a set of angles.
energy_density([frequencies]) Produce the sensitivity curve of the detector in terms of the energy density.
noise_amplitude([frequencies]) The noise amplitude for a detector is defined as $h^2_n(f) = f S_n(f)$ and is designed to incorporate the effect of integrating an inspiralling signal.
plot([axis]) Plot the noise curve for this detector.
psd([frequencies]) Calculate the one-sided power spectral desnity for a detector.
skymap([nx, ny, psi]) Produce a skymap of the antenna repsonse of the interferometer.
srpsd  
configuration = 'ET-D'
configurations = {'ET-D': 'data/ETD-psd.txt'}
frequencies = <Quantity [ 1.00000000e-01, 2.60060015e+00, 5.10120030e+00,..., 9.99499880e+03, 9.99749940e+03, 1.00000000e+04] Hz>
frequency_range = <Quantity [ 1.00000000e-01, 1.00000000e+04] Hz>
length = <Quantity 10.0 km>
name = 'ET'
psd(frequencies=None)[source]

Calculate the one-sided power spectral desnity for a detector. If a particular configuration is specified then the results will be returned for a spline fit to that configuration’s curve, if available.

Parameters:
frequencies : ndarray

An array of frequencies where the PSD should be evaluated.

configuration : str

The configuration of the detector for which the curve should be returned.

class grasshopper.interferometers.EvolvedLISA(frequencies=None, configuration=None, obs_time=None)[source]

Bases: grasshopper.interferometers.Interferometer

The eLISA Interferometer

Attributes:
configuration

Methods

antenna_pattern(theta, phi, psi) Produce the antenna pattern for a detector, given its detector tensor, and a set of angles.
energy_density([frequencies]) Produce the sensitivity curve of the detector in terms of the energy density.
noise_amplitude([frequencies]) The noise amplitude for a detector is defined as $h^2_n(f) = f S_n(f)$ and is designed to incorporate the effect of integrating an inspiralling signal.
plot([axis]) Plot the noise curve for this detector.
skymap([nx, ny, psi]) Produce a skymap of the antenna repsonse of the interferometer.
psd  
srpsd  
L = <Quantity 1000000000.0 m>
frequencies = <Quantity [ 1.00000000e-06, 1.00138264e-06, 1.00276720e-06,..., 9.97240436e-01, 9.98619265e-01, 1.00000000e+00] Hz>
fs = <Quantity 3e-05 Hz>
name = 'eLISA'
psd(frequencies)[source]
class grasshopper.interferometers.GEO(frequencies=None, configuration=None, obs_time=None)[source]

Bases: grasshopper.interferometers.Interferometer

The GEO600 Interferometer

Attributes:
configuration

Methods

antenna_pattern(theta, phi, psi) Produce the antenna pattern for a detector, given its detector tensor, and a set of angles.
energy_density([frequencies]) Produce the sensitivity curve of the detector in terms of the energy density.
noise_amplitude([frequencies]) The noise amplitude for a detector is defined as $h^2_n(f) = f S_n(f)$ and is designed to incorporate the effect of integrating an inspiralling signal.
plot([axis]) Plot the noise curve for this detector.
psd([frequencies]) Calculate the one-sided power spectral desnity for a detector.
skymap([nx, ny, psi]) Produce a skymap of the antenna repsonse of the interferometer.
noise_spectrum  
srpsd  
S0 = <Quantity 1e-46 1 / Hz>
f0 = <Quantity 150.0 Hz>
fs = <Quantity 40.0 Hz>
name = 'GEO600'
noise_spectrum(x)[source]
class grasshopper.interferometers.InitialLIGO(frequencies=None, configuration=None, obs_time=None)[source]

Bases: grasshopper.interferometers.Interferometer

The iLIGO Interferometer

Attributes:
configuration

Methods

antenna_pattern(theta, phi, psi) Produce the antenna pattern for a detector, given its detector tensor, and a set of angles.
energy_density([frequencies]) Produce the sensitivity curve of the detector in terms of the energy density.
noise_amplitude([frequencies]) The noise amplitude for a detector is defined as $h^2_n(f) = f S_n(f)$ and is designed to incorporate the effect of integrating an inspiralling signal.
plot([axis]) Plot the noise curve for this detector.
psd([frequencies]) Calculate the one-sided power spectral desnity for a detector.
skymap([nx, ny, psi]) Produce a skymap of the antenna repsonse of the interferometer.
noise_spectrum  
srpsd  
S0 = <Quantity 9e-46 1 / Hz>
f0 = <Quantity 150.0 Hz>
fs = <Quantity 40.0 Hz>
name = 'Initial LIGO'
noise_spectrum(x)[source]
class grasshopper.interferometers.Interferometer(frequencies=None, configuration=None, obs_time=None)[source]

Bases: grasshopper.interferometers.Detector

The base class to describe an interferometer.

Attributes:
configuration

Methods

antenna_pattern(theta, phi, psi) Produce the antenna pattern for a detector, given its detector tensor, and a set of angles.
energy_density([frequencies]) Produce the sensitivity curve of the detector in terms of the energy density.
noise_amplitude([frequencies]) The noise amplitude for a detector is defined as $h^2_n(f) = f S_n(f)$ and is designed to incorporate the effect of integrating an inspiralling signal.
plot([axis]) Plot the noise curve for this detector.
psd([frequencies]) Calculate the one-sided power spectral desnity for a detector.
skymap([nx, ny, psi]) Produce a skymap of the antenna repsonse of the interferometer.
srpsd  
S0 = <Quantity 1e-46 1 / Hz>
antenna_pattern(theta, phi, psi)[source]

Produce the antenna pattern for a detector, given its detector tensor, and a set of angles.

Parameters:
theta : float

The altitude angle.

phi : float

The azimuthal angle.

psi : float or list

The polarisation angle. If psi is a list of two angles the returned antenna patterns will be the integrated response between those two polsarisation angles.

Returns:
F+ : float

The antenna response to the ‘+’ polarisation state.

Fx : float

The antenna response to the ‘x’ polsarisation state.

|F| : float

The combined antenna response (sqrt(F+^2 + Fx^2)).

configuration = None
detector_tensor = <Quantity [[ 4., 0., 0.], [ 0.,-4., 0.], [ 0., 0., 0.]] km>
f0 = <Quantity 150.0 Hz>
frequencies = <Quantity [ 1.00000000e+01, 1.00230582e+01, 1.00461695e+01,..., 9.95404271e+04, 9.97699489e+04, 1.00000000e+05] Hz>
fs = <Quantity 40.0 Hz>
length = <Quantity 4.0 km>
name = 'Generic Interferometer'
psd(frequencies=None)[source]

Calculate the one-sided power spectral desnity for a detector. If a particular configuration is specified then the results will be returned for a spline fit to that configuration’s curve, if available.

Parameters:
frequencies : ndarray

An array of frequencies where the PSD should be evaluated.

configuration : str

The configuration of the detector for which the curve should be returned.

skymap(nx=200, ny=100, psi=[0, 3.141592653589793])[source]

Produce a skymap of the antenna repsonse of the interferometer.

Parameters:
nx : int

The number of locations along the horizontal axis to produce the map at defaults to 200.

ny : int

The number of locations along the vertical axis to produce the map at defaults to 100

psi : float or list

The polarisation angle to produce the map at. If a list is given then the integrated response is given between those angles.

Returns:
x : ndarray

The x values for the map

y: ndarray

The y values for the map

antennap : ndarray

The values of the sensitivity in the + polarisation

antennax : ndarray

The values of the sensitivity in the x polarisation

antennac : ndarray

The values of the combined polarisation sensitivities

xhat = array([1, 0, 0])
yhat = array([0, 1, 0])
zhat = array([0, 0, 1])
class grasshopper.interferometers.LISA(frequencies=None, configuration=None, obs_time=None)[source]

Bases: grasshopper.interferometers.Interferometer

The LISA Interferometer in its mission-accepted state, as of 2018

Attributes:
configuration

Methods

antenna_pattern(theta, phi, psi) Produce the antenna pattern for a detector, given its detector tensor, and a set of angles.
confusion_noise(frequencies[, observation_time]) The noise created by unresolvable galactic binaries at low frequencies.
energy_density([frequencies]) Produce the sensitivity curve of the detector in terms of the energy density.
metrology_noise(frequencies) Calculate the noise due to the single-link optical metrology, from arxiv:1803.01944.
noise_amplitude([frequencies]) The noise amplitude for a detector is defined as $h^2_n(f) = f S_n(f)$ and is designed to incorporate the effect of integrating an inspiralling signal.
plot([axis]) Plot the noise curve for this detector.
single_mass_noise(frequencies) The acceleration noise for a single test mass.
skymap([nx, ny, psi]) Produce a skymap of the antenna repsonse of the interferometer.
psd  
srpsd  
L = <Quantity 2500000000.0 m>
confusion_noise(frequencies, observation_time=0.5)[source]

The noise created by unresolvable galactic binaries at low frequencies.

frequencies = <Quantity [ 1.00000000e-05, 1.00115207e-05, 1.00230547e-05,..., 9.97699834e-01, 9.98849255e-01, 1.00000000e+00] Hz>
fs = <Quantity 3e-05 Hz>
fstar = <Quantity 0.01908 Hz>
metrology_noise(frequencies)[source]

Calculate the noise due to the single-link optical metrology, from arxiv:1803.01944.

name = 'LISA'
psd(frequencies)[source]
single_mass_noise(frequencies)[source]

The acceleration noise for a single test mass.

class grasshopper.interferometers.TAMA(frequencies=None, configuration=None, obs_time=None)[source]

Bases: grasshopper.interferometers.Interferometer

The TAMA Interferometer

Attributes:
configuration

Methods

antenna_pattern(theta, phi, psi) Produce the antenna pattern for a detector, given its detector tensor, and a set of angles.
energy_density([frequencies]) Produce the sensitivity curve of the detector in terms of the energy density.
noise_amplitude([frequencies]) The noise amplitude for a detector is defined as $h^2_n(f) = f S_n(f)$ and is designed to incorporate the effect of integrating an inspiralling signal.
plot([axis]) Plot the noise curve for this detector.
psd([frequencies]) Calculate the one-sided power spectral desnity for a detector.
skymap([nx, ny, psi]) Produce a skymap of the antenna repsonse of the interferometer.
noise_spectrum  
srpsd  
S0 = <Quantity 7.5e-46 1 / Hz>
f0 = <Quantity 400.0 Hz>
fs = <Quantity 75.0 Hz>
name = 'TAMA'
noise_spectrum(x)[source]
class grasshopper.interferometers.TimingArray[source]

Bases: grasshopper.interferometers.Detector

A class to represent a pulsar timing array.

Methods

energy_density([frequencies]) Produce the sensitivity curve of the detector in terms of the energy density.
noise_amplitude([frequencies]) The noise amplitude for a detector is defined as $h^2_n(f) = f S_n(f)$ and is designed to incorporate the effect of integrating an inspiralling signal.
plot([axis]) Plot the noise curve for this detector.
Pn  
Sn  
noise_spectrum  
psd  
srpsd  
Pn(frequencies)[source]
Sn(frequencies)[source]
T = <Quantity 15.0 yr>
dt = <Quantity 14.0 d>
frequencies = <Quantity [ 1.00000000e-10, 1.00926219e-10, 1.01861017e-10, 1.02804473e-10, 1.03756668e-10, 1.04717682e-10, 1.05687597e-10, 1.06666496e-10, 1.07654461e-10, 1.08651577e-10, 1.09657929e-10, 1.10673602e-10, 1.11698682e-10, 1.12733256e-10, 1.13777413e-10, 1.14831241e-10, 1.15894830e-10, 1.16968270e-10, 1.18051653e-10, 1.19145070e-10, 1.20248614e-10, 1.21362380e-10, 1.22486461e-10, 1.23620954e-10, 1.24765955e-10, 1.25921561e-10, 1.27087871e-10, 1.28264983e-10, 1.29452998e-10, 1.30652016e-10, 1.31862140e-10, 1.33083472e-10, 1.34316117e-10, 1.35560179e-10, 1.36815763e-10, 1.38082977e-10, 1.39361927e-10, 1.40652724e-10, 1.41955477e-10, 1.43270295e-10, 1.44597292e-10, 1.45936580e-10, 1.47288272e-10, 1.48652484e-10, 1.50029332e-10, 1.51418933e-10, 1.52821404e-10, 1.54236865e-10, 1.55665436e-10, 1.57107239e-10, 1.58562396e-10, 1.60031031e-10, 1.61513269e-10, 1.63009236e-10, 1.64519059e-10, 1.66042866e-10, 1.67580786e-10, 1.69132952e-10, 1.70699493e-10, 1.72280545e-10, 1.73876240e-10, 1.75486715e-10, 1.77112106e-10, 1.78752553e-10, 1.80408193e-10, 1.82079168e-10, 1.83765620e-10, 1.85467692e-10, 1.87185529e-10, 1.88919278e-10, 1.90669084e-10, 1.92435098e-10, 1.94217468e-10, 1.96016347e-10, 1.97831888e-10, 1.99664245e-10, 2.01513573e-10, 2.03380031e-10, 2.05263775e-10, 2.07164968e-10, 2.09083769e-10, 2.11020343e-10, 2.12974854e-10, 2.14947467e-10, 2.16938352e-10, 2.18947676e-10, 2.20975611e-10, 2.23022330e-10, 2.25088005e-10, 2.27172813e-10, 2.29276931e-10, 2.31400538e-10, 2.33543814e-10, 2.35706941e-10, 2.37890104e-10, 2.40093488e-10, 2.42317279e-10, 2.44561668e-10, 2.46826845e-10, 2.49113003e-10, 2.51420335e-10, 2.53749038e-10, 2.56099310e-10, 2.58471351e-10, 2.60865362e-10, 2.63281547e-10, 2.65720111e-10, 2.68181261e-10, 2.70665207e-10, 2.73172160e-10, 2.75702333e-10, 2.78255940e-10, 2.80833200e-10, 2.83434331e-10, 2.86059554e-10, 2.88709092e-10, 2.91383170e-10, 2.94082017e-10, 2.96805861e-10, 2.99554933e-10, 3.02329468e-10, 3.05129702e-10, 3.07955871e-10, 3.10808217e-10, 3.13686982e-10, 3.16592411e-10, 3.19524751e-10, 3.22484250e-10, 3.25471161e-10, 3.28485737e-10, 3.31528234e-10, 3.34598912e-10, 3.37698031e-10, 3.40825855e-10, 3.43982649e-10, 3.47168682e-10, 3.50384225e-10, 3.53629550e-10, 3.56904935e-10, 3.60210656e-10, 3.63546996e-10, 3.66914238e-10, 3.70312668e-10, 3.73742574e-10, 3.77204249e-10, 3.80697987e-10, 3.84224085e-10, 3.87782841e-10, 3.91374560e-10, 3.94999546e-10, 3.98658107e-10, 4.02350555e-10, 4.06077203e-10, 4.09838367e-10, 4.13634368e-10, 4.17465529e-10, 4.21332174e-10, 4.25234633e-10, 4.29173238e-10, 4.33148322e-10, 4.37160225e-10, 4.41209286e-10, 4.45295851e-10, 4.49420266e-10, 4.53582883e-10, 4.57784054e-10, 4.62024137e-10, 4.66303493e-10, 4.70622485e-10, 4.74981480e-10, 4.79380850e-10, 4.83820966e-10, 4.88302209e-10, 4.92824957e-10, 4.97389596e-10, 5.01996513e-10, 5.06646101e-10, 5.11338754e-10, 5.16074871e-10, 5.20854855e-10, 5.25679112e-10, 5.30548053e-10, 5.35462090e-10, 5.40421642e-10, 5.45427131e-10, 5.50478981e-10, 5.55577622e-10, 5.60723488e-10, 5.65917016e-10, 5.71158648e-10, 5.76448828e-10, 5.81788007e-10, 5.87176639e-10, 5.92615181e-10, 5.98104096e-10, 6.03643851e-10, 6.09234915e-10, 6.14877765e-10, 6.20572881e-10, 6.26320745e-10, 6.32121848e-10, 6.37976681e-10, 6.43885743e-10, 6.49849535e-10, 6.55868566e-10, 6.61943346e-10, 6.68074392e-10, 6.74262224e-10, 6.80507370e-10, 6.86810359e-10, 6.93171728e-10, 6.99592017e-10, 7.06071771e-10, 7.12611543e-10, 7.19211887e-10, 7.25873365e-10, 7.32596543e-10, 7.39381992e-10, 7.46230289e-10, 7.53142017e-10, 7.60117762e-10, 7.67158118e-10, 7.74263683e-10, 7.81435061e-10, 7.88672862e-10, 7.95977700e-10, 8.03350198e-10, 8.10790981e-10, 8.18300682e-10, 8.25879939e-10, 8.33529397e-10, 8.41249705e-10, 8.49041520e-10, 8.56905505e-10, 8.64842328e-10, 8.72852662e-10, 8.80937190e-10, 8.89096599e-10, 8.97331581e-10, 9.05642838e-10, 9.14031075e-10, 9.22497005e-10, 9.31041349e-10, 9.39664831e-10, 9.48368187e-10, 9.57152154e-10, 9.66017480e-10, 9.74964918e-10, 9.83995230e-10, 9.93109181e-10, 1.00230755e-09, 1.01159111e-09, 1.02096066e-09, 1.03041699e-09, 1.03996091e-09, 1.04959323e-09, 1.05931476e-09, 1.06912634e-09, 1.07902879e-09, 1.08902296e-09, 1.09910970e-09, 1.10928986e-09, 1.11956432e-09, 1.12993394e-09, 1.14039960e-09, 1.15096220e-09, 1.16162263e-09, 1.17238180e-09, 1.18324063e-09, 1.19420003e-09, 1.20526094e-09, 1.21642429e-09, 1.22769105e-09, 1.23906216e-09, 1.25053859e-09, 1.26212131e-09, 1.27381132e-09, 1.28560961e-09, 1.29751717e-09, 1.30953502e-09, 1.32166418e-09, 1.33390569e-09, 1.34626058e-09, 1.35872990e-09, 1.37131472e-09, 1.38401610e-09, 1.39683512e-09, 1.40977287e-09, 1.42283046e-09, 1.43600898e-09, 1.44930957e-09, 1.46273336e-09, 1.47628147e-09, 1.48995507e-09, 1.50375532e-09, 1.51768339e-09, 1.53174046e-09, 1.54592774e-09, 1.56024641e-09, 1.57469771e-09, 1.58928287e-09, 1.60400311e-09, 1.61885969e-09, 1.63385388e-09, 1.64898694e-09, 1.66426018e-09, 1.67967487e-09, 1.69523234e-09, 1.71093391e-09, 1.72678090e-09, 1.74277468e-09, 1.75891659e-09, 1.77520801e-09, 1.79165033e-09, 1.80824493e-09, 1.82499324e-09, 1.84189668e-09, 1.85895668e-09, 1.87617469e-09, 1.89355218e-09, 1.91109062e-09, 1.92879151e-09, 1.94665634e-09, 1.96468665e-09, 1.98288395e-09, 2.00124980e-09, 2.01978576e-09, 2.03849340e-09, 2.05737431e-09, 2.07643011e-09, 2.09566240e-09, 2.11507282e-09, 2.13466303e-09, 2.15443469e-09, 2.17438948e-09, 2.19452909e-09, 2.21485523e-09, 2.23536965e-09, 2.25607407e-09, 2.27697026e-09, 2.29805999e-09, 2.31934506e-09, 2.34082728e-09, 2.36250847e-09, 2.38439047e-09, 2.40647515e-09, 2.42876438e-09, 2.45126006e-09, 2.47396410e-09, 2.49687843e-09, 2.52000499e-09, 2.54334576e-09, 2.56690272e-09, 2.59067786e-09, 2.61467321e-09, 2.63889081e-09, 2.66333273e-09, 2.68800102e-09, 2.71289780e-09, 2.73802518e-09, 2.76338529e-09, 2.78898029e-09, 2.81481236e-09, 2.84088369e-09, 2.86719650e-09, 2.89375302e-09, 2.92055551e-09, 2.94760626e-09, 2.97490755e-09, 3.00246171e-09, 3.03027108e-09, 3.05833803e-09, 3.08666494e-09, 3.11525422e-09, 3.14410830e-09, 3.17322963e-09, 3.20262069e-09, 3.23228398e-09, 3.26222201e-09, 3.29243733e-09, 3.32293252e-09, 3.35371015e-09, 3.38477286e-09, 3.41612327e-09, 3.44776405e-09, 3.47969790e-09, 3.51192753e-09, 3.54445567e-09, 3.57728510e-09, 3.61041860e-09, 3.64385898e-09, 3.67760910e-09, 3.71167182e-09, 3.74605003e-09, 3.78074666e-09, 3.81576466e-09, 3.85110700e-09, 3.88677669e-09, 3.92277676e-09, 3.95911027e-09, 3.99578030e-09, 4.03278998e-09, 4.07014245e-09, 4.10784089e-09, 4.14588850e-09, 4.18428851e-09, 4.22304419e-09, 4.26215883e-09, 4.30163576e-09, 4.34147833e-09, 4.38168993e-09, 4.42227398e-09, 4.46323393e-09, 4.50457325e-09, 4.54629547e-09, 4.58840413e-09, 4.63090280e-09, 4.67379511e-09, 4.71708469e-09, 4.76077523e-09, 4.80487044e-09, 4.84937407e-09, 4.89428990e-09, 4.93962174e-09, 4.98537346e-09, 5.03154895e-09, 5.07815211e-09, 5.12518693e-09, 5.17265739e-09, 5.22056753e-09, 5.26892142e-09, 5.31772318e-09, 5.36697695e-09, 5.41668691e-09, 5.46685730e-09, 5.51749238e-09, 5.56859644e-09, 5.62017385e-09, 5.67222897e-09, 5.72476624e-09, 5.77779012e-09, 5.83130511e-09, 5.88531578e-09, 5.93982669e-09, 5.99484250e-09, 6.05036788e-09, 6.10640754e-09, 6.16296626e-09, 6.22004883e-09, 6.27766011e-09, 6.33580499e-09, 6.39448843e-09, 6.45371540e-09, 6.51349095e-09, 6.57382014e-09, 6.63470812e-09, 6.69616005e-09, 6.75818117e-09, 6.82077673e-09, 6.88395207e-09, 6.94771255e-09, 7.01206359e-09, 7.07701066e-09, 7.14255929e-09, 7.20871503e-09, 7.27548353e-09, 7.34287045e-09, 7.41088152e-09, 7.47952252e-09, 7.54879928e-09, 7.61871770e-09, 7.68928372e-09, 7.76050334e-09, 7.83238260e-09, 7.90492762e-09, 7.97814457e-09, 8.05203967e-09, 8.12661920e-09, 8.20188950e-09, 8.27785697e-09, 8.35452806e-09, 8.43190929e-09, 8.51000725e-09, 8.58882856e-09, 8.66837993e-09, 8.74866812e-09, 8.82969996e-09, 8.91148232e-09, 8.99402217e-09, 9.07732653e-09, 9.16140246e-09, 9.24625712e-09, 9.33189772e-09, 9.41833153e-09, 9.50556592e-09, 9.59360829e-09, 9.68246612e-09, 9.77214697e-09, 9.86265846e-09, 9.95400829e-09, 1.00462042e-08, 1.01392541e-08, 1.02331658e-08, 1.03279473e-08, 1.04236067e-08, 1.05201522e-08, 1.06175918e-08, 1.07159340e-08, 1.08151870e-08, 1.09153594e-08, 1.10164595e-08, 1.11184960e-08, 1.12214777e-08, 1.13254132e-08, 1.14303113e-08, 1.15361810e-08, 1.16430313e-08, 1.17508713e-08, 1.18597101e-08, 1.19695570e-08, 1.20804213e-08, 1.21923125e-08, 1.23052400e-08, 1.24192135e-08, 1.25342427e-08, 1.26503372e-08, 1.27675070e-08, 1.28857621e-08, 1.30051125e-08, 1.31255684e-08, 1.32471399e-08, 1.33698374e-08, 1.34936714e-08, 1.36186524e-08, 1.37447909e-08, 1.38720978e-08, 1.40005838e-08, 1.41302599e-08, 1.42611371e-08, 1.43932264e-08, 1.45265393e-08, 1.46610868e-08, 1.47968806e-08, 1.49339322e-08, 1.50722531e-08, 1.52118552e-08, 1.53527503e-08, 1.54949504e-08, 1.56384676e-08, 1.57833141e-08, 1.59295021e-08, 1.60770442e-08, 1.62259529e-08, 1.63762407e-08, 1.65279206e-08, 1.66810054e-08, 1.68355080e-08, 1.69914417e-08, 1.71488197e-08, 1.73076553e-08, 1.74679622e-08, 1.76297538e-08, 1.77930439e-08, 1.79578465e-08, 1.81241755e-08, 1.82920450e-08, 1.84614695e-08, 1.86324631e-08, 1.88050406e-08, 1.89792164e-08, 1.91550056e-08, 1.93324229e-08, 1.95114835e-08, 1.96922026e-08, 1.98745955e-08, 2.00586778e-08, 2.02444651e-08, 2.04319732e-08, 2.06212180e-08, 2.08122157e-08, 2.10049824e-08, 2.11995346e-08, 2.13958887e-08, 2.15940615e-08, 2.17940698e-08, 2.19959307e-08, 2.21996612e-08, 2.24052787e-08, 2.26128007e-08, 2.28222447e-08, 2.30336287e-08, 2.32469706e-08, 2.34622885e-08, 2.36796007e-08, 2.38989257e-08, 2.41202821e-08, 2.43436887e-08, 2.45691646e-08, 2.47967289e-08, 2.50264010e-08, 2.52582003e-08, 2.54921465e-08, 2.57282597e-08, 2.59665597e-08, 2.62070670e-08, 2.64498018e-08, 2.66947849e-08, 2.69420371e-08, 2.71915794e-08, 2.74434330e-08, 2.76976194e-08, 2.79541600e-08, 2.82130768e-08, 2.84743917e-08, 2.87381269e-08, 2.90043049e-08, 2.92729484e-08, 2.95440800e-08, 2.98177229e-08, 3.00939003e-08, 3.03726358e-08, 3.06539530e-08, 3.09378757e-08, 3.12244282e-08, 3.15136348e-08, 3.18055202e-08, 3.21001090e-08, 3.23974263e-08, 3.26974974e-08, 3.30003479e-08, 3.33060034e-08, 3.36144900e-08, 3.39258338e-08, 3.42400614e-08, 3.45571994e-08, 3.48772747e-08, 3.52003147e-08, 3.55263468e-08, 3.58553986e-08, 3.61874981e-08, 3.65226736e-08, 3.68609536e-08, 3.72023668e-08, 3.75469422e-08, 3.78947092e-08, 3.82456972e-08, 3.85999362e-08, 3.89574562e-08, 3.93182876e-08, 3.96824610e-08, 4.00500076e-08, 4.04209584e-08, 4.07953450e-08, 4.11731993e-08, 4.15545533e-08, 4.19394396e-08, 4.23278907e-08, 4.27199397e-08, 4.31156199e-08, 4.35149650e-08, 4.39180089e-08, 4.43247859e-08, 4.47353305e-08, 4.51496777e-08, 4.55678627e-08, 4.59899209e-08, 4.64158883e-08, 4.68458012e-08, 4.72796959e-08, 4.77176095e-08, 4.81595791e-08, 4.86056423e-08, 4.90558371e-08, 4.95102016e-08, 4.99687745e-08, 5.04315949e-08, 5.08987019e-08, 5.13701354e-08, 5.18459354e-08, 5.23261424e-08, 5.28107971e-08, 5.32999408e-08, 5.37936150e-08, 5.42918618e-08, 5.47947234e-08, 5.53022426e-08, 5.58144625e-08, 5.63314267e-08, 5.68531791e-08, 5.73797641e-08, 5.79112265e-08, 5.84476113e-08, 5.89889643e-08, 5.95353313e-08, 6.00867589e-08, 6.06432940e-08, 6.12049837e-08, 6.17718760e-08, 6.23440189e-08, 6.29214611e-08, 6.35042517e-08, 6.40924402e-08, 6.46860766e-08, 6.52852114e-08, 6.58898955e-08, 6.65001803e-08, 6.71161177e-08, 6.77377600e-08, 6.83651600e-08, 6.89983712e-08, 6.96374473e-08, 7.02824426e-08, 7.09334120e-08, 7.15904109e-08, 7.22534949e-08, 7.29227206e-08, 7.35981448e-08, 7.42798248e-08, 7.49678187e-08, 7.56621850e-08, 7.63629826e-08, 7.70702711e-08, 7.77841107e-08, 7.85045620e-08, 7.92316862e-08, 7.99655453e-08, 8.07062014e-08, 8.14537177e-08, 8.22081576e-08, 8.29695852e-08, 8.37380654e-08, 8.45136633e-08, 8.52964450e-08, 8.60864770e-08, 8.68838264e-08, 8.76885609e-08, 8.85007491e-08, 8.93204600e-08, 9.01477631e-08, 9.09827289e-08, 9.18254284e-08, 9.26759330e-08, 9.35343152e-08, 9.44006479e-08, 9.52750047e-08, 9.61574600e-08, 9.70480888e-08, 9.79469667e-08, 9.88541702e-08, 9.97697764e-08, 1.00693863e-07, 1.01626509e-07, 1.02567793e-07, 1.03517796e-07, 1.04476597e-07, 1.05444279e-07, 1.06420924e-07, 1.07406615e-07, 1.08401436e-07, 1.09405471e-07, 1.10418805e-07, 1.11441525e-07, 1.12473718e-07, 1.13515471e-07, 1.14566873e-07, 1.15628013e-07, 1.16698982e-07, 1.17779870e-07, 1.18870770e-07, 1.19971774e-07, 1.21082975e-07, 1.22204469e-07, 1.23336350e-07, 1.24478715e-07, 1.25631660e-07, 1.26795285e-07, 1.27969687e-07, 1.29154967e-07, 1.30351224e-07, 1.31558562e-07, 1.32777083e-07, 1.34006890e-07, 1.35248087e-07, 1.36500781e-07, 1.37765077e-07, 1.39041083e-07, 1.40328908e-07, 1.41628662e-07, 1.42940453e-07, 1.44264395e-07, 1.45600600e-07, 1.46949180e-07, 1.48310251e-07, 1.49683929e-07, 1.51070330e-07, 1.52469573e-07, 1.53881775e-07, 1.55307057e-07, 1.56745541e-07, 1.58197348e-07, 1.59662602e-07, 1.61141428e-07, 1.62633950e-07, 1.64140297e-07, 1.65660596e-07, 1.67194976e-07, 1.68743568e-07, 1.70306503e-07, 1.71883914e-07, 1.73475936e-07, 1.75082703e-07, 1.76704353e-07, 1.78341022e-07, 1.79992851e-07, 1.81659979e-07, 1.83342548e-07, 1.85040702e-07, 1.86754584e-07, 1.88484341e-07, 1.90230119e-07, 1.91992067e-07, 1.93770334e-07, 1.95565072e-07, 1.97376433e-07, 1.99204571e-07, 2.01049642e-07, 2.02911802e-07, 2.04791210e-07, 2.06688025e-07, 2.08602409e-07, 2.10534524e-07, 2.12484535e-07, 2.14452608e-07, 2.16438909e-07, 2.18443607e-07, 2.20466874e-07, 2.22508880e-07, 2.24569800e-07, 2.26649808e-07, 2.28749082e-07, 2.30867799e-07, 2.33006141e-07, 2.35164288e-07, 2.37342425e-07, 2.39540736e-07, 2.41759408e-07, 2.43998630e-07, 2.46258592e-07, 2.48539486e-07, 2.50841506e-07, 2.53164848e-07, 2.55509709e-07, 2.57876289e-07, 2.60264788e-07, 2.62675410e-07, 2.65108360e-07, 2.67563844e-07, 2.70042072e-07, 2.72543253e-07, 2.75067601e-07, 2.77615329e-07, 2.80186656e-07, 2.82781798e-07, 2.85400977e-07, 2.88044415e-07, 2.90712338e-07, 2.93404971e-07, 2.96122544e-07, 2.98865287e-07, 3.01633435e-07, 3.04427221e-07, 3.07246884e-07, 3.10092664e-07, 3.12964801e-07, 3.15863541e-07, 3.18789129e-07, 3.21741815e-07, 3.24721849e-07, 3.27729485e-07, 3.30764978e-07, 3.33828586e-07, 3.36920571e-07, 3.40041193e-07, 3.43190720e-07, 3.46369418e-07, 3.49577557e-07, 3.52815412e-07, 3.56083255e-07, 3.59381366e-07, 3.62710025e-07, 3.66069515e-07, 3.69460121e-07, 3.72882131e-07, 3.76335836e-07, 3.79821531e-07, 3.83339510e-07, 3.86890074e-07, 3.90473524e-07, 3.94090164e-07, 3.97740302e-07, 4.01424249e-07, 4.05142317e-07, 4.08894823e-07, 4.12682085e-07, 4.16504425e-07, 4.20362168e-07, 4.24255643e-07, 4.28185180e-07, 4.32151113e-07, 4.36153779e-07, 4.40193519e-07, 4.44270675e-07, 4.48385595e-07, 4.52538628e-07, 4.56730127e-07, 4.60960449e-07, 4.65229952e-07, 4.69539001e-07, 4.73887961e-07, 4.78277202e-07, 4.82707097e-07, 4.87178022e-07, 4.91690358e-07, 4.96244488e-07, 5.00840799e-07, 5.05479682e-07, 5.10161531e-07, 5.14886745e-07, 5.19655724e-07, 5.24468875e-07, 5.29326606e-07, 5.34229330e-07, 5.39177464e-07, 5.44171429e-07, 5.49211648e-07, 5.54298552e-07, 5.59432571e-07, 5.64614142e-07, 5.69843706e-07, 5.75121707e-07, 5.80448594e-07, 5.85824820e-07, 5.91250841e-07, 5.96727120e-07, 6.02254120e-07, 6.07832313e-07, 6.13462172e-07, 6.19144176e-07, 6.24878807e-07, 6.30666554e-07, 6.36507908e-07, 6.42403366e-07, 6.48353429e-07, 6.54358602e-07, 6.60419396e-07, 6.66536327e-07, 6.72709914e-07, 6.78940681e-07, 6.85229160e-07, 6.91575883e-07, 6.97981391e-07, 7.04446228e-07, 7.10970943e-07, 7.17556092e-07, 7.24202233e-07, 7.30909933e-07, 7.37679760e-07, 7.44512291e-07, 7.51408106e-07, 7.58367791e-07, 7.65391939e-07, 7.72481145e-07, 7.79636013e-07, 7.86857151e-07, 7.94145172e-07, 8.01500696e-07, 8.08924349e-07, 8.16416760e-07, 8.23978568e-07, 8.31610415e-07, 8.39312950e-07, 8.47086827e-07, 8.54932707e-07, 8.62851257e-07, 8.70843150e-07, 8.78909065e-07, 8.87049689e-07, 8.95265713e-07, 9.03557835e-07, 9.11926760e-07, 9.20373200e-07, 9.28897872e-07, 9.37501502e-07, 9.46184819e-07, 9.54948564e-07, 9.63793480e-07, 9.72720319e-07, 9.81729841e-07, 9.90822810e-07, 1.00000000e-06] Hz>
n = 20
name = 'Generic PTA'
noise_spectrum(frequencies)[source]
psd(frequencies)[source]
sigma = <Quantity 100.0 ns>
zeta_sum = 4.74
class grasshopper.interferometers.Virgo(frequencies=None, configuration=None, obs_time=None)[source]

Bases: grasshopper.interferometers.Interferometer

The Virgo Interferometer

Attributes:
configuration

Methods

antenna_pattern(theta, phi, psi) Produce the antenna pattern for a detector, given its detector tensor, and a set of angles.
energy_density([frequencies]) Produce the sensitivity curve of the detector in terms of the energy density.
noise_amplitude([frequencies]) The noise amplitude for a detector is defined as $h^2_n(f) = f S_n(f)$ and is designed to incorporate the effect of integrating an inspiralling signal.
plot([axis]) Plot the noise curve for this detector.
psd([frequencies]) Calculate the one-sided power spectral desnity for a detector.
skymap([nx, ny, psi]) Produce a skymap of the antenna repsonse of the interferometer.
noise_spectrum  
srpsd  
S0 = <Quantity 3.2e-46 1 / Hz>
f0 = <Quantity 500.0 Hz>
fs = <Quantity 20.0 Hz>
name = 'Virgo'
noise_spectrum(x)[source]
grasshopper.interferometers.rot_x(theta)[source]
grasshopper.interferometers.rot_y(psi)[source]
grasshopper.interferometers.rot_z(phi)[source]

grasshopper.sources module

class grasshopper.sources.CBC(frequencies=None, m1=None, m2=None, r=None)[source]

Bases: grasshopper.sources.Source

A compact binary coallescence source

Methods

fdot([frequencies, M]) Calculate the first time derivative of the CBC’s frequency.
ncycles([frequencies, M]) Calculate the number of cycles that the CBC spends in each frequency bin.
psd([frequencies]) The one-sided power spectral density
characteristic_strain  
chirp_mass  
energy_density  
fisco  
plot  
raw_strain  
snr  
srpsd  
M = <Quantity 30.0 solMass>
characteristic_strain(frequencies=None)[source]
chirp_mass()[source]
fdot(frequencies=None, M=None)[source]

Calculate the first time derivative of the CBC’s frequency.

frequencies : ndarray
The frequencies at which the number of cycles need to be found.
M : float
The chirp mass of the CBC.
Returns:
fdot : ndarray

The df/dt of each frequency.

fisco()[source]
name = 'CBC'
ncycles(frequencies=None, M=None)[source]

Calculate the number of cycles that the CBC spends in each frequency bin.

frequencies : ndarray
The frequencies at which the number of cycles need to be found.
M : float
The chirp mass of the CBC.
Returns:
ncycles : ndarray

The number of cycles in each frequency bin.

r = <Quantity 300.0 pc>
raw_strain(frequencies=None)[source]
class grasshopper.sources.CoreCollapseSupernova(frequencies=None, r=None)[source]

Bases: grasshopper.sources.Source

A core-collapse supernova source. Based on Dimmelmeier.

Methods

psd([frequencies]) The one-sided power spectral density
characteristic_strain  
energy_density  
plot  
raw_strain  
snr  
srpsd  
characteristic_strain(frequencies=None)[source]
frequencies = <Quantity [ 100. , 100.23075483, 100.46204213, 100.69386315, 100.9262191 , 101.15911122, 101.39254076, 101.62650894, 101.86101702, 102.09606623, 102.33165783, 102.56779307, 102.80447321, 103.0416995 , 103.27947319, 103.51779556, 103.75666787, 103.9960914 , 104.2360674 , 104.47659716, 104.71768195, 104.95932306, 105.20152176, 105.44427935, 105.68759712, 105.93147635, 106.17591835, 106.42092441, 106.66649583, 106.91263392, 107.15933998, 107.40661533, 107.65446128, 107.90287915, 108.15187026, 108.40143592, 108.65157747, 108.90229623, 109.15359353, 109.40547072, 109.65792913, 109.91097009, 110.16459496, 110.41880509, 110.67360181, 110.92898649, 111.18496048, 111.44152515, 111.69868185, 111.95643195, 112.21477682, 112.47371784, 112.73325637, 112.9933938 , 113.25413152, 113.51547089, 113.77741332, 114.0399602 , 114.30311291, 114.56687286, 114.83124145, 115.09622009, 115.36181017, 115.62801312, 115.89483034, 116.16226326, 116.43031329, 116.69898186, 116.9682704 , 117.23818033, 117.50871309, 117.77987012, 118.05165286, 118.32406275, 118.59710123, 118.87076977, 119.14506981, 119.42000281, 119.69557024, 119.97177354, 120.2486142 , 120.52609369, 120.80421347, 121.08297502, 121.36237983, 121.64242939, 121.92312516, 122.20446866, 122.48646138, 122.7691048 , 123.05240044, 123.33634979, 123.62095437, 123.90621569, 124.19213527, 124.47871462, 124.76595526, 125.05385873, 125.34242655, 125.63166025, 125.92156137, 126.21213145, 126.50337204, 126.79528468, 127.08787092, 127.38113232, 127.67507043, 127.96968682, 128.26498305, 128.56096069, 128.85762132, 129.1549665 , 129.45299782, 129.75171687, 130.05112522, 130.35122447, 130.65201621, 130.95350205, 131.25568358, 131.5585624 , 131.86214014, 132.16641839, 132.47139879, 132.77708294, 133.08347247, 133.390569 , 133.69837418, 134.00688964, 134.316117 , 134.62605793, 134.93671406, 135.24808704, 135.56017853, 135.87299019, 136.18652368, 136.50078065, 136.8157628 , 137.13147178, 137.44790927, 137.76507695, 138.08297652, 138.40160966, 138.72097805, 139.04108341, 139.36192742, 139.6835118 , 140.00583825, 140.32890848, 140.65272421, 140.97728716, 141.30259906, 141.62866163, 141.95547661, 142.28304572, 142.61137072, 142.94045334, 143.27029534, 143.60089847, 143.93226447, 144.26439512, 144.59729218, 144.93095741, 145.26539259, 145.6005995 , 145.93657992, 146.27333562, 146.6108684 , 146.94918006, 147.28827239, 147.62814719, 147.96880627, 148.31025143, 148.6524845 , 148.99550729, 149.33932161, 149.68392931, 150.0293322 , 150.37553213, 150.72253093, 151.07033045, 151.41893253, 151.76833903, 152.1185518 , 152.4695727 , 152.8214036 , 153.17404637, 153.52750288, 153.881775 , 154.23686463, 154.59277364, 154.94950393, 155.30705739, 155.66543593, 156.02464144, 156.38467583, 156.74554102, 157.10723892, 157.46977146, 157.83314057, 158.19734816, 158.56239618, 158.92828656, 159.29502126, 159.66260221, 160.03103137, 160.40031071, 160.77044217, 161.14142773, 161.51326935, 161.88596902, 162.25952871, 162.6339504 , 163.0092361 , 163.38538778, 163.76240745, 164.14029711, 164.51905878, 164.89869445, 165.27920615, 165.66059589, 166.04286572, 166.42601765, 166.81005372, 167.19497597, 167.58078645, 167.96748721, 168.3550803 , 168.74356777, 169.1329517 , 169.52323416, 169.9144172 , 170.30650293, 170.6994934 , 171.09339073, 171.48819699, 171.88391428, 172.28054471, 172.67809039, 173.07655342, 173.47593592, 173.87624002, 174.27746784, 174.67962151, 175.08270317, 175.48671496, 175.89165903, 176.29753753, 176.70435261, 177.11210643, 177.52080117, 177.93043899, 178.34102207, 178.75255259, 179.16503274, 179.5784647 , 179.99285068, 180.40819287, 180.82449349, 181.24175474, 181.65997884, 182.07916801, 182.49932448, 182.92045048, 183.34254826, 183.76562004, 184.18966808, 184.61469463, 185.04070195, 185.46769231, 185.89566796, 186.32463119, 186.75458428, 187.1855295 , 187.61746914, 188.05040551, 188.4843409 , 188.91927762, 189.35521798, 189.79216428, 190.23011887, 190.66908405, 191.10906217, 191.55005556, 191.99206656, 192.43509752, 192.8791508 , 193.32422876, 193.77033375, 194.21746815, 194.66563433, 195.11483468, 195.56507159, 196.01634743, 196.46866462, 196.92202555, 197.37643263, 197.83188828, 198.28839491, 198.74595496, 199.20457085, 199.66424501, 200.1249799 , 200.58677795, 201.04964163, 201.51357338, 201.97857568, 202.444651 , 202.9118018 , 203.38003058, 203.84933983, 204.31973202, 204.79120967, 205.26377527, 205.73743134, 206.2121804 , 206.68802496, 207.16496756, 207.64301073, 208.122157 , 208.60240892, 209.08376906, 209.56623995, 210.04982417, 210.53452428, 211.02034286, 211.50728249, 211.99534575, 212.48453525, 212.97485357, 213.46630333, 213.95888713, 214.4526076 , 214.94746734, 215.443469 , 215.94061521, 216.43890861, 216.93835184, 217.43894756, 217.94069843, 218.44360711, 218.94767629, 219.45290862, 219.9593068 , 220.46687352, 220.97561148, 221.48552337, 221.99661191, 222.50887981, 223.0223298 , 223.53696459, 224.05278693, 224.56979955, 225.08800521, 225.60740665, 226.12800663, 226.64980793, 227.1728133 , 227.69702554, 228.22244742, 228.74908174, 229.27693129, 229.80599888, 230.33628731, 230.86779942, 231.40053801, 231.93450593, 232.469706 , 233.00614107, 233.54381399, 234.08272762, 234.62288481, 235.16428845, 235.7069414 , 236.25084655, 236.79600678, 237.342425 , 237.89010411, 238.43904701, 238.98925662, 239.54073587, 240.09348769, 240.647515 , 241.20282076, 241.75940792, 242.31727942, 242.87643825, 243.43688735, 243.99862973, 244.56166835, 245.1260062 , 245.6916463 , 246.25859164, 246.82684523, 247.39641009, 247.96728925, 248.53948574, 249.11300261, 249.68784289, 250.26400964, 250.84150593, 251.42033481, 252.00049938, 252.5820027 , 253.16484786, 253.74903797, 254.33457613, 254.92146545, 255.50970904, 256.09931003, 256.69027155, 257.28259674, 257.87628876, 258.47135075, 259.06778587, 259.66559729, 260.2647882 , 260.86536176, 261.46732118, 262.07066965, 262.67541037, 263.28154656, 263.88908145, 264.49801824, 265.10836019, 265.72011053, 266.33327252, 266.9478494 , 267.56384446, 268.18126095, 268.80010215, 269.42037137, 270.04207188, 270.665207 , 271.28978004, 271.9157943 , 272.54325313, 273.17215984, 273.80251779, 274.43433032, 275.06760079, 275.70233256, 276.33852901, 276.9761935 , 277.61532944, 278.25594022, 278.89802924, 279.54159991, 280.18665565, 280.83319988, 281.48123605, 282.13076759, 282.78179796, 283.43433062, 284.08836902, 284.74391665, 285.40097698, 286.05955352, 286.71964975, 287.38126919, 288.04441534, 288.70909174, 289.37530191, 290.04304939, 290.71233773, 291.38317048, 292.05555122, 292.7294835 , 293.40497092, 294.08201706, 294.76062551, 295.44079989, 296.1225438 , 296.80586087, 297.49075472, 298.177229 , 298.86528736, 299.55493344, 300.24617091, 300.93900344, 301.63343473, 302.32946844, 303.02710829, 303.72635797, 304.42722121, 305.12970172, 305.83380324, 306.53952951, 307.24688427, 307.95587129, 308.66649433, 309.37875717, 310.09266359, 310.80821739, 311.52542236, 312.24428231, 312.96480107, 313.68698246, 314.41083031, 315.13634849, 315.86354083, 316.5924112 , 317.32296347, 318.05520153, 318.78912927, 319.52475058, 320.26206937, 321.00108955, 321.74181507, 322.48424984, 323.22839782, 323.97426295, 324.72184921, 325.47116055, 326.22220097, 326.97497445, 327.72948499, 328.4857366 , 329.2437333 , 330.00347911, 330.76497807, 331.52823423, 332.29325164, 333.06003436, 333.82858647, 334.59891205, 335.3710152 , 336.14490001, 336.9205706 , 337.69803108, 338.47728559, 339.25833827, 340.04119327, 340.82585474, 341.61232686, 342.4006138 , 343.19071975, 343.9826489 , 344.77640547, 345.57199368, 346.36941774, 347.16868189, 347.96979039, 348.77274748, 349.57755744, 350.38422453, 351.19275305, 352.00314728, 352.81541154, 353.62955014, 354.4455674 , 355.26346766, 356.08325526, 356.90493457, 357.72850994, 358.55398575, 359.38136638, 360.21065624, 361.04185972, 361.87498124, 362.71002523, 363.54699613, 364.38589838, 365.22673643, 366.06951476, 366.91423784, 367.76091016, 368.60953622, 369.46012052, 370.31266759, 371.16718195, 372.02366814, 372.88213072, 373.74257424, 374.60500327, 375.46942241, 376.33583623, 377.20424934, 378.07466636, 378.94709191, 379.82153062, 380.69798714, 381.57646613, 382.45697225, 383.33951018, 384.22408461, 385.11070023, 385.99936177, 386.89007393, 387.78284146, 388.67766909, 389.57456158, 390.47352369, 391.3745602 , 392.27767589, 393.18287557, 394.09016404, 394.99954612, 395.91102665, 396.82461046, 397.74030241, 398.65810736, 399.57803019, 400.50007579, 401.42424905, 402.35055489, 403.27899822, 404.20958398, 405.14231711, 406.07720257, 407.01424532, 407.95345035, 408.89482263, 409.83836718, 410.784089 , 411.73199312, 412.68208457, 413.63436841, 414.58884968, 415.54553347, 416.50442485, 417.46552893, 418.42885079, 419.39439557, 420.36216838, 421.33217438, 422.30441872, 423.27890656, 424.25564307, 425.23463345, 426.2158829 , 427.19939663, 428.18517987, 429.17323784, 430.16357581, 431.15619903, 432.15111278, 433.14832234, 434.14783301, 435.14965009, 436.15377892, 437.16022482, 438.16899315, 439.18008926, 440.19351852, 441.20928632, 442.22739805, 443.24785912, 444.27067496, 445.29585099, 446.32339267, 447.35330545, 448.3855948 , 449.42026621, 450.45732518, 451.4967772 , 452.53862782, 453.58288255, 454.62954695, 455.67862658, 456.73012702, 457.78405384, 458.84041265, 459.89920905, 460.96044868, 462.02413718, 463.09028018, 464.15888336, 465.2299524 , 466.30349297, 467.3795108 , 468.45801159, 469.53900107, 470.62248498, 471.70846909, 472.79695916, 473.88796097, 474.98148032, 476.07752302, 477.17609489, 478.27720177, 479.38084951, 480.48704397, 481.59579102, 482.70709656, 483.82096649, 484.93740673, 486.05642321, 487.17802188, 488.30220869, 489.42898961, 490.55837064, 491.69035776, 492.824957 , 493.96217439, 495.10201596, 496.24448776, 497.38959588, 498.53734639, 499.68774539, 500.84079898, 501.99651331, 503.1548945 , 504.31594872, 505.47968212, 506.64610089, 507.81521123, 508.98701935, 510.16153147, 511.33875384, 512.51869271, 513.70135434, 514.88674501, 516.07487104, 517.26573872, 518.45935439, 519.65572438, 520.85485506, 522.05675278, 523.26142395, 524.46887495, 525.6791122 , 526.89214214, 528.10797119, 529.32660584, 530.54805254, 531.77231779, 532.99940808, 534.22932995, 535.46208993, 536.69769455, 537.9361504 , 539.17746404, 540.42164207, 541.6686911 , 542.91861776, 544.17142869, 545.42713053, 546.68572997, 547.94723369, 549.21164839, 550.47898079, 551.74923761, 553.02242562, 554.29855157, 555.57762224, 556.85964443, 558.14462495, 559.43257062, 560.72348829, 562.01738481, 563.31426706, 564.61414193, 565.91701632, 567.22289716, 568.53179139, 569.84370595, 571.15864781, 572.47662397, 573.79764142, 575.12170718, 576.44882829, 577.7790118 , 579.11226476, 580.44859428, 581.78800743, 583.13051135, 584.47611316, 585.82482002, 587.17663907, 588.53157752, 589.88964255, 591.25084138, 592.61518125, 593.98266939, 595.35331308, 596.7271196 , 598.10409624, 599.48425032, 600.86758917, 602.25412015, 603.64385061, 605.03678794, 606.43293954, 607.83231283, 609.23491524, 610.64075422, 612.04983725, 613.4621718 , 614.87776538, 616.29662551, 617.71875973, 619.1441756 , 620.57288068, 622.00488256, 623.44018886, 624.8788072 , 626.32074522, 627.76601058, 629.21461096, 630.66655406, 632.12184758, 633.58049927, 635.04251686, 636.50790813, 637.97668086, 639.44884286, 640.92440194, 642.40336594, 643.88574272, 645.37154016, 646.86076615, 648.35342861, 649.84953545, 651.34909463, 652.85211411, 654.35860189, 655.86856596, 657.38201434, 658.89895508, 660.41939623, 661.94334588, 663.47081211, 665.00180304, 666.53632681, 668.07439157, 669.61600549, 671.16117675, 672.70991357, 674.26222418, 675.81811682, 677.37759975, 678.94068127, 680.50736967, 682.07767329, 683.65160045, 685.22915953, 686.8103589 , 688.39520696, 689.98371214, 691.57588287, 693.17172762, 694.77125485, 696.37447306, 697.98139078, 699.59201654, 701.2063589 , 702.82442643, 704.44622773, 706.07177141, 707.70106612, 709.3341205 , 710.97094323, 712.61154301, 714.25592855, 715.9041086 , 717.55609189, 719.21188722, 720.87150338, 722.53494918, 724.20223346, 725.87336508, 727.54835292, 729.22720587, 730.90993286, 732.59654282, 734.28704472, 735.98144753, 737.67976025, 739.38199192, 741.08815156, 742.79824826, 744.51229108, 746.23028914, 747.95225156, 749.6781875 , 751.40810611, 753.1420166 , 754.87992817, 756.62185005, 758.3677915 , 760.1177618 , 761.87177023, 763.62982613, 765.39193882, 767.15811768, 768.92837208, 770.70271142, 772.48114514, 774.26368268, 776.05033351, 777.84110713, 779.63601304, 781.43506078, 783.23825992, 785.04562002, 786.85715069, 788.67286156, 790.49276227, 792.31686249, 794.1451719 , 795.97770023, 797.81445721, 799.65545259, 801.50069616, 803.35019771, 805.20396708, 807.06201411, 808.92434868, 810.79098067, 812.66192001, 814.53717663, 816.41676049, 818.30068159, 820.18894992, 822.08157552, 823.97856845, 825.87993878, 827.78569662, 829.69585208, 831.61041532, 833.52939651, 835.45280584, 837.38065353, 839.31294982, 841.24970497, 843.19092929, 845.13663307, 847.08682666, 849.04152041, 851.00072471, 852.96444997, 854.93270663, 856.90550513, 858.88285595, 860.86476961, 862.85125664, 864.84232757, 866.837993 , 868.83826353, 870.84314977, 872.85266238, 874.86681205, 876.88560946, 878.90906534, 880.93719045, 882.96999555, 885.00749145, 887.04968897, 889.09659895, 891.14823228, 893.20459986, 895.2657126 , 897.33158146, 899.40221741, 901.47763145, 903.55783461, 905.64283794, 907.73265252, 909.82728945, 911.92675985, 914.03107488, 916.14024571, 918.25428357, 920.37319966, 922.49700526, 924.62571164, 926.75933011, 928.89787202, 931.04134871, 933.18977157, 935.34315203, 937.50150151, 939.6648315 , 941.83315346, 944.00647894, 946.18481947, 948.36818663, 950.55659201, 952.75004724, 954.94856398, 957.1521539 , 959.36082871, 961.57460014, 963.79347996, 966.01747995, 968.24661193, 970.48088774, 972.72031925, 974.96491835, 977.21469697, 979.46966707, 981.72984062, 983.99522963, 986.26584613, 988.54170219, 990.8228099 , 993.10918137, 995.40082876, 997.69776424, 1000. ] Hz>
name = 'CCSN'
r = <Quantity 10000.0 pc>
class grasshopper.sources.IMR(frequencies=None, m1=None, m2=None, r=None)[source]

Bases: grasshopper.sources.Source

An inspiral, merger, ringdown frequency spectrum.

Modelled on IMRPhenomA, and does not include contributions from spin.

Attributes:
chirp_mass
eta

The symmetric mass ratio of the CBC system.

w

Methods

psd([frequencies]) The one-sided power spectral density
L  
amplitude  
characteristic_strain  
energy_density  
fk  
ncycles  
plot  
raw_strain  
snr  
srpsd  
L(f)[source]
amplitude(f)[source]
chirp_mass
eta

The symmetric mass ratio of the CBC system.

fk(k)[source]
ncycles(frequencies=None, M=None)[source]
raw_strain(frequencies)[source]
w
class grasshopper.sources.Numerical(frequencies=None, M=None, r=None)[source]

Bases: grasshopper.sources.Source

Model a numerical relativity waveform.

Methods

psd([frequencies]) The one-sided power spectral density
characteristic_strain  
energy_density  
plot  
raw_strain  
snr  
srpsd  
name = 'Numerical'
class grasshopper.sources.Pulsar(psrj, Izz=<Quantity 1.0000000000000001e+33 kg m2>)[source]

Bases: grasshopper.sources.Source

A gravitational-wave pulsar.

Methods

psd([frequencies]) The one-sided power spectral density
raw_strain([frequencies]) Calculate the raw strain which the pulsar should produce.
characteristic_strain  
energy_density  
plot  
snr  
srpsd  
name = 'Pulsar'
plot(axis)[source]
raw_strain(frequencies=None)[source]

Calculate the raw strain which the pulsar should produce. Note that unlike other sources this will be at a single frequency, since pulsars are not broadband emitters.

class grasshopper.sources.Source(frequencies=None, M=None, r=None)[source]

The base class for a gravitational wave source.

Methods

psd([frequencies]) The one-sided power spectral density
characteristic_strain  
energy_density  
plot  
raw_strain  
snr  
srpsd  
M = <Quantity 30.0 solMass>
characteristic_strain(frequencies=None)[source]
energy_density()[source]
frequencies = <Quantity [ 1.00000000e-05, 1.02331658e-05, 1.04717682e-05, 1.07159340e-05, 1.09657929e-05, 1.12214777e-05, 1.14831241e-05, 1.17508713e-05, 1.20248614e-05, 1.23052400e-05, 1.25921561e-05, 1.28857621e-05, 1.31862140e-05, 1.34936714e-05, 1.38082977e-05, 1.41302599e-05, 1.44597292e-05, 1.47968806e-05, 1.51418933e-05, 1.54949504e-05, 1.58562396e-05, 1.62259529e-05, 1.66042866e-05, 1.69914417e-05, 1.73876240e-05, 1.77930439e-05, 1.82079168e-05, 1.86324631e-05, 1.90669084e-05, 1.95114835e-05, 1.99664245e-05, 2.04319732e-05, 2.09083769e-05, 2.13958887e-05, 2.18947676e-05, 2.24052787e-05, 2.29276931e-05, 2.34622885e-05, 2.40093488e-05, 2.45691646e-05, 2.51420335e-05, 2.57282597e-05, 2.63281547e-05, 2.69420371e-05, 2.75702333e-05, 2.82130768e-05, 2.88709092e-05, 2.95440800e-05, 3.02329468e-05, 3.09378757e-05, 3.16592411e-05, 3.23974263e-05, 3.31528234e-05, 3.39258338e-05, 3.47168682e-05, 3.55263468e-05, 3.63546996e-05, 3.72023668e-05, 3.80697987e-05, 3.89574562e-05, 3.98658107e-05, 4.07953450e-05, 4.17465529e-05, 4.27199397e-05, 4.37160225e-05, 4.47353305e-05, 4.57784054e-05, 4.68458012e-05, 4.79380850e-05, 4.90558371e-05, 5.01996513e-05, 5.13701354e-05, 5.25679112e-05, 5.37936150e-05, 5.50478981e-05, 5.63314267e-05, 5.76448828e-05, 5.89889643e-05, 6.03643851e-05, 6.17718760e-05, 6.32121848e-05, 6.46860766e-05, 6.61943346e-05, 6.77377600e-05, 6.93171728e-05, 7.09334120e-05, 7.25873365e-05, 7.42798248e-05, 7.60117762e-05, 7.77841107e-05, 7.95977700e-05, 8.14537177e-05, 8.33529397e-05, 8.52964450e-05, 8.72852662e-05, 8.93204600e-05, 9.14031075e-05, 9.35343152e-05, 9.57152154e-05, 9.79469667e-05, 1.00230755e-04, 1.02567793e-04, 1.04959323e-04, 1.07406615e-04, 1.09910970e-04, 1.12473718e-04, 1.15096220e-04, 1.17779870e-04, 1.20526094e-04, 1.23336350e-04, 1.26212131e-04, 1.29154967e-04, 1.32166418e-04, 1.35248087e-04, 1.38401610e-04, 1.41628662e-04, 1.44930957e-04, 1.48310251e-04, 1.51768339e-04, 1.55307057e-04, 1.58928287e-04, 1.62633950e-04, 1.66426018e-04, 1.70306503e-04, 1.74277468e-04, 1.78341022e-04, 1.82499324e-04, 1.86754584e-04, 1.91109062e-04, 1.95565072e-04, 2.00124980e-04, 2.04791210e-04, 2.09566240e-04, 2.14452608e-04, 2.19452909e-04, 2.24569800e-04, 2.29805999e-04, 2.35164288e-04, 2.40647515e-04, 2.46258592e-04, 2.52000499e-04, 2.57876289e-04, 2.63889081e-04, 2.70042072e-04, 2.76338529e-04, 2.82781798e-04, 2.89375302e-04, 2.96122544e-04, 3.03027108e-04, 3.10092664e-04, 3.17322963e-04, 3.24721849e-04, 3.32293252e-04, 3.40041193e-04, 3.47969790e-04, 3.56083255e-04, 3.64385898e-04, 3.72882131e-04, 3.81576466e-04, 3.90473524e-04, 3.99578030e-04, 4.08894823e-04, 4.18428851e-04, 4.28185180e-04, 4.38168993e-04, 4.48385595e-04, 4.58840413e-04, 4.69539001e-04, 4.80487044e-04, 4.91690358e-04, 5.03154895e-04, 5.14886745e-04, 5.26892142e-04, 5.39177464e-04, 5.51749238e-04, 5.64614142e-04, 5.77779012e-04, 5.91250841e-04, 6.05036788e-04, 6.19144176e-04, 6.33580499e-04, 6.48353429e-04, 6.63470812e-04, 6.78940681e-04, 6.94771255e-04, 7.10970943e-04, 7.27548353e-04, 7.44512291e-04, 7.61871770e-04, 7.79636013e-04, 7.97814457e-04, 8.16416760e-04, 8.35452806e-04, 8.54932707e-04, 8.74866812e-04, 8.95265713e-04, 9.16140246e-04, 9.37501502e-04, 9.59360829e-04, 9.81729841e-04, 1.00462042e-03, 1.02804473e-03, 1.05201522e-03, 1.07654461e-03, 1.10164595e-03, 1.12733256e-03, 1.15361810e-03, 1.18051653e-03, 1.20804213e-03, 1.23620954e-03, 1.26503372e-03, 1.29452998e-03, 1.32471399e-03, 1.35560179e-03, 1.38720978e-03, 1.41955477e-03, 1.45265393e-03, 1.48652484e-03, 1.52118552e-03, 1.55665436e-03, 1.59295021e-03, 1.63009236e-03, 1.66810054e-03, 1.70699493e-03, 1.74679622e-03, 1.78752553e-03, 1.82920450e-03, 1.87185529e-03, 1.91550056e-03, 1.96016347e-03, 2.00586778e-03, 2.05263775e-03, 2.10049824e-03, 2.14947467e-03, 2.19959307e-03, 2.25088005e-03, 2.30336287e-03, 2.35706941e-03, 2.41202821e-03, 2.46826845e-03, 2.52582003e-03, 2.58471351e-03, 2.64498018e-03, 2.70665207e-03, 2.76976194e-03, 2.83434331e-03, 2.90043049e-03, 2.96805861e-03, 3.03726358e-03, 3.10808217e-03, 3.18055202e-03, 3.25471161e-03, 3.33060034e-03, 3.40825855e-03, 3.48772747e-03, 3.56904935e-03, 3.65226736e-03, 3.73742574e-03, 3.82456972e-03, 3.91374560e-03, 4.00500076e-03, 4.09838367e-03, 4.19394396e-03, 4.29173238e-03, 4.39180089e-03, 4.49420266e-03, 4.59899209e-03, 4.70622485e-03, 4.81595791e-03, 4.92824957e-03, 5.04315949e-03, 5.16074871e-03, 5.28107971e-03, 5.40421642e-03, 5.53022426e-03, 5.65917016e-03, 5.79112265e-03, 5.92615181e-03, 6.06432940e-03, 6.20572881e-03, 6.35042517e-03, 6.49849535e-03, 6.65001803e-03, 6.80507370e-03, 6.96374473e-03, 7.12611543e-03, 7.29227206e-03, 7.46230289e-03, 7.63629826e-03, 7.81435061e-03, 7.99655453e-03, 8.18300682e-03, 8.37380654e-03, 8.56905505e-03, 8.76885609e-03, 8.97331581e-03, 9.18254284e-03, 9.39664831e-03, 9.61574600e-03, 9.83995230e-03, 1.00693863e-02, 1.03041699e-02, 1.05444279e-02, 1.07902879e-02, 1.10418805e-02, 1.12993394e-02, 1.15628013e-02, 1.18324063e-02, 1.21082975e-02, 1.23906216e-02, 1.26795285e-02, 1.29751717e-02, 1.32777083e-02, 1.35872990e-02, 1.39041083e-02, 1.42283046e-02, 1.45600600e-02, 1.48995507e-02, 1.52469573e-02, 1.56024641e-02, 1.59662602e-02, 1.63385388e-02, 1.67194976e-02, 1.71093391e-02, 1.75082703e-02, 1.79165033e-02, 1.83342548e-02, 1.87617469e-02, 1.91992067e-02, 1.96468665e-02, 2.01049642e-02, 2.05737431e-02, 2.10534524e-02, 2.15443469e-02, 2.20466874e-02, 2.25607407e-02, 2.30867799e-02, 2.36250847e-02, 2.41759408e-02, 2.47396410e-02, 2.53164848e-02, 2.59067786e-02, 2.65108360e-02, 2.71289780e-02, 2.77615329e-02, 2.84088369e-02, 2.90712338e-02, 2.97490755e-02, 3.04427221e-02, 3.11525422e-02, 3.18789129e-02, 3.26222201e-02, 3.33828586e-02, 3.41612327e-02, 3.49577557e-02, 3.57728510e-02, 3.66069515e-02, 3.74605003e-02, 3.83339510e-02, 3.92277676e-02, 4.01424249e-02, 4.10784089e-02, 4.20362168e-02, 4.30163576e-02, 4.40193519e-02, 4.50457325e-02, 4.60960449e-02, 4.71708469e-02, 4.82707097e-02, 4.93962174e-02, 5.05479682e-02, 5.17265739e-02, 5.29326606e-02, 5.41668691e-02, 5.54298552e-02, 5.67222897e-02, 5.80448594e-02, 5.93982669e-02, 6.07832313e-02, 6.22004883e-02, 6.36507908e-02, 6.51349095e-02, 6.66536327e-02, 6.82077673e-02, 6.97981391e-02, 7.14255929e-02, 7.30909933e-02, 7.47952252e-02, 7.65391939e-02, 7.83238260e-02, 8.01500696e-02, 8.20188950e-02, 8.39312950e-02, 8.58882856e-02, 8.78909065e-02, 8.99402217e-02, 9.20373200e-02, 9.41833153e-02, 9.63793480e-02, 9.86265846e-02, 1.00926219e-01, 1.03279473e-01, 1.05687597e-01, 1.08151870e-01, 1.10673602e-01, 1.13254132e-01, 1.15894830e-01, 1.18597101e-01, 1.21362380e-01, 1.24192135e-01, 1.27087871e-01, 1.30051125e-01, 1.33083472e-01, 1.36186524e-01, 1.39361927e-01, 1.42611371e-01, 1.45936580e-01, 1.49339322e-01, 1.52821404e-01, 1.56384676e-01, 1.60031031e-01, 1.63762407e-01, 1.67580786e-01, 1.71488197e-01, 1.75486715e-01, 1.79578465e-01, 1.83765620e-01, 1.88050406e-01, 1.92435098e-01, 1.96922026e-01, 2.01513573e-01, 2.06212180e-01, 2.11020343e-01, 2.15940615e-01, 2.20975611e-01, 2.26128007e-01, 2.31400538e-01, 2.36796007e-01, 2.42317279e-01, 2.47967289e-01, 2.53749038e-01, 2.59665597e-01, 2.65720111e-01, 2.71915794e-01, 2.78255940e-01, 2.84743917e-01, 2.91383170e-01, 2.98177229e-01, 3.05129702e-01, 3.12244282e-01, 3.19524751e-01, 3.26974974e-01, 3.34598912e-01, 3.42400614e-01, 3.50384225e-01, 3.58553986e-01, 3.66914238e-01, 3.75469422e-01, 3.84224085e-01, 3.93182876e-01, 4.02350555e-01, 4.11731993e-01, 4.21332174e-01, 4.31156199e-01, 4.41209286e-01, 4.51496777e-01, 4.62024137e-01, 4.72796959e-01, 4.83820966e-01, 4.95102016e-01, 5.06646101e-01, 5.18459354e-01, 5.30548053e-01, 5.42918618e-01, 5.55577622e-01, 5.68531791e-01, 5.81788007e-01, 5.95353313e-01, 6.09234915e-01, 6.23440189e-01, 6.37976681e-01, 6.52852114e-01, 6.68074392e-01, 6.83651600e-01, 6.99592017e-01, 7.15904109e-01, 7.32596543e-01, 7.49678187e-01, 7.67158118e-01, 7.85045620e-01, 8.03350198e-01, 8.22081576e-01, 8.41249705e-01, 8.60864770e-01, 8.80937190e-01, 9.01477631e-01, 9.22497005e-01, 9.44006479e-01, 9.66017480e-01, 9.88541702e-01, 1.01159111e+00, 1.03517796e+00, 1.05931476e+00, 1.08401436e+00, 1.10928986e+00, 1.13515471e+00, 1.16162263e+00, 1.18870770e+00, 1.21642429e+00, 1.24478715e+00, 1.27381132e+00, 1.30351224e+00, 1.33390569e+00, 1.36500781e+00, 1.39683512e+00, 1.42940453e+00, 1.46273336e+00, 1.49683929e+00, 1.53174046e+00, 1.56745541e+00, 1.60400311e+00, 1.64140297e+00, 1.67967487e+00, 1.71883914e+00, 1.75891659e+00, 1.79992851e+00, 1.84189668e+00, 1.88484341e+00, 1.92879151e+00, 1.97376433e+00, 2.01978576e+00, 2.06688025e+00, 2.11507282e+00, 2.16438909e+00, 2.21485523e+00, 2.26649808e+00, 2.31934506e+00, 2.37342425e+00, 2.42876438e+00, 2.48539486e+00, 2.54334576e+00, 2.60264788e+00, 2.66333273e+00, 2.72543253e+00, 2.78898029e+00, 2.85400977e+00, 2.92055551e+00, 2.98865287e+00, 3.05833803e+00, 3.12964801e+00, 3.20262069e+00, 3.27729485e+00, 3.35371015e+00, 3.43190720e+00, 3.51192753e+00, 3.59381366e+00, 3.67760910e+00, 3.76335836e+00, 3.85110700e+00, 3.94090164e+00, 4.03278998e+00, 4.12682085e+00, 4.22304419e+00, 4.32151113e+00, 4.42227398e+00, 4.52538628e+00, 4.63090280e+00, 4.73887961e+00, 4.84937407e+00, 4.96244488e+00, 5.07815211e+00, 5.19655724e+00, 5.31772318e+00, 5.44171429e+00, 5.56859644e+00, 5.69843706e+00, 5.83130511e+00, 5.96727120e+00, 6.10640754e+00, 6.24878807e+00, 6.39448843e+00, 6.54358602e+00, 6.69616005e+00, 6.85229160e+00, 7.01206359e+00, 7.17556092e+00, 7.34287045e+00, 7.51408106e+00, 7.68928372e+00, 7.86857151e+00, 8.05203967e+00, 8.23978568e+00, 8.43190929e+00, 8.62851257e+00, 8.82969996e+00, 9.03557835e+00, 9.24625712e+00, 9.46184819e+00, 9.68246612e+00, 9.90822810e+00, 1.01392541e+01, 1.03756668e+01, 1.06175918e+01, 1.08651577e+01, 1.11184960e+01, 1.13777413e+01, 1.16430313e+01, 1.19145070e+01, 1.21923125e+01, 1.24765955e+01, 1.27675070e+01, 1.30652016e+01, 1.33698374e+01, 1.36815763e+01, 1.40005838e+01, 1.43270295e+01, 1.46610868e+01, 1.50029332e+01, 1.53527503e+01, 1.57107239e+01, 1.60770442e+01, 1.64519059e+01, 1.68355080e+01, 1.72280545e+01, 1.76297538e+01, 1.80408193e+01, 1.84614695e+01, 1.88919278e+01, 1.93324229e+01, 1.97831888e+01, 2.02444651e+01, 2.07164968e+01, 2.11995346e+01, 2.16938352e+01, 2.21996612e+01, 2.27172813e+01, 2.32469706e+01, 2.37890104e+01, 2.43436887e+01, 2.49113003e+01, 2.54921465e+01, 2.60865362e+01, 2.66947849e+01, 2.73172160e+01, 2.79541600e+01, 2.86059554e+01, 2.92729484e+01, 2.99554933e+01, 3.06539530e+01, 3.13686982e+01, 3.21001090e+01, 3.28485737e+01, 3.36144900e+01, 3.43982649e+01, 3.52003147e+01, 3.60210656e+01, 3.68609536e+01, 3.77204249e+01, 3.85999362e+01, 3.94999546e+01, 4.04209584e+01, 4.13634368e+01, 4.23278907e+01, 4.33148322e+01, 4.43247859e+01, 4.53582883e+01, 4.64158883e+01, 4.74981480e+01, 4.86056423e+01, 4.97389596e+01, 5.08987019e+01, 5.20854855e+01, 5.32999408e+01, 5.45427131e+01, 5.58144625e+01, 5.71158648e+01, 5.84476113e+01, 5.98104096e+01, 6.12049837e+01, 6.26320745e+01, 6.40924402e+01, 6.55868566e+01, 6.71161177e+01, 6.86810359e+01, 7.02824426e+01, 7.19211887e+01, 7.35981448e+01, 7.53142017e+01, 7.70702711e+01, 7.88672862e+01, 8.07062014e+01, 8.25879939e+01, 8.45136633e+01, 8.64842328e+01, 8.85007491e+01, 9.05642838e+01, 9.26759330e+01, 9.48368187e+01, 9.70480888e+01, 9.93109181e+01, 1.01626509e+02, 1.03996091e+02, 1.06420924e+02, 1.08902296e+02, 1.11441525e+02, 1.14039960e+02, 1.16698982e+02, 1.19420003e+02, 1.22204469e+02, 1.25053859e+02, 1.27969687e+02, 1.30953502e+02, 1.34006890e+02, 1.37131472e+02, 1.40328908e+02, 1.43600898e+02, 1.46949180e+02, 1.50375532e+02, 1.53881775e+02, 1.57469771e+02, 1.61141428e+02, 1.64898694e+02, 1.68743568e+02, 1.72678090e+02, 1.76704353e+02, 1.80824493e+02, 1.85040702e+02, 1.89355218e+02, 1.93770334e+02, 1.98288395e+02, 2.02911802e+02, 2.07643011e+02, 2.12484535e+02, 2.17438948e+02, 2.22508880e+02, 2.27697026e+02, 2.33006141e+02, 2.38439047e+02, 2.43998630e+02, 2.49687843e+02, 2.55509709e+02, 2.61467321e+02, 2.67563844e+02, 2.73802518e+02, 2.80186656e+02, 2.86719650e+02, 2.93404971e+02, 3.00246171e+02, 3.07246884e+02, 3.14410830e+02, 3.21741815e+02, 3.29243733e+02, 3.36920571e+02, 3.44776405e+02, 3.52815412e+02, 3.61041860e+02, 3.69460121e+02, 3.78074666e+02, 3.86890074e+02, 3.95911027e+02, 4.05142317e+02, 4.14588850e+02, 4.24255643e+02, 4.34147833e+02, 4.44270675e+02, 4.54629547e+02, 4.65229952e+02, 4.76077523e+02, 4.87178022e+02, 4.98537346e+02, 5.10161531e+02, 5.22056753e+02, 5.34229330e+02, 5.46685730e+02, 5.59432571e+02, 5.72476624e+02, 5.85824820e+02, 5.99484250e+02, 6.13462172e+02, 6.27766011e+02, 6.42403366e+02, 6.57382014e+02, 6.72709914e+02, 6.88395207e+02, 7.04446228e+02, 7.20871503e+02, 7.37679760e+02, 7.54879928e+02, 7.72481145e+02, 7.90492762e+02, 8.08924349e+02, 8.27785697e+02, 8.47086827e+02, 8.66837993e+02, 8.87049689e+02, 9.07732653e+02, 9.28897872e+02, 9.50556592e+02, 9.72720319e+02, 9.95400829e+02, 1.01861017e+03, 1.04236067e+03, 1.06666496e+03, 1.09153594e+03, 1.11698682e+03, 1.14303113e+03, 1.16968270e+03, 1.19695570e+03, 1.22486461e+03, 1.25342427e+03, 1.28264983e+03, 1.31255684e+03, 1.34316117e+03, 1.37447909e+03, 1.40652724e+03, 1.43932264e+03, 1.47288272e+03, 1.50722531e+03, 1.54236865e+03, 1.57833141e+03, 1.61513269e+03, 1.65279206e+03, 1.69132952e+03, 1.73076553e+03, 1.77112106e+03, 1.81241755e+03, 1.85467692e+03, 1.89792164e+03, 1.94217468e+03, 1.98745955e+03, 2.03380031e+03, 2.08122157e+03, 2.12974854e+03, 2.17940698e+03, 2.23022330e+03, 2.28222447e+03, 2.33543814e+03, 2.38989257e+03, 2.44561668e+03, 2.50264010e+03, 2.56099310e+03, 2.62070670e+03, 2.68181261e+03, 2.74434330e+03, 2.80833200e+03, 2.87381269e+03, 2.94082017e+03, 3.00939003e+03, 3.07955871e+03, 3.15136348e+03, 3.22484250e+03, 3.30003479e+03, 3.37698031e+03, 3.45571994e+03, 3.53629550e+03, 3.61874981e+03, 3.70312668e+03, 3.78947092e+03, 3.87782841e+03, 3.96824610e+03, 4.06077203e+03, 4.15545533e+03, 4.25234633e+03, 4.35149650e+03, 4.45295851e+03, 4.55678627e+03, 4.66303493e+03, 4.77176095e+03, 4.88302209e+03, 4.99687745e+03, 5.11338754e+03, 5.23261424e+03, 5.35462090e+03, 5.47947234e+03, 5.60723488e+03, 5.73797641e+03, 5.87176639e+03, 6.00867589e+03, 6.14877765e+03, 6.29214611e+03, 6.43885743e+03, 6.58898955e+03, 6.74262224e+03, 6.89983712e+03, 7.06071771e+03, 7.22534949e+03, 7.39381992e+03, 7.56621850e+03, 7.74263683e+03, 7.92316862e+03, 8.10790981e+03, 8.29695852e+03, 8.49041520e+03, 8.68838264e+03, 8.89096599e+03, 9.09827289e+03, 9.31041349e+03, 9.52750047e+03, 9.74964918e+03, 9.97697764e+03, 1.02096066e+04, 1.04476597e+04, 1.06912634e+04, 1.09405471e+04, 1.11956432e+04, 1.14566873e+04, 1.17238180e+04, 1.19971774e+04, 1.22769105e+04, 1.25631660e+04, 1.28560961e+04, 1.31558562e+04, 1.34626058e+04, 1.37765077e+04, 1.40977287e+04, 1.44264395e+04, 1.47628147e+04, 1.51070330e+04, 1.54592774e+04, 1.58197348e+04, 1.61885969e+04, 1.65660596e+04, 1.69523234e+04, 1.73475936e+04, 1.77520801e+04, 1.81659979e+04, 1.85895668e+04, 1.90230119e+04, 1.94665634e+04, 1.99204571e+04, 2.03849340e+04, 2.08602409e+04, 2.13466303e+04, 2.18443607e+04, 2.23536965e+04, 2.28749082e+04, 2.34082728e+04, 2.39540736e+04, 2.45126006e+04, 2.50841506e+04, 2.56690272e+04, 2.62675410e+04, 2.68800102e+04, 2.75067601e+04, 2.81481236e+04, 2.88044415e+04, 2.94760626e+04, 3.01633435e+04, 3.08666494e+04, 3.15863541e+04, 3.23228398e+04, 3.30764978e+04, 3.38477286e+04, 3.46369418e+04, 3.54445567e+04, 3.62710025e+04, 3.71167182e+04, 3.79821531e+04, 3.88677669e+04, 3.97740302e+04, 4.07014245e+04, 4.16504425e+04, 4.26215883e+04, 4.36153779e+04, 4.46323393e+04, 4.56730127e+04, 4.67379511e+04, 4.78277202e+04, 4.89428990e+04, 5.00840799e+04, 5.12518693e+04, 5.24468875e+04, 5.36697695e+04, 5.49211648e+04, 5.62017385e+04, 5.75121707e+04, 5.88531578e+04, 6.02254120e+04, 6.16296626e+04, 6.30666554e+04, 6.45371540e+04, 6.60419396e+04, 6.75818117e+04, 6.91575883e+04, 7.07701066e+04, 7.24202233e+04, 7.41088152e+04, 7.58367791e+04, 7.76050334e+04, 7.94145172e+04, 8.12661920e+04, 8.31610415e+04, 8.51000725e+04, 8.70843150e+04, 8.91148232e+04, 9.11926760e+04, 9.33189772e+04, 9.54948564e+04, 9.77214697e+04, 1.00000000e+05] Hz>
name = 'Generic Source'
plot(axis, label=None)[source]
psd(frequencies=None)[source]

The one-sided power spectral density

Parameters:
frequencies : ndarray

An array of frequencies where the PSD should be calculated.

Returns : ndarray

An array of the PSDs at the given frequencies for this source.

r = <Quantity 300.0 pc>
raw_strain(frequencies=None)[source]
snr(detector)[source]
srpsd(frequencies=None)[source]
class grasshopper.sources.Type1ASupernova(frequencies=None, r=None)[source]

Bases: grasshopper.sources.Source

A Type-1A supernova source. Based on https://arxiv.org/abs/1511.02542.

Methods

psd([frequencies]) The one-sided power spectral density
characteristic_strain  
energy_density  
plot  
raw_strain  
snr  
srpsd  
characteristic_strain(frequencies=None)[source]
name = 'Type Ia SN'
r = <Quantity 10000.0 pc>

grasshopper.timingarray module

Module contents