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

Add FDSN miniSEED 3 format #709

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

anthonydgj
Copy link

Adds support for miniSEED 3, which is a data format defined by the International Federation of Digital Seismograph Networks (FDSN) for data collection, archiving and exchange of seismological data.

Testing

Reference miniSEED 3 files used for testing are available in the reference-data directory of the FDSN miniSEED3 repository on GitHub. When a miniSEED 3 file is downloaded, the contents can be printed out in plain text using the mseed3-text tool from miniSEED3-Utils and compared with the deserialization output using Kaitai Struct.

For example, to output the reference file contents of reference-sinusoid-float64.mseed3:

./mseed3-text -d ./reference-sinusoid-float64.mseed3

Which outputs:

FDSN:XX_TEST__H_H_Z, version 1, 4059 bytes (format: 3)
             start time: 2022-06-05T20:32:38.123456789Z (156)
      number of samples: 500
       sample rate (Hz): 100
                  flags: [00000000] 8 bits
                    CRC: 0x5A1CB387
    extra header length: 0 bytes
    data payload length: 4000 bytes
       payload encoding: 64-bit float (IEEE double) (val: 5)
Data:
         0  6.109208107  10.24682617  10.60995674  6.764728069  -0.07570400089  
-7.409461021  -12.34620762  -12.73143005  -8.062957764  0.1820600033  8.985442162  
14.87506676  15.27641964  9.609195709  -0.3283700049  -10.8954277  -17.92113113  
-18.32933617  -11.45057583  0.5264480114  13.20997334  21.59002304  21.99138451  
...

The output can be compared with kaitai_struct_visualizer:
image

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

Successfully merging this pull request may close these issues.

1 participant