Using a fitted covariance¶
An analysis that only needs the noise covariance reads it from the combined
result file of a fit (combined_results.h5, see Fitting the noise); nothing is
refitted.
Covariance of the data¶
from lisa_noise import get_XYZ_cov
freq, cov = get_XYZ_cov("results/combined_results.h5", time=1.245e8)
cov has shape (Nf, 3, 3): the one-sided XYZ PSDs on the diagonal and the
cross-spectra off it, in fractional-frequency units. It is the covariance of
the data the fit was made on, filter, decimation and taper included, on that
segment’s own frequency grid freq. time is a TCB epoch in seconds; the fit
of the segment containing it is used, or the nearest one if none does.
Passing data_file and segment conditions the same fit for a segment of
another processed file. The signal templates of the analysis must go through
the same conditioning as the data.
Instrument covariance¶
A modelled fit also gives the covariance of the instrument noise itself, free of the conditioning, on any frequency grid:
import numpy as np
from lisa_noise import get_XYZ_inst_cov
frequency = np.geomspace(1e-4, 1e-1, 1000)
cov = get_XYZ_inst_cov("results/combined_results.h5", frequency, time=1.245e8)
See The modelled pipeline for the difference between the two.