fabio
fabio copied to clipboard
cannot read marccd image
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.
Can you share the culprit image ? The error message suggest the file is too short (truncated)