-
Notifications
You must be signed in to change notification settings - Fork 107
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
Relation to specutils #1263
Comments
In short, PypeIt was developed in parallel with the new Second, the functionality we desire for All that said, I could imagine a day where the two paths merged, As a short-term solution, I presume it would be easy enough |
Would it be useful to contact the specutils people to see how a common class hierarchy could look like? To me, having two independent classes in the Astropy ecosystem for basically the same thing seems not the best way forward. |
Well, there is at least even a 3rd in the ecosystem: https://github.com/linetools/linetools/blob/master/linetools/spectra/xspectrum1d.py which existed well before the newer development of |
Any decisions on this front were made before my time, but as far as I'm aware the needs of @eteq probably has a lot more historical context on the decision making than I do. |
Comparatively, I feel that |
Here at Keck, I’m seriously looking at incorporating many of the specutils/specviz things for quick-time analysis. What would be nice is if we could eventually guarantee that PypeIt generated data can be easily read in, or at least we can make a translator.
J
… On Sep 16, 2021, at 7:55 AM, Nicholas Earl ***@***.***> wrote:
specutils, at its core, is meant to be an analysis package. That is, spectral data should be reduced and properly formatted before being fed into specutils. From there, the package modules represent ways to interact with and analyze the spectral data.
Comparatively, PypeIt is more a reduction package: it can take raw observations and detector-specific information and reduce it to the level that would be useful in a scientific analysis. It's understandable that PypeIt would need something to represent their 1D spectral data, but not necessarily something that would need to interoperate deeply with astropy-oriented analysis functionality (e.g. astropy model fitting, complex wcs operations, uncertainty propagation, etc).
I feel that PypeIt and specutils do operate in distinct spaces, but with some overlap that I think could be easily addressed in the future as @profxj <https://github.com/profxj> points out.
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub <#1263 (comment)>, or unsubscribe <https://github.com/notifications/unsubscribe-auth/ACNJKTD7CCOVLB2T7S4DIL3UCIVRXANCNFSM5DZQFT7Q>.
|
I mostly agree with that, but I think it is worth thinking about how/if the machinery in pypeit can use the specutils data structures internally (echoing what @rosteen said that this). That doesn't necessarily have to be the case for affiliated package inclusion, but it's something to think about (and historically in some cases has landed affiliated packages in "yellow" instead of "green" status, although I think @olebole can make his own decision there!) Where I think there is more overlap is pypeit and the |
I propose the moment we hear more people are using |
@eteq specreduce isn't an Astropy affiliated package, is it? To me, the situation currently looks as if there are two competing approaches to handle spectra: one is represented by specutils, specreduce and synphot (driven by STScI), and the other is linetools+PypeIt. And both seem to have their potential and their followers. This is -- in my opinion -- not a very fortunate situation, as spectroscopy is one of the basics in Astrophysics, and I would expect from Astropy to evolve into a powerful, coherent solution here, where the astronomer (or science sw engineer) does not need to decide for on which of the packages they base their own tools, but to combine them seamlessly. What do you think, @profxj @rosteen @eteq (and all others) is there a chance (and an interest) to unify the packages in the way that they are part of a common (bigger thought) spectroscopy area in Astropy? |
I think the ideal answer is "maybe" to unification while the And I suspect I'd be more likely to adopt While I agree that spectroscopy is a "basic", I fear the FWIW, here is an ongoing poll in the PypeIt Users Slack: |
i'll chime in to state that i agree 100% with @eteq that i also want to state that unity in defining/handling 1D spectra does not currently exist within the astropy affiliated ecosystem. specifically, |
Hi,
I am currently reviewing Pypelt for the inclusion as an affiliated package. For me, the relation of the package to the specutils package (an Astropy coordinated package) is unclear. There seem to be some duplicated efforts, f.e. the OneSpec class seems to have a similar goal as the Spectrum1D class of specutils.
Is there a specific reason not to use specutils? I could even imagine that some routines (like spectrum coadding) may be better put into specutils.
The text was updated successfully, but these errors were encountered: