From 5650f7bfc71d741a052b2688fdeca04aa1467728 Mon Sep 17 00:00:00 2001 From: Sebastian Wehling-Benatelli Date: Fri, 5 Dec 2014 10:26:37 +0100 Subject: [PATCH] started to implement read capability for matlab binary phases files (AUTO- and PHASES.mat) --- pylot/core/read/data.py | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/pylot/core/read/data.py b/pylot/core/read/data.py index db6b898c..f677bb1d 100644 --- a/pylot/core/read/data.py +++ b/pylot/core/read/data.py @@ -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: