-
Notifications
You must be signed in to change notification settings - Fork 57
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
fitsio can't write large arrays and doesn't raise an error #199
Comments
@londumas can you try without the |
@ngbusca, indeed changing this line |
I think this problem is occurring in |
@esheldon, thank you for the answer. I have no idea on how to write an example in C for this bug. Is there anyway you or someone else could do it? |
Was the cfitsio compiled with large file support? https://heasarc.gsfc.nasa.gov/docs/software/fitsio/c/f_user/node13.html |
I think this is now the default https://github.com/esheldon/fitsio/blob/master/cfitsio3430/configure#L4523 but maybe this is broken for gzip |
certainly I routinely read and write files larger than 2.1G |
Where do we stand on this issue? Does it work for the latest version (1.1.3), for which we have updated cfitsio version to 3.49? |
@esheldon, I still have no ways to try on the latest version, since I can not pip install it (issue #298 (comment)). But I can say, that as 1.0.5, it is still there |
Have you tried using conda to install? |
@esheldon, no I have not. If you give me the set of commands, I be happy to try. |
If you have an anaconda install it is easy
If conda-forge isn't in your channels, do this first
That will add conda forge to your ~/.condarc. Note, I usually make sure that conda-forge is first in the list so it gets packages from there first, e.g. make sure that file looks like this
but that might be a matter of taste |
Just tested on fitsio=1.1.3, with conda, and still an issue. |
I have the same issue with |
I think this is an issue with cfitsio |
Is there a flag for building that we didn't set that allows it to run on larger arrays? |
fitsio works fine on large arrays, the issue seems to be specifically for .gz files |
Running on
fitsio.__version__ = 0.9.11
and onsp.__version__ = 1.2.0
, with the minimalist example bellow. This code shows that fitsio can't write large arrays but does not raise any error.In the case of
main(coef=2)
, where we save a large array, the output fits file has 6 HDUs instead of 11, and has a corrupted last HDU:OSError: FITSIO status = 107: tried to move past end of file
.Do you have an idea of why fitsio can't write the file? Is it too large?
Do you have an idea why fitsio is not raising any writing error?
returns
The text was updated successfully, but these errors were encountered: