Fitting the noise

To fit the noise of a processed data file, run the pipeline with lisa-noise-pipe, one segment per job, and check the fits with lisa-noise-verify. The model it fits is described in The modelled pipeline.

1. Process the data

lisa-noise reads the processed file written by MojitoProcessor: filtered, optionally decimated, cut into segments and tapered. The settings used are recorded in the file and read back from it, so they are not repeated in the lisa-noise configuration.

2. Write a configuration

Only the input and output are required; everything else has a default (see Configuration reference).

general:
  input_file: "processed_segments.h5"
  output_directory: "results/"
  use_jax: true

inference:
  method: "mle"   # or "mcmc"

Relative paths are taken relative to the configuration file. A key that is not in the defaults is an error, so a typo cannot be silently ignored.

3. Run

One segment, or all of them in turn:

lisa-noise-pipe run --config conf.yaml --segment 0
lisa-noise-pipe run --config conf.yaml

Each segment writes segment_N.h5 to the output directory. A segment whose file already exists is skipped, so an interrupted run can be restarted with the same command; delete the file to refit a segment.

On an HTCondor cluster, write a DAG with one job per segment followed by collect, and submit it:

lisa-noise-pipe submit --config conf.yaml --scheduler condor --submit

Without --submit the files are only written, to <output_directory>/submit/. Job resources are set in the condor section of the configuration.

--log-level {DEBUG,INFO,WARNING,ERROR} goes before the subcommand.

4. Collect

lisa-noise-pipe collect --config conf.yaml

merges the per-segment files into <output_directory>/combined_results.h5, which is the product other analyses read (see Using a fitted covariance).

5. Verify

lisa-noise-verify --config conf.yaml --segment 0 --output segment0.png

plots the fitted XYZ and AET spectra over the periodogram of the segment and prints a whiteness test: under a correct covariance the whitened residual of each frequency bin follows a Gamma(3, 1) law, with mean 3.