Skip to content

swiss-seismological-service/seedlink_file_streamer

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 
 
 

Repository files navigation

seedlink_file_streamer

Stream file data (e.g. segy, miniseed) to a seedlink server using the raw plugin.

Certainly streaming files is not a great design choice, it would be better to use the raw plugin to stream the data as it is read from the device. However sometimes that is not possible and we developed this program for a particular project where the data was available as seg2 files.

This program monitors a directory for new files and when they become available they are streamed to a seedink server. A file can be anything that obspy.read can accept (e.g. segy, miniseed, etc). obspy.read convert the file to a Stream containing multiple Traces. Each Trace is mapped to a raw_server channel. Read the example conf.xml to understand more about the program behaviour.

Run like this:

$ python3 streamer.py

Usage:
   streamer.py config.yaml [starting-file]

starting-file (optional):
  specify from which file to start reading
  and streaming data (e.g. scan_dir/yyyy_mm_dd/file.seg2)

  Special values are:
   "oldest" : start from the oldest file (the first)
   "latest" : skip all existing files and start from the latest (excluded)

  starting-file is optional and the default value is "latest"

About

Stream file data to a seedlink server using the raw plugin

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages