started to implement read capability for matlab binary phases files (AUTO- and PHASES.mat)

This commit is contained in:
Sebastian Wehling-Benatelli 2014-12-05 10:26:37 +01:00
parent e6ac337466
commit 5650f7bfc7

View File

@ -46,12 +46,17 @@ class Data(object):
self.wfdata = Stream() self.wfdata = Stream()
if evtdata is not None and isinstance(evtdata, Event): if evtdata is not None and isinstance(evtdata, Event):
self.evtdata = evtdata self.evtdata = evtdata
elif evtdata is not None: elif evtdata is not None and not evtdata.endswith('.mat'):
cat = readEvents(evtdata) cat = readEvents(evtdata)
self.evtdata = cat[0] self.evtdata = cat[0]
elif evtdata is not None:
cat = readMatPhases(evtdata)
else: # create an empty Event object else: # create an empty Event object
self.evtdata = Event() self.evtdata = Event()
def readMatPhases(self, fname):
pass
def exportEvent(self, fnout=None, evtformat='QUAKEML'): def exportEvent(self, fnout=None, evtformat='QUAKEML'):
if fnout is None: if fnout is None: