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

Use exact domain limits for polynomial wavelength solutions in _read_non_linear_iraf_wcs #1199

Merged
merged 3 commits into from
Dec 9, 2024

Conversation

dhomeier
Copy link
Contributor

@dhomeier dhomeier commented Dec 3, 2024

Fixes #1196; as described in #1196 (comment) the domain limits pmin, pmax for constructing the Chebychev or Legendre series were truncated to int instead of allowing floating-point values as used and written by IRAF.
This will change the spectral_axis read in for such spectra (see tests for comparison to the old behaviour), but labelling as a bug fix as IRAF evidently reproduces this model.

@dhomeier dhomeier force-pushed the iraf-legendre-domains branch from b5ba865 to fc395f7 Compare December 3, 2024 11:16
@dhomeier
Copy link
Contributor Author

dhomeier commented Dec 3, 2024

failing tests due to #1197

Copy link
Contributor

@rosteen rosteen left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good to me, thanks!

@rosteen rosteen merged commit 9ea3ad1 into astropy:main Dec 9, 2024
8 of 11 checks passed
@dhomeier dhomeier deleted the iraf-legendre-domains branch December 12, 2024 12:29
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

SpectrumCollection.read(format='iraf') not reading IRAF multispec non-linear WCS correctly?
2 participants