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

cannot read marccd image #548

Open
DHekstra opened this issue Nov 3, 2023 · 1 comment
Open

cannot read marccd image #548

DHekstra opened this issue Nov 3, 2023 · 1 comment
Labels

Comments

@DHekstra
Copy link

DHekstra commented Nov 3, 2023

When trying to read a MarCCD image from an old MarCCD detector (165, I believe), I encounter the following error:

WARNING:fabio.tifimage:Unable to read /n/hekstra_lab/projects/laue-dials-tests/hemoglobin_TR/data/new_imgs/HbI5a_off_019.mccd with TiffIO due to cannot reshape array of size 4194304 into shape (3840), trying PIL
ERROR:fabio.tifimage:Error in opening /n/hekstra_lab/projects/laue-dials-tests/hemoglobin_TR/data/new_imgs/HbI5a_off_019.mccd with PIL: image file is truncated (2048 bytes not processed)
ERROR:fabio.tifimage:Error in opening /n/hekstra_lab/projects/laue-dials-tests/hemoglobin_TR/data/new_imgs/HbI5a_off_019.mccd: no tiff reader managed to read the file.

The image has 4194304 = 2048x2048 pixels. I am not quite sure where 3840 comes from. Could I specify how to reshape the array?
I am happy to provide a sample image.

@kif
Copy link
Member

kif commented Nov 6, 2023

Can you share the culprit image ?
The error message suggest the file is too short (truncated)

@kif kif added the question label Mar 15, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants