Open crotwell opened 7 years ago
Good to know that there is MS parser in Javascript ;)
Updated for IRIS20170718 draft: http://www.seis.sc.edu/~crotwell/mseed3/IRIS20170718/testmseed3.html
I left the extras as json as have not had time to play with cbor or other options. CRC is not implemented, but mostly working otherwise.
https://github.com/iris-edu/mseed3-evaluation/tree/master/Crotwell/IRIS20170718/javascript
I guess it's a coincidence that you use the shortest extra headers (TQ and QI) in your example ;)
http://geofon-open2.gfz-potsdam.de/mseed3-evaluation/chunks-protobuf/testmseed3.html
Coincidence or laziness...
It would be nice to have some test data that had some of the more unusual blockettes and flags for testing and comparison. But I have not yet implemented most of that stuff even in the mseed2 case.
Did some more testing with 0718 and javascript, now round trips
MS2 -> MS3 -> ArrayBuffer -> MS3
which helped to catch a few bugs.
Just FYI, I updated my old strawman java code to reflect the new 20170718 draft here: https://github.com/crotwell/seisFile/tree/miniseed3/src/main/java/edu/sc/seis/seisFile/mseed3
This is kind of cute I think: http://www.seis.sc.edu/~crotwell/mseed3/IRIS20170622/testmseed3.html
Basic exercise of converting mseed2 to mseed3(iris0622) in javascript. Not all details there (all extras, crc), but more or less works. Already like it more than mseed2. I wanted it to be able to download the mseed3 as a file, but wasn't able to get it working. Maybe later.
code is here: https://github.com/iris-edu/mseed3-evaluation/tree/master/Crotwell/IRIS20170622/javascript
Comments welcome, still rough edges I know. Will try to update as we modify the spec.