Commit 0b553c18 authored by Jameson Graef Rollins's avatar Jameson Graef Rollins Committed by Jameson Rollins

add top-level seismic noise function that just returns darm component

for consistency with all other noise calculation functions.
parent cfcf6481
Pipeline #52752 failed with stages
in 2 minutes and 13 seconds
......@@ -6,6 +6,12 @@ from scipy.interpolate import PchipInterpolator as interp1d
def seismic(f, ifo):
"""Seismic noise.
"""
return seismicAll(f, ifo)[0]
def seismicAll(f, ifo):
"""Seismic noise.
Return (noise, noise_vertical, noise_horizontal)
......@@ -30,7 +36,7 @@ def seismic(f, ifo):
# Convert into Strain PSD (4 TMs)
nh *= 4 * ifo.gwinc.dhdl_sqr
nv *= 4 * ifo.gwinc.dhdl_sqr
n *= 4 * ifo.gwinc.dhdl_sqr
n *= 4 * ifo.gwinc.dhdl_sqr
return n, nh, nv
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment