Impossible Steim2

Hi to everyone and thanks in advance,

I have several mseed files that gives me these kind of errors:

32_MAD04_00_EHZ_D: Impossible Steim2 dnib=00 for nibble=10
32_MAD04_00_EHZ_D: Impossible Steim2 dnib=00 for nibble=10
32_MAD04_00_EHZ_D: Impossible Steim2 dnib=00 for nibble=10

I’m looking for a solution, but can’t find any. I don’t mind on deleting faulty blocks, but I don’t seem able to do it. Can anybody help me?

Thanks.

You can read miniseed record by record to find the problematic ones, something like…

with open("..", "rb") as fh:
    record = fh.read(512)  # depends on your data, most likely 512, 1024 or 2049
    bio = io.BytesIO(record)
    st = read(bio, "MSEED")
    ... # do some checks here or stop on warning messages etc

Thanks for your help! I have been finally able to delete the incorrect segments.

Greetings.

1 Like