本文整理匯總了Python中ramanTools.RamanSpectrum.append方法的典型用法代碼示例。如果您正苦於以下問題:Python RamanSpectrum.append方法的具體用法?Python RamanSpectrum.append怎麽用?Python RamanSpectrum.append使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在類ramanTools.RamanSpectrum
的用法示例。
在下文中一共展示了RamanSpectrum.append方法的2個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的Python代碼示例。
示例1: May14
# 需要導入模塊: from ramanTools import RamanSpectrum [as 別名]
# 或者: from ramanTools.RamanSpectrum import append [as 別名]
def May14():
clf()
s = RamanSpectrum("/home/chris/Documents/DataWeiss/150514/150514_12.txt")
a = RamanSpectrum("/home/chris/Documents/DataWeiss/150514/150514_13.txt")
b = RamanSpectrum("/home/chris/Documents/DataWeiss/150514/150514_14.txt")
c = add_RamanSpectra(a, b)
# c = add_RamanSpectra(s,c)
d = RamanSpectrum("/home/chris/Documents/DataWeiss/150514/150514_15.txt")
v = RamanSpectrum("/home/chris/Documents/DataWeiss/150514/150514_16.txt")
z = 0.15
e = subtract_RamanSpectra(c, d * z)
# e.smooth()
l = subtract_RamanSpectra(c, v * z)
# l.smooth()
e = RamanSpectrum(e.append(l))
e = autobaseline(e, (180, 277), order=4)
e = autobaseline(e, (277, 1700), order=4, join="start")
# j = subtract_RamanSpectra(c,RamanSpectrum(pandas.Series(f[2],f[1])))
e.plot()
# d.plot()
# v.plot()
# CdMeOTPRef.index = array(CdMeOTPRef.index)-5
(CdMeOTPRef / 120).plot()
(MeOTPRef / 240).plot()
return 0
示例2: Feb10
# 需要導入模塊: from ramanTools import RamanSpectrum [as 別名]
# 或者: from ramanTools.RamanSpectrum import append [as 別名]
def Feb10():
figure()
a = RamanSpectrum('/home/chris/Documents/DataWeiss/150210/43_ long scan.SPE')
adding = pandas.Series([NaN]*len(arange(300,1500,0.5)),arange(300,1500,0.5))
d=a.append(adding)
d = d.interpolate(method='index')
d = d[arange(300,1500,0.5)]
e = FourierFilter(d,width = 1100)
e.plot()
b = RamanSpectrum('/home/chris/Documents/DataWeiss/150210/44.SPE')
c=b+a
a.autobaseline((300,1600),order = 4)
#a = smooth(a,window_len=9)
b.autobaseline((300,1600),order = 4)
#b=smooth(b,window_len=9)
#a.plot()
#b.plot()
c= autobaseline(c,(300,1600),order = 4)
c = smooth(c, window_len=9)
#c.plot()
legend(['a','d','e'])
return d