pypeit.fluxcalibrate module

pypeit.fluxcalibrate.flux_calibrate(spec1dfiles, sensfiles, par=None, outfiles=None, chk_version=True)[source]

Function for flux calibrating spectra.

Parameters:
  • spec1dfiles (list) – List of PypeIt spec1d files that you want to flux calibrate

  • sensfiles (list) – List of sensitivity function files to use to flux calibrate the spec1d files. This list and the sensfiles list need to have the same length and be aligned

  • par (FluxCalibratePar, optional) – Parset object containing parameters governing the flux calibration.

  • outfiles (list, optional) – Names of the output files. If None, this is set to spec1dfiles and those are overwritten

  • chk_version (bool, optional) – Whether to check of the data model versions of spec1d and sens files. Defaults to True.