Merge mseed files

Hello,

I have to create one miniSEED file from data that may have gaps in it. The best way I've found to achieve this is to use obspy to create one MiniSEED files for each part of continuous data, and then merge them to have one single file.

Therefore I need a method to merge MiniSEED files. Additional treatment is needed to rewrite the sequence number of the records, since each input file starts over at 1.

I haven't seen anything about it in obspy (maybe I've missed it?) but I can code it. My question is: would it have a sense to add it to obspy? If no, I'll just create it for myself. Otherwise, I'll make a pull request to obspy. In that case, I will add support for multi-traces MiniSEED files (probably sorting them by trace and by date).

Cheers,

SF
Nevermind, this test is only valid for Python 2.x. An invalid type for ``sequence_number`` would raise a TypeError in Python 3.x, and a ValueError in Python 2.x. It's better to catch both ValueError and TypeError and then raise a ValueError if the value is somehow wrong (as TypeError for a value > 999999 would have no sense).

Reverting the syntaxic sugar then