本文整理汇总了Python中gwpy.timeseries.TimeSeries.taper方法的典型用法代码示例。如果您正苦于以下问题:Python TimeSeries.taper方法的具体用法?Python TimeSeries.taper怎么用?Python TimeSeries.taper使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类gwpy.timeseries.TimeSeries
的用法示例。
在下文中一共展示了TimeSeries.taper方法的1个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Python代码示例。
示例1: TimeSeries
# 需要导入模块: from gwpy.timeseries import TimeSeries [as 别名]
# 或者: from gwpy.timeseries.TimeSeries import taper [as 别名]
# To see the effect of the Planck-taper window, we can taper a
# sinusoidal `TimeSeries` at both ends:
import numpy
from gwpy.timeseries import TimeSeries
t = numpy.linspace(0, 1, 2048)
series = TimeSeries(numpy.cos(10.5*numpy.pi*t), times=t)
tapered = series.taper()
# We can plot it to see how the ends now vary smoothly from 0 to 1:
from gwpy.plot import Plot
plot = Plot(series, tapered, separate=True, sharex=True)
plot.show()