Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
P
PyFstat
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
This is an archived project. Repository and other project resources are read-only.
Show more breadcrumbs
Pep Covas Vidal
PyFstat
Commits
cf67d70f
Commit
cf67d70f
authored
7 years ago
by
Gregory Ashton
Browse files
Options
Downloads
Patches
Plain Diff
Adds FM in 'by hand' so that alternative Pmod can be specified
parent
b8a07c02
No related branches found
No related tags found
No related merge requests found
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
pyfstat/make_sfts.py
+14
-4
14 additions, 4 deletions
pyfstat/make_sfts.py
with
14 additions
and
4 deletions
pyfstat/make_sfts.py
+
14
−
4
View file @
cf67d70f
...
...
@@ -365,7 +365,7 @@ class FrequencyModulatedArtifactWriter(Writer):
@helper_functions.initializer
def
__init__
(
self
,
outdir
=
"
.
"
,
tstart
=
700000000
,
data_duration
=
86400
,
F0
=
30
,
tref
=
None
,
h0
=
10
,
Tsft
=
1800
,
sqrtSX
=
1
,
Band
=
4
,
Pmod
=
lal
.
DAYSID_SI
,
phi
_amplitude
=
0
,
Alpha
=
1.2
,
Delta
=
0.5
,
IFO
=
'
H1
'
,
Pmod
=
lal
.
DAYSID_SI
,
phi
r0
=
0
,
Alpha
=
1.2
,
Delta
=
0.5
,
IFO
=
'
H1
'
,
earth_ephem
=
None
,
sun_ephem
=
None
):
"""
Parameters
...
...
@@ -410,10 +410,20 @@ class FrequencyModulatedArtifactWriter(Writer):
ephems
=
lalpulsar
.
InitBarycenter
(
self
.
earth_ephem
,
self
.
sun_ephem
)
lalpulsar
.
DetectorPosVel
(
spin_posvel
,
orbit_posvel
,
lal
.
LIGOTimeGPS
(
t
),
det
,
ephems
,
lalpulsar
.
DETMOTION_ORBIT
+
lalpulsar
.
DETMOTION_SPIN
)
lalpulsar
.
DETMOTION_ORBIT
)
# Pos and vel returned in units of c
f
=
self
.
F0
+
np
.
dot
(
self
.
n
,
orbit_posvel
.
vel
+
spin_posvel
.
vel
)
*
self
.
Fmax
if
self
.
IFO
==
'
H1
'
:
Lambda
=
lal
.
LHO_4K_DETECTOR_LATITUDE_RAD
elif
self
.
IFO
==
'
L1
'
:
Lambda
=
lal
.
LLO_4K_DETECTOR_LATITUDE_RAD
phir
=
2
*
np
.
pi
*
t
/
self
.
Pmod
+
self
.
phir0
DeltaFSpin
=
lal
.
REARTH_SI
/
lal
.
C_SI
*
2
*
np
.
pi
/
self
.
Pmod
*
(
np
.
sin
(
self
.
Delta
)
*
np
.
sin
(
Lambda
)
+
np
.
cos
(
self
.
Alpha
)
*
np
.
cos
(
self
.
Delta
)
*
np
.
cos
(
Lambda
)
*
np
.
cos
(
phir
)
+
np
.
sin
(
self
.
Alpha
)
*
np
.
cos
(
self
.
Delta
)
*
np
.
sin
(
Lambda
)
*
np
.
sin
(
phir
)
)
f
=
self
.
F0
+
(
np
.
dot
(
self
.
n
,
orbit_posvel
.
vel
)
+
DeltaFSpin
)
*
self
.
Fmax
return
f
def
get_h0
(
self
,
t
):
...
...
@@ -461,4 +471,4 @@ class FrequencyModulatedArtifactWriter(Writer):
class
FrequencyAmplitudeModulatedArtifactWriter
(
FrequencyModulatedArtifactWriter
):
"""
Instance object for generating SFTs containing artifacts
"""
def
get_h0
(
self
,
t
):
return
self
.
h0
*
np
.
sin
(
2
*
np
.
pi
*
t
/
self
.
Pmod
+
self
.
phi
_amplitude
)
return
self
.
h0
*
np
.
sin
(
2
*
np
.
pi
*
t
/
self
.
Pmod
+
self
.
phi
r0
)
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment