fabio icon indicating copy to clipboard operation
fabio copied to clipboard

cannot read marccd image

Open DHekstra opened this issue 1 year ago • 1 comments

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.

DHekstra avatar Nov 03 '23 20:11 DHekstra

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

kif avatar Nov 06 '23 13:11 kif