calc_velocity
- eispac.instr.calc_velocity(observed_wave, rest_wave, corr_method='column')[source]
Calculate the Doppler velocity of a given line profile
- Parameters:
observed_wave (list, tuple, or
ndarray
) – Observed centroid wavelength values for a given spectral line in units of [Angstrom]rest_wave (float or str) – Rest wavelength value in units of [Angstrom]. If given a string, will check to see if it is a spectral line ID and, if it is, will try to extract the rest wavelength.
corr_method (str, optional) – Method used to roughly correct for spacecraft temperture variations. Choose from ‘column’, ‘image’, or None. Default is ‘column’
- Returns:
velocity –
- Doppler velocity in units of [km/s]. Computed using the equation,
vel = c*(obs_wave - rest_wave)/rest_wave
- Return type: