redback.transient_models.spectral_models.elementary_p_cygni_profile
- redback.transient_models.spectral_models.elementary_p_cygni_profile(wavelength, lambda_rest, v_absorption, absorption_depth, emission_strength, v_width, continuum_flux=1.0)[source]
Elementary P-Cygni profile with simple parameterization
Simpler model for quick fits, using Gaussian absorption and emission components.
- Parameters:
wavelength (array) – Wavelength array in Angstroms
lambda_rest (float) – Rest wavelength of transition in Angstroms
v_absorption (float) – Velocity of absorption minimum in km/s (positive value)
absorption_depth (float) – Depth of absorption trough (0 to 1, fraction of continuum)
emission_strength (float) – Strength of emission peak (relative to continuum)
v_width (float) – Velocity width of features in km/s
continuum_flux (float) – Continuum flux level
- Returns:
flux – P-Cygni profile
- Return type:
array
Examples
>>> wave = np.linspace(6000, 6700, 1000) >>> flux = elementary_p_cygni_profile(wave, lambda_rest=6355, ... v_absorption=11000, ... absorption_depth=0.4, ... emission_strength=0.2, ... v_width=1500)