iris-edu / mseed3-evaluation

A repository for technical evaluation and implementation of potential next generation miniSEED formats
3 stars 1 forks source link

demo code in javascript #20

Open crotwell opened 7 years ago

crotwell commented 7 years ago

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.

andres-h commented 7 years ago

Good to know that there is MS parser in Javascript ;)

crotwell commented 6 years ago

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

andres-h commented 6 years ago

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

crotwell commented 6 years ago

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.

crotwell commented 6 years ago

Did some more testing with 0718 and javascript, now round trips MS2 -> MS3 -> ArrayBuffer -> MS3 which helped to catch a few bugs.

crotwell commented 6 years ago

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