Skip to content
Snippets Groups Projects
Commit b8a07c02 authored by Gregory Ashton's avatar Gregory Ashton
Browse files

Adds DMoff threshold macro

parent fc7e98ae
No related branches found
No related tags found
No related merge requests found
...@@ -274,3 +274,10 @@ def get_covering_band(tref, tstart, tend, F0, F1, F2): ...@@ -274,3 +274,10 @@ def get_covering_band(tref, tstart, tend, F0, F1, F2):
return lalpulsar.CWSignalCoveringBand(tstart, tend, psr, 0, 0, 0) return lalpulsar.CWSignalCoveringBand(tstart, tend, psr, 0, 0, 0)
def twoFDMoffThreshold(twoFon, knee=400, twoFDMoffthreshold_below_threshold=62,
prefactor=0.9, offset=0.5):
""" Calculation of the 2F_DMoff threshold, see Eq 2 of arXiv:1707.5286 """
if twoFon <= knee:
return twoFDMoffthreshold_below_threshold
else:
return 10**(prefactor*np.log10(twoFon-offset))
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment