-
-
Notifications
You must be signed in to change notification settings - Fork 128
New issue
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
[WIP] Rough implementation of some non-linear loaders #192
Conversation
The current
|
@simontorres - Since the code was copied over from a GPL licenced project, could you please add a note in the source code here that the copyright owner is OK with this (and the fact that it'll be relicenced under BSD-3)? |
@bsipocz thanks for the notice, in fact we had decided to release the Goodman Pipeline under BSD-3 but for some reason GPL stayed in place (my responsibility though). We are preparing a new release under BSD-3. @nmearl I'm thinking if this is worth the effort. Certainly would be nice that specutils can handle as much formats as they are out there, the question is how many people is going to use it. If specutils can write a non-linear solution using the header, not tabular data, I would switch right away and publish my library in a separate repo just in case someone needs it someday. |
I would be in favor of merging this. If we decide later to handle this in a different manner (especially with any future updates to astropy wcs), then it can be refactored but in the meantime it provides useful functionality to read in a common format while returning a |
In that case I can resume working on this. |
@simontorres Can you add a test for this loader? |
I recommend to look back at #14, #17, #18 which did implement a bunch of readers, including non-linear WCS systems. Astropy has evolved since and some of the code in those PRs may not be necessary any longer because the WCS now supports it out of the box. However, the discussion in the PR should also include references for the documented format, and there were test cases. I wrote those readers (and I remember it as a very painful process), but not in removing them again from this package. Please forgive me for not volunteering to help implement the same thing a second time after the community chose to remove my contributions in some later PR (in commit 9d56a31). |
49e2297
to
1d53c13
Compare
…der to discriminate from iraf.
…-1) and fixing assertion in test.
a36acc9
to
8f5511d
Compare
I have entered the overall structure for the loaders of non-linear wavelength solutions using the iraf convention, though I'm affraid I still don't have the definite (official) reference for the standard documentation but I think it has to be this paper by Francisco Valdes
The functions were copied and adapted from the goodman pipeline thefore the docstrings might not apply.
I would also like some feedback for the following topics.
wcs1d-fits
is capable of loading linear-solutions only and not log-linear. If I'm going to implement the loaderiraf
it requires to have log-linear and thereforespecutils/wcs/wcs_wrapper.py
? then less loaders are required and WCS (wrapper) takes care of the rest.