sage.data.primer.get_psds
Filename : get_psds.py Description : Short description of the file
Created on 2025-12-16 15:44:10
__author__ = Narenraju Nagarajan __copyright__ = Copyright 2025, ProjectName __license__ = MIT Licence __version__ = 0.0.1 __maintainer__ = Narenraju Nagarajan __affiliation__ = N/A __email__ = N/A __status__ = [‘inProgress’, ‘Archived’, ‘inUsage’, ‘Debugging’]
GitHub Repository: NULL
Documentation: NULL
Classes
Estimate a fiducial PSD by sampling noise from the active noise pipeline. |
Module Contents
- class EstimatePSD(*, detector, num_samples=200000, psd_method=None, blackout_policy=None, store_psds_as_hdf5=False, store_psds_as_bin=False, apply_inverse_spectrum_truncation=False, max_filter_len=None, low_frequency_cutoff=15.0, trunc_method='hann', interpolate_psd=False, training_sample_length=None, psd_smoothener=None, **kwargs)[source]
Estimate a fiducial PSD by sampling noise from the active noise pipeline.
- Parameters:
- taper(freqs, psd, psd_floor=3.16e-23)[source]
Apply a cosine roll-off below the low-frequency cutoff.
Smoothly transitions the PSD from
psd_floorat DC to the measured value atlow_frequency_cutoff, imposing C¹ continuity and reducing time-domain ringing.- Parameters:
freqs (numpy.ndarray) – Frequency array (Hz).
psd (numpy.ndarray) – PSD array to be tapered (modified in-place).
psd_floor (float) – Noise floor value applied at DC (default
3.16e-23).
- Returns:
Tapered PSD (same object as psd).
- Return type: