bilby.gw.detector.calibration.CubicSpline

class bilby.gw.detector.calibration.CubicSpline(prefix, minimum_frequency, maximum_frequency, n_points)[source]

Bases: Recalibrate

__init__(prefix, minimum_frequency, maximum_frequency, n_points)[source]

Cubic spline recalibration

see https://dcc.ligo.org/DocDB/0116/T1400682/001/calnote.pdf

This assumes the spline points follow np.logspace(np.log(minimum_frequency), np.log(maximum_frequency), n_points)

Parameters:
prefix: str

Prefix on parameters relating to the calibration.

minimum_frequency: float

minimum frequency of spline points

maximum_frequency: float

maximum frequency of spline points

n_points: int

number of spline points

__call__(*args, **kwargs)

Call self as a function.

Methods

__init__(prefix, minimum_frequency, ...)

Cubic spline recalibration

get_calibration_factor(frequency_array, **params)

Apply calibration model

set_calibration_parameters(**params)

Attributes

delta_log_spline_points

log_spline_points

name

nodes_to_spline_coefficients

get_calibration_factor(frequency_array, **params)[source]

Apply calibration model

Parameters:
frequency_array: array-like

The frequency values to calculate the calibration factor for.

prefix: str

Prefix for calibration parameter names

paramsdict

Dictionary of sampling parameters which includes calibration parameters.

Returns:
calibration_factorarray-like

The factor to multiply the strain by.