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
Invalid bitpix value from ffgiet causing panic #35
Comments
Hi @saethlin, it looks like a value of 20 is |
So after playing around with this, there are two ways to solve the problem:
The first solution changes from In addition, another Based on a very unscientific test, searching @saethlin do you have any insights? |
Mostly I'm bothered that cfitsio provides two ways to do the same task, but in general I lean towards |
I agree, the inconsistency in |
@saethlin how do you feel about the changes I've made? Now |
@saethlin have you had a chance to test the changes I've made? |
My tests show this is not an issue any more, and your example file reads correctly. I'm closing this issue now. Thanks for your help and guidance! |
rust-fitsio uses
ffgiet
to determine the dtype of an image HDU. I have an image for which ffgiet returns 20, which runs me into anunreachable!()
. The cfitsio docs suggest this shouldn't be possible. The header starts off like this:Here's a link to download the full file
As a workaround for this one file, I can use
ffgidt
. Is this a bug in cfitsio?The text was updated successfully, but these errors were encountered: