Skip to content
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

Unclear SpectralCoord warning coming from fitswcs #11309

Open
dstansby opened this issue Feb 8, 2021 · 2 comments
Open

Unclear SpectralCoord warning coming from fitswcs #11309

dstansby opened this issue Feb 8, 2021 · 2 comments

Comments

@dstansby
Copy link
Contributor

dstansby commented Feb 8, 2021

I'm processing some FITS files that have spectral data (via. NDCube), and currently seeing the following warning a lot:

WARNING: target cannot be converted to ICRS, so will not be set on SpectralCoord [astropy.wcs.wcsapi.fitswcs]

I'm not finding this warning very helpful, for a couple of reasons:

  • I don't understand why it's being raised. In particular, what is "target" and "SpectralCoord", and how are they related to world_axis_object_components? (which is the method that this warning is raised in)
  • I don't understand what I can do to prevent the warning from being raised. ie., what do I need to fix in my data?

It would be good to improve the warning message to address these two points.

@pllim
Copy link
Member

pllim commented Feb 8, 2021

cc @astrofrog

@Cadair
Copy link
Member

Cadair commented Feb 9, 2021

👍 this warning is very annoying.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants