You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
However, the following puzzles me, since I don't get the same radial velocity when using the manual formula and the lime output (the pickle dictionary with spectrum, variance, and wavelength axis is attached).
Line fitting progress:
[==========] 100% of 4 lines (H1_6563A)
v_r_lime:-18.850342740006468
v_r_manual:6.74700738846691
Now I would have expected that v_r_manual and v_r_lime are the same - v_r_manual is in this example also the value that appears correct given a previous result on this spectrum.
What is going on here?
(Btw. is there a way to turn of the "line fitting progress" message...)
Thank you @Knusper very much for your comment. I have checked your code and there is indeed a difference.
This has to do with the reference wavelength used to calculate the radial velocity. In the case of a single lines, it is the peak wavelength. In your code this would be:
v_r_manual = (l.peak_wavelength.iloc[0] / l.wavelength.iloc[0] - 1 ) * c
where l.peak_wavelength is the wavelength of the maximum flux pixel on the line band, which depending on the spectral resolution may be different from the central wavelength.
In complex blended profiles, specially in IFU data sets, the intensity of the peak may change considerably due to ionization conditions rather than kinematic... which may make it misleading to keep track of the kinematics using the peak wavelength... so Instead I use the theoretical leading line wavelength times (1 + z_input).
I would rather have the same logic for every line type... but I believe most users using longslist spectra prefer to use the peak wavelength and remove the redshift dependence...
Do you think the documentation should be more clear? It maybe good to add an sketch....
According to https://lime-stable.readthedocs.io/en/latest/outputs/outputs1_measurements.html
the
v_r
output parameter contains the radial velocity (note that there are brackets missing in the definition).However, the following puzzles me, since I don't get the same radial velocity when using the manual formula and the lime output (the pickle dictionary with spectrum, variance, and wavelength axis is attached).
The output is:
Now I would have expected that
v_r_manual
andv_r_lime
are the same -v_r_manual
is in this example also the value that appears correct given a previous result on this spectrum.What is going on here?
(Btw. is there a way to turn of the "line fitting progress" message...)
em_line_fit_debug.pickle.gz
The text was updated successfully, but these errors were encountered: