-
-
Notifications
You must be signed in to change notification settings - Fork 127
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Where should Redshift/RV be stored on Spectrum objects, and how to transform between different forms - RV(opt)/RV(rad) #258
Comments
This ticket is now being tracked at JDAT-7 |
To implement this without solving the idiom issue at #455 probably means we should do it in a top-level function in the |
No, |
Aren't radio and optical essentially the same conversion? The differences in between the formulae of these two have to do with spectral axis units, but for the non-relativistic approximation, the formulae perform the same operation. Or am I missing something? Maybe we need a clarification on the purpose of this translation. Is it meant to generate a velocity axis in velocity units, against which the spectrum data can be paired? Is it meant to generate a rest spectral axis in wavelength/frequency units? Or something else? This discussion would probably benefit from work done under #455 |
No. The differences in the formulas should be obvious below:
I don't know what you mean by this; all of the formulas expect a dispersion in frequency (or wavelength) space and produce a spectral axis in velocity space. The purpose of the velocity convention is how to convert the spectral axis from frequency or wavelength space to one in velocity space (or the reverse). Depending on your needs and the characteristics of the observation, you'll use a different convention. E.g. Optical velocities are commonly used for (Helio/Barycentric) extragalactic observations; (LSR) radio velocities are typical for Galactic observations. |
OK, thanks for the references, it's clearer now. Do you guys agree that a top-level function is the way to go for now? I envision a function that has as input a (properly initialized) Are there use cases where one would benefit with the reverse translation as well (velocity->w/f/e)? |
I'm not sure what you mean. Specutils already supports converting to velocity space by simply calling The only thing specutils does not handle currently is redshifting. |
Ah, OK, I was confused because I was looking at the code in |
I assume from the title that this is supposed to handle both redshift (a-dimensional), and radial velocity (quantity with velocity units). Any ideas on how to implement the distinction in a user friendly way? |
Note: I think the direction that things are going to go for this is to have the That said, we can still keep this issue open for the |
|
original card by @keflavich
The text was updated successfully, but these errors were encountered: