SBART.utils.shift_spectra#
Functions to shift spectra.
Implements utility functions to correct for stellar RV and BERV
Functions
|
Apply BERV correction to data. |
|
Apply RV shift to spectra. |
|
Apply the approximated BERV correction that is implemented in ESO DRS 3.2. |
|
Remove BERV correction to data. |
|
Remove RV shift from wavelength vector. |
|
Remove the approximated BERV correction implemented in ESO DRS 3.2. |
- apply_RVshift(wave, stellar_RV)#
Apply RV shift to spectra.
- Parameters:
wave (np.ndarray) – Wavelength array
stellar_RV (float) – RV shift to apply, in km/s
- Returns:
New wavelength array, after RV shift
- Return type:
np.ndarray
- remove_RVshift(wave, stellar_RV)#
Remove RV shift from wavelength vector.
- Parameters:
wave (np.ndarray) – Wavelength vector
stellar_RV (float) – stellar RV, in km/s
- Returns:
New wavelength array
- Return type:
np.ndarray
- apply_approximated_BERV_correction(wave, BERV)#
Apply the approximated BERV correction that is implemented in ESO DRS 3.2.
- Parameters:
wave (np.ndarray) – wavelength array
BERV (float) – BERV value, with the 1.55 * 10**-8 approximation
- Returns:
BERV-corrected wavelength array
- Return type:
np.ndarray
- remove_approximated_BERV_correction(wave, BERV)#
Remove the approximated BERV correction implemented in ESO DRS 3.2.
- Parameters:
wave (np.ndarray) – wavelength array
BERV (float) – BERV value, with the 1.55 * 10**-8 approximation
- Returns:
BERV-corrected wavelength array
- Return type:
np.ndarray
- apply_BERV_correction(wave, BERV)#
Apply BERV correction to data.
- Parameters:
wave (np.ndarray) – wavelength array
BERV (float) – BERV value, with the 1.55 * 10**-8 approximation
- Returns:
BERV-corrected wavelength array
- Return type:
np.ndarray
- remove_BERV_correction(wave, BERV)#
Remove BERV correction to data.
- Parameters:
wave (np.ndarray) – wavelength array
BERV (float) – BERV value, with the 1.55 * 10**-8 approximation
- Returns:
BERV-corrected wavelength array
- Return type:
np.ndarray