Add a functional `write()` method to SpectrumList
- Dominant language
- Python
- Stars
- 204
- Forks
- 134
- Avg merge
- 12h 55m
- Merged PRs (30d)
- 1
Description
The desired output of `SpectrumList.write()` would be a multiextension FITS file, where each extension contains the information from a single Spectrum1D object. The primary HDU could contain information about the number of included spectra, and possibly any common FITS keywords among the constituent Spectrum1D objects' metadata.
-----
The current error message when one attempts to use the `write()` method is:
```
astropy.io.registry.base.IORegistryError: No writer defined for format 'tabular-fits' and class 'SpectrumList'.
The available formats are:
Format Read Write Auto-identify
------ ---- ----- -------------
```
Contributor guide
Research direction
Start by tracing the SpectrumList.write() entry point and the tabular-fits registry error, then inspect how Spectrum1D objects expose their information for I/O. Define the primary-HDU metadata and per-spectrum extension contents from the issue, and verify that writing a SpectrumList produces a readable multiextension FITS file.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- python
- Domain
- data
- Issue type
- Feature
- Difficulty
- 5/5
- Estimated time
- Over a week
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100