redback.transient_models.spectral_models.gaussian_line_profile
- redback.transient_models.spectral_models.gaussian_line_profile(wavelength, lambda_center, amplitude, sigma, continuum=0.0)[source]
Pure Gaussian line profile
- Parameters:
wavelength (array) – Wavelength array in Angstroms
lambda_center (float) – Central wavelength in Angstroms
amplitude (float) – Peak amplitude (negative for absorption)
sigma (float) – Standard deviation in Angstroms
continuum (float) – Continuum level
- Returns:
flux – Gaussian profile
- Return type:
array
Examples
>>> wave = np.linspace(6550, 6575, 500) >>> flux = gaussian_line_profile(wave, 6563, -0.5, 2.0, continuum=1.0)