Open tclements opened 3 years ago
I'll have to check the file manually to see what's going on with sample rate. If field 11 of the data header is 0.0, and field 10 isn't, I think it's not valid SEED. If field 10 is 0.0, there's supposed to be special handling. I've never coded that case because I've never encountered an example that mixed opaque data with normal data on the same channel. [Per the SEED manual, field 10 = 0.0 implies that the data record contains opaque data, i.e., Blockette 2000.]
It's funny that you should mention it as a one in a million occurrence, in fact: opaque data is so rare that I've only seen it in one test file, which I had to ask Chad Trabant at IRIS to find. Even he couldn't find an example immediately, and the test file he found contained only opaque data for the channel -- so this file is the first case I've heard of where a single channel mixes time-series and opaque data. I actually wonder how the IRIS seed reader handles it...
With SeisIO v1.2.0
I found an mseed file with 113 different unique sampling rates.
When trying to read the file, I get a
BoundsError
:Checking this out with obspy shows that there are some data gaps with sampling rate == 0 Hz:
I only found this once while reading a few million files, so this is not a pressing error at all but the file might be good to include in the test set. mseed file attached here: mseed.zip