-
-
Notifications
You must be signed in to change notification settings - Fork 128
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
test_read_fits_spec.py, the first two test cases failing #68
Comments
@wkerzendorf @nhmc this issue needs to be resolved before #69 can be merged. Is the problem with the IRAF data files, or the WCS functions? |
I believe the problem is with the WCS functions - they assign the first pixel a value of zero, (instead of one, which is what IRAF does). There's a keyword to the WCS method |
It looks like the @wkerzendorf, do you think this is the best approach? |
What @nhmc says, is very likely the cause of the problem. The indexing in IRAF starts with 1 (maybe because FORTRAN uses this idea). I think, however, that we should stay with 0-indexing throughout |
This issue will be fixed with #72 |
https://github.com/astropy/specutils/blob/master/specutils/io/tests/test_read_fits_spec.py#L20
iraf wave array:
[4344.5500522758402, 4344.59028429296, 4344.6305137707004, 4344.6707407088797, 4344.7109651072797]
fits dispersion array:
[4344.5098177195632, 4344.5500522758412, 4344.5902842929554, 4344.6305137707031, 4344.6707407088788]
The (n+1)th element in fits dispersion array is the same as the nth element in the iraf wave array.
@wkerzendorf @nhmc
The text was updated successfully, but these errors were encountered: