Closed kelle closed 9 months ago
Based on some useful info from Derek Homeier and Nick Earl, I'm thinking we should use the Spectrum1D object saved in wcs1d-fits
format. This will enable us to have a header and fully defined dispersion axis. https://specutils.readthedocs.io/en/stable/spectrum1d.html#providing-a-fits-style-wcs
I might need some help figuring out how to go from a wavelength array to a fits style WCS.
Also, I'm thinking we'll want a new field for this. I think we should have a link to the "original", author provided spectrum and another link to a spectrum which can be read by specutils
.
new column = original_spectrum
in most cases, original_spectrum
will be null. only put file name if we generate a new spectrum.
GOAL: all files in spectrum
column be readable by specutils
.
When we write new spectra files, we will write them as tabular-fits
format and include meta/header data is the .meta
attribute, using ObsCore keywords for new data and preserving any pre-existing headers in whatever format it was made.
As discussed, this is perhaps a wider astropy
-standard issue?
specutils
and I will work on improving the documentation for writing spectra files. I think it already does everything we need, it's just not documented well.Lots of progress on this in PR #276
This is all in progress.
As we ingest spectra, and work towards having them all load as Spectrum1D objects, maybe we want to write them out as something different than the file we currently have (e.g., an IDL or IRAF generated FITS file). What is that something? A FITS file generated with
Spectrum1d.write
or something different?