Classes | |
| class | SNRContentHandler |
| class | ContentHandler |
| class | SignalNoiseRatioDocument |
| class | Bank_SNR |
| class | SNRHandlerMixin |
| class | SimpleSNRHandler |
| class | Handler |
| class | Bank |
Functions | |
| def | write_simplified_sngl_inspiral_table |
| def | generate_templates |
| def | build_bank |
| def | write_bank |
| def | parse_bank_files |
| def | read_xmldoc |
| def | write_url |
| def | read_url |
| def | scan_svd_banks_for_row |
| def | svd_banks_from_event |
| def | framecache_from_event |
| def | psd_from_event |
Short cutting gstlal inspiral pipeline to produce SNR for gstlal_svd_bank. A gstlal-based direct matched filter in time domain is also implemented.
| def svd_bank_snr.build_bank | ( | bank_url, | |
| psd_file, | |||
| sample_rate, | |||
| f_low, | |||
f_high = None, |
|||
autocorrelation_length = None, |
|||
verbose = False |
|||
| ) |
Return an instance of a Bank class.
Definition at line 540 of file svd_bank_snr.py.
| def svd_bank_snr.framecache_from_event | ( | gid, | |
| observatories, | |||
| frame_types, | |||
time_span = 500, |
|||
outdir = ".", |
|||
filename = "frame.cache", |
|||
verbose = False |
|||
| ) |
Get the frame cache for an event given the gracedb event id.
Args:
gid (str): The gracedb event id.
observatories (list): See gwdatafind.
frame_type (list): See gwdatafind.
time_span (float): The time span before and after the trigger time.
outdir (str, default="."): The output directory.
filename (str, default="frame.cache"): The output filename.
verbose (bool): Be verbose.
Returns:
Dictionary of instruments, trigger_times, gps_start_time,
gps_end_time, channels_name.
Definition at line 709 of file svd_bank_snr.py.
| def svd_bank_snr.generate_templates | ( | table, | |
| approximant, | |||
| psd, | |||
| f_low, | |||
| time_slice, | |||
autocorrelation_length = None, |
|||
f_high = None, |
|||
verbose = False |
|||
| ) |
Generate whiten templates from sngl_inspiral_table.
Definition at line 442 of file svd_bank_snr.py.
| def svd_bank_snr.parse_bank_files | ( | bank_urls, | |
verbose = False |
|||
| ) |
Parse a dictionary of bank urls key by instrument into a dictionary of bank instance key by instrument.
Definition at line 575 of file svd_bank_snr.py.
| def svd_bank_snr.psd_from_event | ( | gid, | |
outdir = ".", |
|||
save = False, |
|||
filename = "psd.xml.gz", |
|||
verbose = False |
|||
| ) |
Get the psd.xml.gz given a gracedb event id.
Args:
gid (str): The gracedb event id.
outdir (str, default="."): The output directory.
filename (str, default="psd.xml.gz"): The output filename.
save (bool, default=False): True if want to save the file, False otherwise.
verbose (bool, default=False): Be verbose.
Returns:
A dictionary of complex LAL Series key by instrument.
Definition at line 765 of file svd_bank_snr.py.
| def svd_bank_snr.scan_svd_banks_for_row | ( | coinc_xmldoc, | |
| banks_dict | |||
| ) |
Scan the sub bank id and row number of an event template from coinc.xml file.
Args:
coinc_xmldoc (:obj: `xmldoc`): The coinc.xml file from gracedb.
banks_dict (dict): A dictionary of SVD banks key by instrument containing the event template.
Returns:
bank_number (int)
row_number (int)
Definition at line 633 of file svd_bank_snr.py.
| def svd_bank_snr.svd_banks_from_event | ( | gid, | |
outdir = ".", |
|||
save = False, |
|||
verbose = False |
|||
| ) |
Find location of the SVD banks from gracedb event id.
Args:
gid (str): The gracedb event id.
outdir (str, default="."): The output directory.
save (bool, default=False): True if want to save the file, False otherwise.
verbose (bool, default=False): Be verbose.
Returns:
banks_dict (dict of :obj: `Bank`): The SVD banks for an event key by instrument.
bank_number (int)
row_number (int)
Definition at line 662 of file svd_bank_snr.py.
| def svd_bank_snr.write_bank | ( | filename, | |
| banks, | |||
verbose = False |
|||
| ) |
Write template bank to LIGO_LW xml file.
Definition at line 554 of file svd_bank_snr.py.
| def svd_bank_snr.write_simplified_sngl_inspiral_table | ( | m1, | |
| m2, | |||
| s1x, | |||
| s1y, | |||
| s1z, | |||
| s2x, | |||
| s2y, | |||
| s2z, | |||
| instrument, | |||
| approximant, | |||
filename = None |
|||
| ) |
Writing a simplified sngl_inspiral_table containing only one template.
Args:
m1 (float): mass1.
m2 (float): mass2.
s1x (float): spin 1 x-axis.
s1y (float): spin 1 y-axis.
s1z (float): spin 1 z-axis.
s2x (float): spin 2 x-axis.
s2y (float): spin 2 y-axis.
s2z (float): spin 2 z-axis.
instrument (str): The instrument for the template.
approximant (str): The approximant used to simulate the waveform.
filename (str, default=None): The output filename.
Return:
The file object representing the xmldoc.
Definition at line 378 of file svd_bank_snr.py.
1.8.5