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
5103fcc0
Commit
5103fcc0
authored
7 years ago
by
Gregory Ashton
Browse files
Options
Downloads
Patches
Plain Diff
Adds documentation to the DopplerWings calculation methods
parent
b4110c12
No related branches found
No related tags found
No related merge requests found
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
pyfstat/helper_functions.py
+25
-13
25 additions, 13 deletions
pyfstat/helper_functions.py
pyfstat/injection_helper_functions.py
+2
-0
2 additions, 0 deletions
pyfstat/injection_helper_functions.py
with
27 additions
and
13 deletions
pyfstat/helper_functions.py
+
25
−
13
View file @
5103fcc0
...
@@ -241,23 +241,35 @@ def get_sft_array(sftfilepattern, data_duration, F0, dF0):
...
@@ -241,23 +241,35 @@ def get_sft_array(sftfilepattern, data_duration, F0, dF0):
return
times
,
freqs
,
data
return
times
,
freqs
,
data
def
get_covering_band
(
tref
,
tstart
,
tend
,
uniform_prior
):
def
get_covering_band
(
tref
,
tstart
,
tend
,
F0
,
F1
,
F2
):
"""
Get the covering band using XLALCWSignalCoveringBand
Parameters
----------
tref, tstart, tend: int
The reference, start, and end times of interest
F0, F1, F1:
Frequency and spin-down of the signal
Note: this is similar to the function
`injection_helper_functions.get_frequency_range_of_signal`, however this
does not use the sky position and calculates an estimate for a full year
search over any sky position. In this sense, it is much more conservative.
Returns
-------
F0min, F0max: float
Estimates of the minimum and maximum frequencies of the signal during
the search
"""
tref
=
lal
.
LIGOTimeGPS
(
tref
)
tref
=
lal
.
LIGOTimeGPS
(
tref
)
tstart
=
lal
.
LIGOTimeGPS
(
tstart
)
tstart
=
lal
.
LIGOTimeGPS
(
tstart
)
tend
=
lal
.
LIGOTimeGPS
(
tend
)
tend
=
lal
.
LIGOTimeGPS
(
tend
)
psr
=
lalpulsar
.
PulsarSpinRange
()
psr
=
lalpulsar
.
PulsarSpinRange
()
for
i
,
key
in
enumerate
([
'
F0
'
,
'
F1
'
,
'
F2
'
]):
psr
.
fkdot
[
0
]
=
F0
if
key
in
uniform_prior
:
psr
.
fkdot
[
1
]
=
F1
if
type
(
uniform_prior
[
key
])
==
dict
and
uniform_prior
[
key
][
'
type
'
]
==
'
unif
'
:
psr
.
fkdot
[
2
]
=
F2
l
,
u
=
uniform_prior
[
key
][
'
lower
'
],
uniform_prior
[
key
][
'
upper
'
]
psr
.
fkdot
[
i
]
=
(
l
+
u
)
/
2.
psr
.
fkdotBand
[
i
]
=
u
-
l
else
:
psr
.
fkdot
[
i
]
=
uniform_prior
[
key
]
psr
.
fkdotBand
[
i
]
=
0
else
:
raise
ValueError
(
'
uniform_prior should contain unif or const values of F0, F1, F2
'
)
psr
.
refTime
=
tref
psr
.
refTime
=
tref
return
lalpulsar
.
CWSignalCoveringBand
(
tstart
,
tend
,
psr
,
0
,
0
,
0
)
return
lalpulsar
.
CWSignalCoveringBand
(
tstart
,
tend
,
psr
,
0
,
0
,
0
)
...
...
This diff is collapsed.
Click to expand it.
pyfstat/injection_helper_functions.py
+
2
−
0
View file @
5103fcc0
...
@@ -68,6 +68,8 @@ def get_frequency_range_of_signal(F0, F1, Alpha, Delta, minStartTime,
...
@@ -68,6 +68,8 @@ def get_frequency_range_of_signal(F0, F1, Alpha, Delta, minStartTime,
Note: assumes tref is in the middle of the data span
Note: assumes tref is in the middle of the data span
Note: See also `pyfstat.helper_functions.get_covering_band`
Returns
Returns
-------
-------
[Fmin, Fmax]: array
[Fmin, Fmax]: array
...
...
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