seisplotjs icon indicating copy to clipboard operation
seisplotjs copied to clipboard

miniseed: from Seismogram to bytes

Open miili opened this issue 2 years ago • 1 comments

Hi crotwell,

thanks for this comprehensive library in beautiful TypeScript.

Generating a Seismogram from scratch and exporting it to mseed3 via toMSeed3 is possible.

How about exporting to old miniSeed? What is needed or blocking to implement this functionality?

I can help.

Best wishes,

M

miili avatar Feb 10 '23 10:02 miili

That could be added, I just didn't get around to it. Miniseed2 is a little bit harder because of the fixed record size. In miniseed3, we can output a contiguous seismogram of any size as a single record. In miniseed2, it would have to be split into multiple data records if it was too large. Other than that, it should be just a reverse of the input mapping.

If you would like to have a try at creating a version of the toMSeed3 function for miniseed2, I would be happy to take a pull request.

crotwell avatar Feb 10 '23 14:02 crotwell