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

Pyfits problem with astrometry.net #2

Open
mshemuni opened this issue Jul 26, 2018 · 0 comments
Open

Pyfits problem with astrometry.net #2

mshemuni opened this issue Jul 26, 2018 · 0 comments

Comments

@mshemuni
Copy link

This error did NOT appear in your code. However it may.
In solve-filed method under AstCalc naturally you're using astrometry.net.
There is a bug in pyfits that may cause a problem in your code.
The error looks like:
TypeError: Cannot cast ufunc add output from dtype('float64') to dtype('uint16') with casting rule 'same_kind'
The error did happen to a certain type of fits file. I was able to solve a field for files came from different sources. But in one of my sources the error occurred.
According to this answer you need to use an older version of pyfits or basically use "--no-fits2fits" flag in astrometry.net's solve-field.

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

No branches or pull requests

1 participant