lisa_noise.modelled.knots

Knot placement and starting values for the TMA and OMS noise splines.

Classes

SplineKnots

The knots of one log10 PSD spline, all (n_knots,) arrays.

Knots

The TMA and OMS splines of the modelled noise.

Functions

psds_from_cfg(freq, instrument)

Parametric TMA (m²/s⁴/Hz) and OMS (m²/Hz) PSDs at freq.

build_knots(freq, instrument[, science_band, n_oms_knots]) → Knots

Knot frequencies and starting log10 PSDs for the two splines.

Module Contents

lisa_noise.modelled.knots.psds_from_cfg(freq, instrument: dict)

Parametric TMA (m²/s⁴/Hz) and OMS (m²/Hz) PSDs at freq.

instrument is the modelled.instrument section of a loaded config.

class lisa_noise.modelled.knots.SplineKnots

The knots of one log10 PSD spline, all (n_knots,) arrays.

ghost_mask is True for the knots held fixed (those outside the band).

freq: numpy.ndarray
log10_value: numpy.ndarray
ghost_mask: numpy.ndarray
property free_values: numpy.ndarray

Starting log10 PSDs at the free knots.

class lisa_noise.modelled.knots.Knots

The TMA and OMS splines of the modelled noise.

The parameter vector of the model is the free TMA values followed by the free OMS values; this class is the one place that order is defined. instrument holds the settings of the parametric PSDs the knots were started from, which the model follows beyond the ghost knots.

tma: SplineKnots
oms: SplineKnots
instrument: dict
property n_tma: int

where the parameter vector splits.

Type:

Number of free TMA knots

property free_values: numpy.ndarray

Starting parameter vector.

property param_names: list[str]

tma_0, …, oms_0, ….

Type:

Name of each parameter

to_dict() → dict

Plain nested dictionary, for the result file.

classmethod from_dict(record: dict) → Knots

Inverse of to_dict().

lisa_noise.modelled.knots.build_knots(freq, instrument: dict, science_band=(0.0001, 0.1), n_oms_knots: int = 8) → Knots

Knot frequencies and starting log10 PSDs for the two splines.

TMA knots are concentrated around the turning point of its PSD (~8 mHz); OMS knots are evenly spaced in log frequency. Each spline also has a ghost knot either side of the band, held at the parametric PSD to anchor it.

Parameters:
  • freq ((Nf,) array) – Frequencies in Hz (only used to locate the TMA turning point).

  • instrument (dict) – The modelled.instrument section of a loaded config.

  • science_band ((f_min, f_max)) – Band in Hz the free knots span.

  • n_oms_knots (int) – Number of OMS knots in the band.