astropy / astropy/specutils

Specutils doesn't open (gildas) CLASS-generated FITS spectra

Open
#160 2 comments 0 reactions 0 assignees View on GitHub
io
Dominant language
Python
Stars
204
Forks
134
Avg merge
12h 55m
Merged PRs (30d)
1

Description

Hi all,
I'm working with millimeter-radio spectra from the IRAM 30m telescope, and my FITS spectra were generated by CLASS (part of the gildas package). When I try to load a CLASS-exported FITS file into specutils, it chokes on a SingularMatrixError. ([Further details in this gist](https://gist.github.com/tomr-stargazer/7a4efed0f8a1f5d410066ca87515f692), including the FITS header in question.)

The spectrum is attached (and zip'd):
[spectrum.zip](https://github.com/astropy/specutils/files/1324303/spectrum.zip)

@keflavich recommended I file an issue here so here it is. (:

Contributor guide

Open the contributing guide

Research direction

Reproduce the failure with the attached spectrum.zip and review the linked gist, especially the CLASS-generated FITS header. Trace where specutils raises SingularMatrixError while loading the spectrum. Done means the attached CLASS-generated FITS spectrum opens successfully in specutils.

Written by the indexing model from the issue text.

Assessment

Tech stack
python
Domain
data
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.