-
-
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
Decide on idiom for recording redshift/velocity of spectra #455
Comments
A data point #1 from an astronomer I surveyed (not on github) who does resolved (faint, relatively low-res) stellar spectroscopy: to him it was natural to keep the redshift separate from the spectrum object, and apply redshift-related operations. (As opposed to having the state of the redshift on the spectrum itself) |
I don't have a strong opinion here since I work at z=0. As an outsider, it would be helpful to see additional explicit use cases laid out. |
@keflavich - A few example use cases off the top of my head (others are welcome to chime in with more!):
|
An item that has just come up in this direction: the spectral coord from #422 we've realized probably needs to (indirectly) encode the redshift in it. In principle, the Now it's probably quite natural to also have the |
@eteq the The drawback I see in this is that it's probably not the most natural way users see the redshift/rv property of a spectrum. I would say that dealing with a Also, spectrum collections would require perhaps a different approach. There might be collections in which one coordinate object should be used (I am thinking about echelle and similar spectra), while in other types of collections (IFUs), separate coordinate instances would be required. As for requiring spectra having redshifts, maybe we should allow spectra to have a None |
After a conversation among @astrofrog, @eteq, @nmearl, and @camipacifici:
A sample of tester scientist will try this approach and see how they like it. Test cases include: working with a single spectrum or a collection; use available methods for conversions between rest and observer frame; methods that calculate the redshift write directly in the Spectrum1D object. |
Redshift and radial velocity handling is now done via the |
This issue actually touches on several topics and is more of a roll-up of some related issues. But we do need to answer this to move forward. The core question is how we want to store the concept of "the redshift of this spectrum".
First, the specific related issues:
SpectralCoord
(one minor awkwardness: requires changes ingwcs
at the same time asspecutils
). This isn't immediately obvious related, until you realize it would have arest
attribute, which is implicitly specifying a "redshift". So wherever the redshift is specified has to be synced up with that somehow. I also thing it's not the way most astronomers are used to thinking, so we have to either spend a lot of effort training them in or "hide it" somehow for use cases that don't require its full power.SpectralCoord
s to transform themselves. But it's mixed together with the question of whether that should be done on the spectrum vs separatelyNow for the questions (which are sort of questions about both
Spectrum1D
andSpectralCoord
):Spectrum1D
cases? (potentially problematic mainly for theSpectralCoord
contains the redshift b/c then theSpectralCoord
is not separable from the spectrum)SpectrumCollection
case? (probably easier for theSpectralCoord
case, but should be not terribly inconsistent with 2 above)spectral_coord
, rather than the flux, although a valid option is "don't do this")I have some ideas, but want to allow room for discussion without spoiling things...
cc @keflavich @crawfordsm @hcferguson @astrofrog @nden
The text was updated successfully, but these errors were encountered: