Short transient search examples: Make dataΒΆ

An example to generate data with a short transient signal.

This can be run either stand-alone (will just generate SFT files and nothing else); or it is also being imported from PyFstat_example_short_transient_grid_search.py and PyFstat_example_short_transient_MCMC_search.py

14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
 import pyfstat
 import os

 outdir = os.path.join("PyFstat_example_data", "PyFstat_example_short_transient_search")

 F0 = 30.0
 F1 = -1e-10
 F2 = 0
 Alpha = 0.5
 Delta = 1

 tstart = 1000000000
 duration = 2 * 86400

 transient_tstart = tstart + 0.25 * duration
 transient_duration = 0.5 * duration
 tref = tstart

 h0 = 1e-23
 cosi = 0
 sqrtSX = 1e-22
 detectors = "H1,L1"

 Tsft = 1800

 if __name__ == "__main__":

     transient = pyfstat.Writer(
         label="simulated_transient_signal",
         outdir=outdir,
         tref=tref,
         tstart=tstart,
         duration=duration,
         F0=F0,
         F1=F1,
         F2=F2,
         Alpha=Alpha,
         Delta=Delta,
         h0=h0,
         cosi=cosi,
         detectors=detectors,
         sqrtSX=sqrtSX,
         transientStartTime=transient_tstart,
         transientTau=transient_duration,
         transientWindowType="rect",
         Tsft=Tsft,
         Band=0.1,
     )
     transient.make_data()

Total running time of the script: ( 0 minutes 0.000 seconds)

Gallery generated by Sphinx-Gallery