minke.distribution.
burst_dist
(minimum, maximum, size=1)[source]¶Generate an hrss drawn from the distribution [ r + 50/r ] as desired by the Burst group for observing MDCs
minke.distribution.
calibration
(mu=0, sigma=0.1)[source]¶A distribution to model a calibration uncertainty in a given parameter when producing a GWF file.
This function just draws a number from a Normal distribution, but you could do something fancier if you wanted.
Parameters: |
|
---|---|
Returns: |
|
minke.distribution.
even_time
(start, stop, rate, jitter=0)[source]¶Produce an evenly-distributed set of times which has some jitter.
Parameters: |
|
---|---|
Returns: |
|
minke.distribution.
favorable_sky
(net, time)[source]¶Wander through the skies, searching for a most favorable location — draw extrinsic parameters as if the network antenna pattern magnitude were the PDF.
minke.distribution.
log_uniform
(lower, upper, number)[source]¶Draw uniformly in the log of a predefined range.
Parameters: |
|
---|---|
Returns: |
|
minke.distribution.
supernova_angle
(num, divisions=10)[source]¶Draw from a discrete distribution of angles.
minke.distribution.
uniform_dec
(num)[source]¶Declination distribution: uniform in sin(dec). num controls the number of draws.
minke.distribution.
uniform_interval
(interval, num)[source]¶Return a number, or a list of numbers which are sampled from a uniform distribution.
Parameters: |
|
---|---|
Returns: |
|
Notes
minke.distribution.
uniform_phi
(num)[source]¶Uniform in (0, 2pi) distribution. num controls the number of draws.
minke.distribution.
uniform_sky
(number=1)[source]¶Get a set of (RA, declination, polarization) randomized appopriately to astrophysical sources isotropically distributed in the sky.
minke.sources.
ADI
(time, sky_dist=<function uniform_sky>, filepath='stamp_adi_a_tapered.mat', decomposed_path=None)[source]¶Bases: minke.sources.LongDuration
Accretion disk instability waveforms which are generated using the method described in LIGO-T1100093, at https://dcc.ligo.org/LIGO-T1100093. The waveforms are based off a model by MH van Putten,
M. H. van Putten, A. Levinson, H. K. Lee, T. Regimbau, M. Punturo, and G. M. Harry. Phys. Rev. D., 69(4), 044007, 2004. M. H. van Putten. Phys. Rev. Lett., 87(9), 091101, 2001.
The waveforms are stored in .mat binary files which can be read-in by SciPy.
Methods
construct_Hlm (Ixx, Ixy, Ixz, Iyy, Iyz, Izz) |
Construct the expansion parameters Hlm from T1000553. |
decompose (numrel_file[, sample_rate, step_back]) |
Produce the spherial harmonic decompositions of the ADI waveform. |
generate_tail ([sampling, length, h_max, h_min]) |
Generate a “low frequency tail” to append to the end of the waveform to overcome problems related to memory in the waveform. |
interpolate (x_old, y_old, x_new) |
Convenience funtion to avoid repeated code |
parse_polarisation (polarisation) |
Convert a string description of a polarisation to an ellipse eccentricity and an ellipse angle. |
plot ([figsize]) |
Produce a plot of the injection. |
table_type |
decompose
(numrel_file, sample_rate=16384.0, step_back=0.01)[source]¶Produce the spherial harmonic decompositions of the ADI waveform. This is a special case since it is axisymmetric.
Parameters: |
|
---|---|
Returns: |
|
waveform
= 'ADI'¶minke.sources.
BBHRingdown
(time, phi0, mass, spin, massloss, distance, inclination, sky_dist=<function uniform_sky>)[source]¶Bases: minke.sources.Ringdown
A class to represent BBH ringdowns.
Methods
interpolate (x_old, y_old, x_new[, method]) |
Convenience funtion to avoid repeated code |
parse_polarisation (polarisation) |
Convert a string description of a polarisation to an ellipse eccentricity and an ellipse angle. |
plot ([figsize]) |
Produce a plot of the injection. |
table_type |
waveform
= 'BBHRingdown'¶minke.sources.
Dimmelmeier08
(time, distance=0.01, sky_dist=<function uniform_sky>, filepath='signal_s15a2o05_ls.dat', decomposed_path=None)[source]¶Bases: minke.sources.Supernova
The Dimmelmeier08 waveform.
Methods
construct_Hlm (Ixx, Ixy, Ixz, Iyy, Iyz, Izz) |
Construct the expansion parameters Hlm from T1000553. |
decompose (numrel_file[, sample_rate, step_back]) |
Produce the spherial harmonic decompositions of the Dimmelmeier numerical waveform. |
generate_tail ([sampling, length, h_max, h_min]) |
Generate a “low frequency tail” to append to the end of the waveform to overcome problems related to memory in the waveform. |
interpolate (x_old, y_old, x_new) |
Convenience funtion to avoid repeated code |
parse_polarisation (polarisation) |
Convert a string description of a polarisation to an ellipse eccentricity and an ellipse angle. |
plot ([figsize]) |
Produce a plot of the injection. |
table_type |
decompose
(numrel_file, sample_rate=16384.0, step_back=0.01)[source]¶Produce the spherial harmonic decompositions of the Dimmelmeier numerical waveform. This is a special case since it is axisymmetric.
Parameters: |
|
---|---|
Returns: |
|
waveform
= 'Dimmelmeier+08'¶minke.sources.
Gaussian
(duration, hrss, time, sky_dist=<function uniform_sky>, seed=0)[source]¶Bases: minke.sources.Waveform
A class to represent a Gaussian injection.
Methods
interpolate (x_old, y_old, x_new[, method]) |
Convenience funtion to avoid repeated code |
parse_polarisation (polarisation) |
Convert a string description of a polarisation to an ellipse eccentricity and an ellipse angle. |
plot ([figsize]) |
Produce a plot of the injection. |
table_type |
waveform
= 'Gaussian'¶minke.sources.
LongDuration
[source]¶Bases: minke.sources.Supernova
A superclass to handle the spherial harmonic decompositions which long duration numerical relativity bursts may require.
Methods
construct_Hlm (Ixx, Ixy, Ixz, Iyy, Iyz, Izz) |
Construct the expansion parameters Hlm from T1000553. |
decompose (numrel_file[, sample_rate, step_back]) |
Produce the spherial harmonic decompositions of a numerical waveform. |
generate_tail ([sampling, length, h_max, h_min]) |
Generate a “low frequency tail” to append to the end of the waveform to overcome problems related to memory in the waveform. |
interpolate (x_old, y_old, x_new) |
Convenience funtion to avoid repeated code |
parse_polarisation (polarisation) |
Convert a string description of a polarisation to an ellipse eccentricity and an ellipse angle. |
plot ([figsize]) |
Produce a plot of the injection. |
table_type |
supernova
= True¶waveform
= 'LongDuration'¶minke.sources.
Mueller2012
(theta, phi, time, distance=0.01, sky_dist=<function uniform_sky>, filepath=None, family='L15-3', decomposed_path=None)[source]¶Bases: minke.sources.Supernova
The Mueller2012 waveform.
Methods
construct_Hlm (Ixx, Ixy, Ixz, Iyy, Iyz, Izz) |
Construct the expansion parameters Hlm from T1000553. |
decompose (numrel_file[, sample_rate, step_back]) |
Produce the spherial harmonic decompositions of a numerical waveform. |
generate_tail ([sampling, length, h_max, h_min]) |
Generate a “low frequency tail” to append to the end of the waveform to overcome problems related to memory in the waveform. |
interpolate (x_old, y_old, x_new) |
Convenience funtion to avoid repeated code |
parse_polarisation (polarisation) |
Convert a string description of a polarisation to an ellipse eccentricity and an ellipse angle. |
plot ([figsize]) |
Produce a plot of the injection. |
table_type |
decompose
(numrel_file, sample_rate=16384.0, step_back=0.01)[source]¶Produce the spherial harmonic decompositions of a numerical waveform.
Parameters: |
|
---|---|
Returns: |
|
has_memory
= True¶waveform
= 'Mueller+12'¶minke.sources.
Ott2013
(theta, phi, time, sky_dist=<function uniform_sky>, distance=0.01, filepath=None, family='s27fheat1p05', decomposed_path=None)[source]¶Bases: minke.sources.Supernova
The Ott+2013 supernova waveform
Methods
construct_Hlm (Ixx, Ixy, Ixz, Iyy, Iyz, Izz) |
Construct the expansion parameters Hlm from T1000553. |
decompose (numrel_file[, sample_rate, step_back]) |
Produce the spherial harmonic decompositions of a numerical waveform. |
generate_tail ([sampling, length, h_max, h_min]) |
Generate a “low frequency tail” to append to the end of the waveform to overcome problems related to memory in the waveform. |
interpolate (x_old, y_old, x_new) |
Convenience funtion to avoid repeated code |
parse_polarisation (polarisation) |
Convert a string description of a polarisation to an ellipse eccentricity and an ellipse angle. |
plot ([figsize]) |
Produce a plot of the injection. |
table_type |
has_memory
= True¶waveform
= 'Ott+13'¶minke.sources.
Ringdown
[source]¶Bases: minke.sources.Waveform
A class to handle Rindown waveforms.
Methods
interpolate (x_old, y_old, x_new[, method]) |
Convenience funtion to avoid repeated code |
parse_polarisation (polarisation) |
Convert a string description of a polarisation to an ellipse eccentricity and an ellipse angle. |
plot ([figsize]) |
Produce a plot of the injection. |
table_type |
table_type
¶alias of glue.ligolw.lsctables.SimRingdownTable
waveform
= 'GenericRingdown'¶minke.sources.
Scheidegger2010
(theta, phi, time, distance=0.01, sky_dist=<function uniform_sky>, filepath=None, family='R1E1CA_L', decomposed_path=None)[source]¶Bases: minke.sources.Supernova
The Scheidegger2010 waveform.
Methods
construct_Hlm (Ixx, Ixy, Ixz, Iyy, Iyz, Izz) |
Construct the expansion parameters Hlm from T1000553. |
decompose (numrel_file[, sample_rate, step_back]) |
Produce the spherial harmonic decompositions of a numerical waveform. |
generate_tail ([sampling, length, h_max, h_min]) |
Generate a “low frequency tail” to append to the end of the waveform to overcome problems related to memory in the waveform. |
interpolate (x_old, y_old, x_new) |
Convenience funtion to avoid repeated code |
parse_polarisation (polarisation) |
Convert a string description of a polarisation to an ellipse eccentricity and an ellipse angle. |
plot ([figsize]) |
Produce a plot of the injection. |
table_type |
waveform
= 'Scheidegger+10'¶minke.sources.
SineGaussian
(q, frequency, hrss, polarisation, time, sky_dist=<function uniform_sky>, seed=0)[source]¶Bases: minke.sources.Waveform
A class to represent a SineGaussian injection.
Methods
interpolate (x_old, y_old, x_new[, method]) |
Convenience funtion to avoid repeated code |
parse_polarisation (polarisation) |
Convert a string description of a polarisation to an ellipse eccentricity and an ellipse angle. |
plot ([figsize]) |
Produce a plot of the injection. |
table_type |
waveform
= 'SineGaussian'¶minke.sources.
StringCusp
(amplitude, f_max, time, sky_dist=<function uniform_sky>)[source]¶Bases: minke.sources.Waveform
A class to represent a StringCusp injection.
Methods
interpolate (x_old, y_old, x_new[, method]) |
Convenience funtion to avoid repeated code |
parse_polarisation (polarisation) |
Convert a string description of a polarisation to an ellipse eccentricity and an ellipse angle. |
plot ([figsize]) |
Produce a plot of the injection. |
table_type |
waveform
= 'StringCusp'¶minke.sources.
Supernova
[source]¶Bases: minke.sources.Waveform
A superclass to handle the spherial harmonic decompositions which all supernova waveforms require.
Methods
construct_Hlm (Ixx, Ixy, Ixz, Iyy, Iyz, Izz) |
Construct the expansion parameters Hlm from T1000553. |
decompose (numrel_file[, sample_rate, step_back]) |
Produce the spherial harmonic decompositions of a numerical waveform. |
generate_tail ([sampling, length, h_max, h_min]) |
Generate a “low frequency tail” to append to the end of the waveform to overcome problems related to memory in the waveform. |
interpolate (x_old, y_old, x_new) |
Convenience funtion to avoid repeated code |
parse_polarisation (polarisation) |
Convert a string description of a polarisation to an ellipse eccentricity and an ellipse angle. |
plot ([figsize]) |
Produce a plot of the injection. |
table_type |
construct_Hlm
(Ixx, Ixy, Ixz, Iyy, Iyz, Izz, l=2, m=2)[source]¶Construct the expansion parameters Hlm from T1000553. Returns the expansion parameters for l=2, m=m
decompose
(numrel_file, sample_rate=16384.0, step_back=0.01)[source]¶Produce the spherial harmonic decompositions of a numerical waveform.
Parameters: |
|
---|---|
Returns: |
|
file_distance
= 0.01¶generate_tail
(sampling=16384.0, length=1, h_max=1e-23, h_min=0)[source]¶Generate a “low frequency tail” to append to the end of the waveform to overcome problems related to memory in the waveform.
This code was adapted from an iPython notebook provided by Marek Szczepanczyk.
The tail needs to be added to the waveform after all of the other corrections have been applied (DW: I think)
Parameters: |
|
---|
Notes
convolved with the antenna pattern.
has_memory
= False¶supernova
= True¶waveform
= 'Supernova'¶minke.sources.
Waveform
[source]¶Bases: object
Generic container for different source types. Currently, it checks for the waveform type and initializes itself appropriately. In the future, different sources should subclass this and override the generation routines.
Methods
interpolate (x_old, y_old, x_new[, method]) |
Convenience funtion to avoid repeated code |
parse_polarisation (polarisation) |
Convert a string description of a polarisation to an ellipse eccentricity and an ellipse angle. |
plot ([figsize]) |
Produce a plot of the injection. |
table_type |
expnum
= 1¶interpolate
(x_old, y_old, x_new, method='linear')[source]¶Convenience funtion to avoid repeated code
numrel_data
= []¶parse_polarisation
(polarisation)[source]¶Convert a string description of a polarisation to an ellipse eccentricity and an ellipse angle.
Parameters: |
|
---|
sim
= []¶table_type
¶alias of glue.ligolw.lsctables.SimBurstTable
waveform
= 'Generic'¶minke.sources.
WhiteNoiseBurst
(duration, bandwidth, frequency, time, hrss=None, egw=None, sky_dist=<function uniform_sky>, seed=0)[source]¶Bases: minke.sources.Waveform
A class to represent a WNB injection.
Methods
interpolate (x_old, y_old, x_new[, method]) |
Convenience funtion to avoid repeated code |
parse_polarisation (polarisation) |
Convert a string description of a polarisation to an ellipse eccentricity and an ellipse angle. |
plot ([figsize]) |
Produce a plot of the injection. |
table_type |
waveform
= 'BTLWNB'¶minke.sources.
Yakunin10
(time, distance=0.01, sky_dist=<function uniform_sky>, filepath='Yakunin2010/hplus-B12-WH07_tail.txt', decomposed_path=None)[source]¶Bases: minke.sources.Supernova
The Yakunin10 waveform.
Methods
construct_Hlm (Ixx, Ixy, Ixz, Iyy, Iyz, Izz) |
Construct the expansion parameters Hlm from T1000553. |
decompose (numrel_file[, sample_rate, step_back]) |
Produce the spherial harmonic decompositions of the Dimmelmeier numerical waveform. |
generate_tail ([sampling, length, h_max, h_min]) |
Generate a “low frequency tail” to append to the end of the waveform to overcome problems related to memory in the waveform. |
interpolate (x_old, y_old, x_new) |
Convenience funtion to avoid repeated code |
parse_polarisation (polarisation) |
Convert a string description of a polarisation to an ellipse eccentricity and an ellipse angle. |
plot ([figsize]) |
Produce a plot of the injection. |
table_type |
decompose
(numrel_file, sample_rate=16384.0, step_back=0.01)[source]¶Produce the spherial harmonic decompositions of the Dimmelmeier numerical waveform. This is a special case since it is axisymmetric.
Parameters: |
|
---|---|
Returns: |
|
waveform
= 'Yakunin+10'¶