bilby.gw.detector.calibration.write_calibration_file
- bilby.gw.detector.calibration.write_calibration_file(filename, frequency_array, calibration_draws, calibration_parameter_draws=None, correction_type=None)[source]
Function to write the generated response curves to file
- Parameters:
- filename: str
Location and filename to save the file
- frequency_array: array-like
The frequency values where the calibration response was calculated
- calibration_draws: array-like
Array which contains the calibration responses as a function of the frequency array specified. Shape is (number_of_response_curves x len(frequency_array))
- calibration_parameter_draws: data_frame
Parameters used to generate the random draws of the calibration response curves
- correction_type: str
How the correction is defined, either to the
data
(default) or thetemplate
. In general, data products produced by the LVK calibration groups assumedata
. The default value will be removed in a future release and this will need to be explicitly specified.Added in version 1.4.0.