Skip to content
Snippets Groups Projects
Commit c292405f authored by Lloyd Carothers's avatar Lloyd Carothers
Browse files

add ms_sum creates sync like output without gap information

parent e1b682bc
No related branches found
No related tags found
No related merge requests found
#!/usr/bin/env python3
# -*- coding: utf-8 -*-
'''
Lloyd Carothers
ms_sum
prints a sync like output ignoring all gaps
'''
import os, sys
import obspy
from obspy.io.mseed.core import _is_mseed
# debug testing
print(__file__)
print(sys.path)
from nexus import InventoryIm
if __name__ == '__main__':
inv = InventoryIm()
streams = []
for path in sys.argv[1:]:
if os.path.isfile(path) and _is_mseed(path):
st = obspy.read(path, headonly=True)
print(st)
elif os.path.isdir(path):
for root, dirs, files in os.walk(path):
for file in files:
path = os.path.join(root, file)
if _is_mseed(path):
st = obspy.read(path, headonly=True)
print(st)
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment