Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

demo code in javascript #20

Open
crotwell opened this issue Jul 7, 2017 · 6 comments
Open

demo code in javascript #20

crotwell opened this issue Jul 7, 2017 · 6 comments

Comments

@crotwell
Copy link
Collaborator

crotwell commented Jul 7, 2017

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
Copy link
Collaborator

andres-h commented Jul 7, 2017

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

@crotwell
Copy link
Collaborator Author

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
Copy link
Collaborator

andres-h commented Jul 20, 2017 via email

@crotwell
Copy link
Collaborator Author

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
Copy link
Collaborator Author

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

@crotwell
Copy link
Collaborator Author

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants