Open mweastwood opened 9 years ago
Perhaps this sort of thing would belong more in a hypothetical higher-level WCS package. I'm not sure what @nolta's vision here is, but I could imagine WCSLIB.jl being limited to a direct wrapper for the C library. A higher level package could use WCSLIB underneath, but present a more Julian interface and add WCS-related functionality missing in WCSLIB.
I don't have a strong opinion though.
@kbarbary Sounds fine by me.
@nolta The higher-level package sounds fine, or adding this method to WCSLIB sounds fine? (or both?)
The former, although both are fine with me. The latter has the minor downside that WCSLIB
would then depend on FITSIO
.
Good point about dependence on FITSIO, which would be a minor annoyance even for a higher-level package. It sounds like Julia may one day have "optional" requirements for some package functionality, which would be nice for this sort of thing.
I would go ahead and create a WCS.jl package, except that I don't currently have any plans to work on it. I'm also worried that it would create confusion for users about which package to use. I'll think about it a bit more.
Maybe it makes sense to rename WCSLIB.jl to WCS.jl and include a higher-level interface? FITSIO.jl supplies a reasonable high-level interface despite nominally being a wrapper of cfitsio.
That would be my preference. Reducing the potential for package confusion is why I added the high-level interface directly to FITSIO.jl rather than creating a separate package.
Something like the following would be a nice convenience function.