Long transient search examples: Make data

An example to generate data with a long 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_long_transient_MCMC_search.py

12 import os
13
14 import pyfstat
15
16 outdir = os.path.join("PyFstat_example_data", "PyFstat_example_long_transient_search")
17
18 F0 = 30.0
19 F1 = -1e-10
20 F2 = 0
21 Alpha = 0.5
22 Delta = 1
23
24 tstart = 1000000000
25 duration = 200 * 86400
26
27 transient_tstart = tstart + 0.25 * duration
28 transient_duration = 0.5 * duration
29 transientWindowType = "rect"
30 tref = tstart
31
32 h0 = 1e-23
33 cosi = 0
34 psi = 0
35 phi = 0
36 sqrtSX = 1e-22
37 detectors = "H1,L1"
38
39 if __name__ == "__main__":
40
41     transient = pyfstat.Writer(
42         label="simulated_transient_signal",
43         outdir=outdir,
44         tref=tref,
45         tstart=tstart,
46         duration=duration,
47         F0=F0,
48         F1=F1,
49         F2=F2,
50         Alpha=Alpha,
51         Delta=Delta,
52         h0=h0,
53         cosi=cosi,
54         detectors=detectors,
55         sqrtSX=sqrtSX,
56         transientStartTime=transient_tstart,
57         transientTau=transient_duration,
58         transientWindowType=transientWindowType,
59     )
60     transient.make_data()
61     print("Predicted 2F from injection Writer:", transient.predict_fstat())

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

Gallery generated by Sphinx-Gallery