bilby.gw.detector.calibration.Precomputed

class bilby.gw.detector.calibration.Precomputed(label, curves, frequency_array, parameters=None)[source]

Bases: Recalibrate

__init__(label, curves, frequency_array, parameters=None)[source]

A class for accessing an array of precomputed recalibration curves.

Parameters:
label: str

The label for the interferometer, e.g., H1. The corresponding parameter is recalib_index_{label}.

curves: array-like

Array with shape (n_curves, n_frequencies) with the recalibration curves.

frequency_array: array-like

Array of frequencies at which the curves are evaluated.

__call__(*args, **kwargs)

Call self as a function.

Methods

__init__(label, curves, frequency_array[, ...])

A class for accessing an array of precomputed recalibration curves.

constant_uncertainty_spline(amplitude_sigma, ...)

from_calibration_file(label, filename, ...)

from_envelope_file(envelope, ...)

get_calibration_factor(frequency_array, **params)

Apply calibration model

set_calibration_parameters(**params)

Attributes

name

get_calibration_factor(frequency_array, **params)[source]

Apply calibration model

This method should be overwritten by subclasses

Parameters:
frequency_array: array-like

The frequency values to calculate the calibration factor for.

paramsdict

Dictionary of sampling parameters which includes calibration parameters.

Returns:
calibration_factorarray-like

The factor to multiply the strain by.