redback.transient_models.spectral_models.lorentzian_line_profile
- redback.transient_models.spectral_models.lorentzian_line_profile(wavelength, lambda_center, amplitude, gamma, continuum=0.0)[source]
Pure Lorentzian (Cauchy) line profile
Natural line shape for radiative decay processes.
- Parameters:
wavelength (array) – Wavelength array in Angstroms
lambda_center (float) – Central wavelength in Angstroms
amplitude (float) – Peak amplitude (negative for absorption)
gamma (float) – Half-width at half-maximum (HWHM) in Angstroms
continuum (float) – Continuum level
- Returns:
flux – Lorentzian profile
- Return type:
array
Examples
>>> wave = np.linspace(6550, 6575, 500) >>> flux = lorentzian_line_profile(wave, 6563, -0.3, 1.5, continuum=1.0)