struct.error while reading mseed files

Hi Ayodeji,

In general this error means that unpack() has not enough bytes to… unpack.

I got once the same error and the file was just empty :slight_smile:

Cheers,
Claudio

Thanks a lot Lion and Claudio. I later found out that the files are either empty or corrupt. My code processes other files well and throws this error on others. Besides, running mseedtosac on the same files gives the error 'no SEEDFILE discovered’

I’d simply add an exception to handle the problem.

Cheers,

Ayodeji