started to implement read capability for matlab binary phases files (AUTO- and PHASES.mat)
This commit is contained in:
parent
e6ac337466
commit
5650f7bfc7
@ -46,12 +46,17 @@ class Data(object):
|
||||
self.wfdata = Stream()
|
||||
if evtdata is not None and isinstance(evtdata, Event):
|
||||
self.evtdata = evtdata
|
||||
elif evtdata is not None:
|
||||
elif evtdata is not None and not evtdata.endswith('.mat'):
|
||||
cat = readEvents(evtdata)
|
||||
self.evtdata = cat[0]
|
||||
elif evtdata is not None:
|
||||
cat = readMatPhases(evtdata)
|
||||
else: # create an empty Event object
|
||||
self.evtdata = Event()
|
||||
|
||||
def readMatPhases(self, fname):
|
||||
pass
|
||||
|
||||
def exportEvent(self, fnout=None, evtformat='QUAKEML'):
|
||||
|
||||
if fnout is None:
|
||||
|
Loading…
Reference in New Issue
Block a user