lisa_noise.modelled.mask

Likelihood mask around the nulls of the TDI covariance.

At the TDI nulls the model covariance is near-singular, so the bins around them can be left out of the likelihood. The mask is a boolean array over the science band: True = keep, False = leave out.

Functions

build_likelihood_mask(freq, cov[, n_buffer, ...])

Mask of the bins to keep: all but ±n_buffer around each null.

apply_mask(data, mask)

Apply a boolean mask to a dictionary of data arrays.

Module Contents

lisa_noise.modelled.mask.build_likelihood_mask(freq, cov, n_buffer=100, min_null_depth=100.0, min_null_depth_cross=10.0)

Mask of the bins to keep: all but ±n_buffer around each null.

Nulls are found in the three PSDs and the three cross-spectrum amplitudes of cov separately; a bin near a null of any of them is left out.

Parameters:
  • freq ((Nf,) array) – Science-band frequencies in Hz.

  • cov ((Nf, 3, 3) complex array) – XYZ covariance.

  • n_buffer (int) – Bins left out either side of each null.

  • min_null_depth (float) – Depth of a PSD null: the factor it drops below its surroundings.

  • min_null_depth_cross (float) – The same for the cross-spectra.

Returns:

mask

Return type:

(Nf,) bool array

lisa_noise.modelled.mask.apply_mask(data, mask)

Apply a boolean mask to a dictionary of data arrays.

Parameters:
  • data (dict of (N_freq,) arrays) – Data arrays to be masked (e.g. FFTs of TDI channels).

  • mask ((N_freq,) bool array) – Mask to apply, where True means “keep this bin”.

Returns:

masked_data

Return type:

dict of (M_freq,) arrays