LALPulsar  6.1.0.1-89842e6
test_heterodyned_model Namespace Reference

Functions

def test_one (det)
 
def test_two ()
 
def test_three (harmonic)
 
def test_four ()
 
def test_five ()
 
def test_six ()
 
def test_seven ()
 
def test_transient (det)
 Test the transient signal models with a rectangular and exponential decay. More...
 

Variables

dictionary t1output
 The first test output is to create a signal model for a source assuming that the heterodyne precisely matches the signal, i.e., it only varies due to the antenna pattern. More...
 
 t2output
 
dictionary t3output
 
 t4output
 
 t5output
 
 t6output
 
 t7output
 
 earthephem = os.path.join(os.environ["LAL_TEST_PKGDATADIR"], "earth00-40-DE405.dat.gz")
 
 sunephem = os.path.join(os.environ["LAL_TEST_PKGDATADIR"], "sun00-40-DE405.dat.gz")
 
 timefile = os.path.join(os.environ["LAL_TEST_PKGDATADIR"], "te405_2000-2040.dat.gz")
 
 edat = lalpulsar.InitBarycenter(earthephem, sunephem)
 
 tdat = lalpulsar.InitTimeCorrections(timefile)
 
 args
 

Function Documentation

◆ test_one()

def test_heterodyned_model.test_one (   det)

Definition at line 549 of file test_heterodyned_model.py.

◆ test_two()

def test_heterodyned_model.test_two ( )

Definition at line 613 of file test_heterodyned_model.py.

◆ test_three()

def test_heterodyned_model.test_three (   harmonic)

Definition at line 690 of file test_heterodyned_model.py.

◆ test_four()

def test_heterodyned_model.test_four ( )

Definition at line 770 of file test_heterodyned_model.py.

◆ test_five()

def test_heterodyned_model.test_five ( )

Definition at line 865 of file test_heterodyned_model.py.

◆ test_six()

def test_heterodyned_model.test_six ( )

Definition at line 939 of file test_heterodyned_model.py.

◆ test_seven()

def test_heterodyned_model.test_seven ( )

Definition at line 1017 of file test_heterodyned_model.py.

◆ test_transient()

def test_heterodyned_model.test_transient (   det)

Test the transient signal models with a rectangular and exponential decay.

Definition at line 1113 of file test_heterodyned_model.py.

Variable Documentation

◆ t1output

dictionary test_heterodyned_model.t1output

The first test output is to create a signal model for a source assuming that the heterodyne precisely matches the signal, i.e., it only varies due to the antenna pattern.

lalpulsar_parameter_estimation_nested has been run with the following pulsar parameter "inj.par" file:

PSRJ TEST RAJ 01:23:34.5 DECJ -45:01:23.4 F0 123.456789 F1 -9.87654321e-12 PEPOCH 58000 H0 5.6e-26 COSIOTA -0.2 PSI 0.4 PHI0 2.3 EPHEM DE405 UNITS TCB

lalpulsar_parameter_estimation_nested –par-file inj.par –outfile test.hdf –harmonics 2 –inject-file inj.par –inject-only –inject-output inj.txt –fake-data H1,L1 –fake-starts 1000000000,1000000000 –fake-lengths 86400,86400 –fake-dt 3600,3600

The outputs of "inj.txt_H1_2.0_signal_only" and "inj.txt_L1_2.0_signal_only" are given below.

Definition at line 65 of file test_heterodyned_model.py.

◆ t2output

test_heterodyned_model.t2output
Initial value:
1 = np.array(
2  [
3  [1000000000.0, -5.941104012924e-27, 1.561111119568e-27],
4  [1000000060.0, -6.078674025313e-27, 1.108663867367e-27],
5  [1000000120.0, -6.181603080801e-27, 6.451136978413e-28],
6  [1000000180.0, -6.249044892549e-27, 1.731192817987e-28],
7  [1000000240.0, -6.280357307660e-27, -3.045989420574e-28],
8  [1000000300.0, -6.275106653741e-27, -7.852744278380e-28],
9  [1000000360.0, -6.233070880130e-27, -1.266110481373e-27],
10  [1000000420.0, -6.154241482804e-27, -1.744296420398e-27],
11  [1000000480.0, -6.038824191671e-27, -2.217023814819e-27],
12  [1000000540.0, -5.887238436697e-27, -2.681502811182e-27],
13  ]
14 )

Definition at line 164 of file test_heterodyned_model.py.

◆ t3output

dictionary test_heterodyned_model.t3output
Initial value:
1 = {
2  "1": np.array(
3  [
4  [1000000000.0, -2.281620347081e-26, -7.267059337744e-27],
5  [1000000060.0, -2.242012648444e-26, -8.024920903732e-27],
6  [1000000120.0, -2.199802615415e-26, -8.763862546799e-27],
7  [1000000180.0, -2.155075521735e-26, -9.482964910868e-27],
8  [1000000240.0, -2.107919965732e-26, -1.018134596439e-26],
9  [1000000300.0, -2.058427708343e-26, -1.085816221335e-26],
10  [1000000360.0, -2.006693507621e-26, -1.151260986472e-26],
11  [1000000420.0, -1.952814948068e-26, -1.214392590347e-26],
12  [1000000480.0, -1.896892272393e-26, -1.275138910868e-26],
13  [1000000540.0, -1.839028196029e-26, -1.333432099023e-26],
14  ]
15  ),
16  "2": np.array(
17  [
18  [1000000000.0, 1.151114436476e-26, -4.292865557392e-27],
19  [1000000060.0, 1.187524854552e-26, -3.419959925105e-27],
20  [1000000120.0, 1.217263381782e-26, -2.518042744682e-27],
21  [1000000180.0, 1.240108521541e-26, -1.592235817764e-27],
22  [1000000240.0, 1.255878166730e-26, -6.478246234004e-28],
23  [1000000300.0, 1.264430777434e-26, 3.097719790379e-28],
24  [1000000360.0, 1.265666324682e-26, 1.275032881006e-27],
25  [1000000420.0, 1.259526996162e-26, 2.242366499355e-27],
26  [1000000480.0, 1.245997657263e-26, 3.206142957363e-27],
27  [1000000540.0, 1.225106070777e-26, 4.160726677163e-27],
28  ]
29  ),
30 }

Definition at line 225 of file test_heterodyned_model.py.

◆ t4output

test_heterodyned_model.t4output
Initial value:
1 = np.array(
2  [
3  [1000000000.0, -2.005382682171e-27, -5.806222964895e-27],
4  [1000000060.0, 6.157890500690e-27, 5.097038927998e-28],
5  [1000000120.0, -2.949373857456e-27, 5.470793560413e-27],
6  [1000000180.0, -3.871712822495e-27, -4.908194390501e-27],
7  [1000000240.0, 6.071607014385e-27, -1.634397959568e-27],
8  [1000000300.0, -8.720674118593e-28, 6.263634557667e-27],
9  [1000000360.0, -5.468817484054e-27, -3.247498063718e-27],
10  [1000000420.0, 5.125788386822e-27, -3.826689384362e-27],
11  [1000000480.0, 1.601886955222e-27, 6.230292962298e-27],
12  [1000000540.0, -6.411302862101e-27, -8.632666722102e-28],
13  ]
14 )

Definition at line 309 of file test_heterodyned_model.py.

◆ t5output

test_heterodyned_model.t5output
Initial value:
1 = np.array(
2  [
3  [1000000000.0, 2.413832756525e-26, 1.185008925479e-26],
4  [1000003600.0, 2.261015869048e-26, 1.353795950522e-26],
5  [1000007200.0, 1.693819370778e-26, 1.205591484118e-26],
6  [1000010800.0, 8.826543665516e-27, 7.844031741297e-27],
7  [1000014400.0, 4.864166183254e-28, 2.043552377844e-27],
8  [1000018000.0, -5.961350254474e-27, -3.810915453418e-27],
9  [1000021600.0, -9.049037164685e-27, -8.203008361034e-27],
10  [1000025200.0, -8.338836580606e-27, -1.003879189105e-26],
11  [1000028800.0, -4.514037100223e-27, -8.935501871933e-27],
12  [1000032400.0, 8.389816591977e-28, -5.316862125252e-27],
13  [1000036000.0, 5.696076643445e-27, -2.902907800008e-28],
14  [1000039600.0, 8.180535124244e-27, 4.660428187861e-27],
15  [1000043200.0, 7.107590901248e-27, 8.083846851900e-27],
16  [1000046800.0, 2.338787027244e-27, 8.959804096635e-27],
17  [1000050400.0, -5.151227246717e-27, 6.981092071373e-27],
18  [1000054000.0, -1.351620286624e-26, 2.640990277497e-27],
19  [1000057600.0, -2.052378588485e-26, -2.896887794574e-27],
20  [1000061200.0, -2.415548913847e-26, -8.111602201827e-27],
21  [1000064800.0, -2.315941209325e-26, -1.153669175848e-26],
22  [1000068400.0, -1.740609207988e-26, -1.215933456752e-26],
23  [1000072000.0, -7.950868000824e-27, -9.699490143059e-27],
24  [1000075600.0, 3.216714991178e-27, -4.692952735182e-27],
25  [1000079200.0, 1.367058676109e-26, 1.644309606653e-27],
26  [1000082800.0, 2.116179045441e-26, 7.734541471774e-27],
27  ]
28 )

Definition at line 358 of file test_heterodyned_model.py.

◆ t6output

test_heterodyned_model.t6output
Initial value:
1 = np.array(
2  [
3  0.962333260,
4  6.103230186,
5  4.076170449,
6  1.165825399,
7  3.656722577,
8  2.766150856,
9  6.024421923,
10  5.892164017,
11  4.884626261,
12  3.003294698,
13  ]
14 )

Definition at line 445 of file test_heterodyned_model.py.

◆ t7output

test_heterodyned_model.t7output
Initial value:
1 = np.array(
2  [
3  2.420723736,
4  4.682767534,
5  0.313020652,
6  1.879459964,
7  3.100512978,
8  3.977798875,
9  4.512941892,
10  4.707573756,
11  2.060503777,
12  0.462653250,
13  ]
14 )

Definition at line 522 of file test_heterodyned_model.py.

◆ earthephem

test_heterodyned_model.earthephem = os.path.join(os.environ["LAL_TEST_PKGDATADIR"], "earth00-40-DE405.dat.gz")

Definition at line 539 of file test_heterodyned_model.py.

◆ sunephem

test_heterodyned_model.sunephem = os.path.join(os.environ["LAL_TEST_PKGDATADIR"], "sun00-40-DE405.dat.gz")

Definition at line 540 of file test_heterodyned_model.py.

◆ timefile

test_heterodyned_model.timefile = os.path.join(os.environ["LAL_TEST_PKGDATADIR"], "te405_2000-2040.dat.gz")

Definition at line 541 of file test_heterodyned_model.py.

◆ edat

test_heterodyned_model.edat = lalpulsar.InitBarycenter(earthephem, sunephem)

Definition at line 544 of file test_heterodyned_model.py.

◆ tdat

test_heterodyned_model.tdat = lalpulsar.InitTimeCorrections(timefile)

Definition at line 545 of file test_heterodyned_model.py.

◆ args

test_heterodyned_model.args

Definition at line 1183 of file test_heterodyned_model.py.