PAHdb / pyPAHdb

A Python tool to decompose astronomical PAH emission into contributing PAH subclasses.
https://www.astrochemistry.org/pahdb/
BSD 3-Clause "New" or "Revised" License
7 stars 6 forks source link

Spectrum1D #21

Closed PAHdb closed 5 years ago

PAHdb commented 6 years ago

Have a look at https://specutils.readthedocs.io/en/latest/ for possible using specutils from astropy.

PAHdb commented 5 years ago

The specutils package is quite powerful and already makes use of Units, therefore also addressing #23. Replacing Spectrum with specutils.Spectrum1D has now been implemented.

PAHdb commented 5 years ago

I'm reopening this issue as it turns out that specutils can also readily handle reading/parsing/writing spectral data saved in FITS-files. When #24 is fixed, specutils is likely to parse our example FITS-files directly. In addition, it can use custom loaders to handle other formats (https://specutils.readthedocs.io/en/latest/custom_loading.html).

PAHdb commented 5 years ago

After some checking it turns out that specutils currently doesn't read our FITS-files. Furthermore, while we can write a custom loader, they need to sit in the ~/.specutils-directory; something we don't really want ... closing.