-
Notifications
You must be signed in to change notification settings - Fork 65
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
Support GALPROP spectral cubes? #110
Comments
@cdeil - the I/O framework in spectralcube will transition to using the astropy I/O framework eventually, which will make it easy for you to specify your own readers/writers. I guess at the moment I'm not sure how we can store the table of energies in the WCS object (in theory wcslib supports tabulated WCS, but I'm not sure how it's used). How do you envisage a reader for this format working? Can you currently write a reader function that returns a SpectralCube, or is the way the data is stored in SpectralCube not suited to this file format? |
I just started looking at Since I need to work with these gamma-ray spectral cubes now, what I'll do as a temporary solution is sub-class or wrap |
I've implemented a first version of the I did not manage to re-use code from If you have any comments in the (probably pretty bad) Related feature request: astropy/astropy#2362 |
In gamma-ray astronomy spectral cubes are used where the spectral axis is
log(energy)
, but aBINTABLE
extension is used to define the spectral bins ... I think the spectral WCS info from the cube FITS extension is never used.E.g. the Fermi LAT and GALPROP are using this format.
Here's an example:
Is it possible to support this format in
SpectralCube
? Or should I subclassSpectralCube
in gammapy?cc @ellisowen @adonath
The text was updated successfully, but these errors were encountered: