當前位置: 首頁>>代碼示例>>Python>>正文


Python Stream.label方法代碼示例

本文整理匯總了Python中obspy.core.stream.Stream.label方法的典型用法代碼示例。如果您正苦於以下問題:Python Stream.label方法的具體用法?Python Stream.label怎麽用?Python Stream.label使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在obspy.core.stream.Stream的用法示例。


在下文中一共展示了Stream.label方法的1個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的Python代碼示例。

示例1: _plotResults

# 需要導入模塊: from obspy.core.stream import Stream [as 別名]
# 或者: from obspy.core.stream.Stream import label [as 別名]
 def _plotResults(self):
     """
     Plots original, filtered original and real time processed traces into
     a single plot.
     """
     # plot only if test is started manually
     if __name__ != '__main__':
         return
     # create empty stream
     st = Stream()
     st.label = self._testMethodName
     # original trace
     self.orig_trace.label = "Original Trace"
     st += self.orig_trace
     # use header information of original trace with filtered trace data
     tr = self.orig_trace.copy()
     tr.data = self.filt_trace_data
     tr.label = "Filtered original Trace"
     st += tr
     # real processed chunks
     for i, tr in enumerate(self.rt_appended_traces):
         tr.label = "RT Chunk %02d" % (i + 1)
         st += tr
     # real time processed trace
     self.rt_trace.label = "RT Trace"
     st += self.rt_trace
     st.plot(automerge=False, color='blue', equal_scale=False)
開發者ID:gthompson,項目名稱:obspy,代碼行數:29,代碼來源:test_signal.py


注:本文中的obspy.core.stream.Stream.label方法示例由純淨天空整理自Github/MSDocs等開源代碼及文檔管理平台,相關代碼片段篩選自各路編程大神貢獻的開源項目,源碼版權歸原作者所有,傳播和使用請參考對應項目的License;未經允許,請勿轉載。