Noise
Utilities for detector and environmental noise models, including ASD helpers
and time-domain synthesis.
The gwexpy.noise module is organized into two submodules:
gwexpy.noise.asd: Functions that return Amplitude Spectral Density (FrequencySeries)gwexpy.noise.wave: Functions that return time-series waveforms (TimeSeries)
gwexpy.noise.asd
Functions for generating Amplitude Spectral Density. All functions return FrequencySeries.
Detector Noise Models
Function |
Description |
|---|---|
|
Generate ASD from pyGWINC detector noise models (aLIGO, AdV, etc.) |
|
Generate ASD from ObsPy seismic noise models (NLNM, NHNM) |
Colored Noise ASD
Function |
Description |
|---|---|
|
Generate power-law ASD (f^-exponent) |
|
White noise ASD (flat spectrum) |
|
Pink noise ASD (1/f^0.5) |
|
Red/Brownian noise ASD (1/f) |
Geomagnetic Noise Models
Function |
Description |
|---|---|
|
Schumann resonance model (~7.83 Hz and harmonics) |
|
Background geomagnetic noise model |
Spectral Line Shapes
Function |
Description |
|---|---|
|
Lorentzian line shape |
|
Gaussian line shape |
|
Voigt profile (convolution of Gaussian and Lorentzian) |
gwexpy.noise.wave
Functions for generating time-series waveforms. All functions return TimeSeries.
Noise Generators
Function |
Description |
|---|---|
|
Gaussian (normal) white noise |
|
Uniform white noise |
|
Power-law colored noise |
|
White noise (exponent=0) |
|
Pink noise (1/f^0.5 spectrum) |
|
Red/Brownian noise (1/f spectrum) |
|
Generate colored noise from ASD |
Periodic Waveforms
Function |
Description |
|---|---|
|
Sine wave |
|
Square wave |
|
Sawtooth wave |
|
Triangle wave |
|
Swept-frequency cosine (chirp) |
Transient Signals
Function |
Description |
|---|---|
|
Step (Heaviside) function |
|
Impulse signal |
|
Exponential (decay/growth) |
Examples
from gwexpy.noise.wave import sine, gaussian, chirp, from_asd
from gwexpy.noise.asd import from_pygwinc, schumann_resonance
# Sine wave
wave = sine(duration=1.0, sample_rate=1024, frequency=10.0)
# Gaussian noise
noise = gaussian(duration=1.0, sample_rate=1024, std=0.1)
# Chirp (swept sine)
sweep = chirp(duration=1.0, sample_rate=1024, f0=10, f1=100)
# Detector strain ASD from pyGWINC
asd = from_pygwinc('aLIGO', quantity='strain', fmin=4.0, fmax=1024.0, df=0.01)
noise = from_asd(asd, duration=128, sample_rate=2048, t0=0)
# Schumann resonance model
sch_asd = schumann_resonance(harmonics=5)