本文整理匯總了Python中ramanTools.RamanSpectrum.values[:]方法的典型用法代碼示例。如果您正苦於以下問題:Python RamanSpectrum.values[:]方法的具體用法?Python RamanSpectrum.values[:]怎麽用?Python RamanSpectrum.values[:]使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在類ramanTools.RamanSpectrum
的用法示例。
在下文中一共展示了RamanSpectrum.values[:]方法的2個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的Python代碼示例。
示例1: CdSvsCdSe
# 需要導入模塊: from ramanTools import RamanSpectrum [as 別名]
# 或者: from ramanTools.RamanSpectrum import values[:] [as 別名]
def CdSvsCdSe():
r = RamanSpectrum('/home/chris/Documents/DataWeiss/150521/150521_05.txt')
r = removespikes(r)
r.autobaseline((119,286), order = 0)
r.autobaseline((286,1151), order = 4, join = 'start')
r.autobaseline((1151,1560), order = 3, join = 'start')
r.smooth()
r.plot(label = 'CdSe')
r = RamanSpectrum('/home/chris/Documents/DataWeiss/150601/150601_07.txt')
c = RamanSpectrum('/home/chris/Documents/DataWeiss/150601/150601_08.txt')
r = add_RamanSpectra(r,c)
r = SPIDcorrect633(r)
r = removespikes(r)
r.autobaseline((145,1148), order = 3)
r.autobaseline((1148,1253), order = 1,join='start')
r.autobaseline((1253,2000), order = 3,join='start')
r.autobaseline((2000,3600), order = 3,join='start')
r.values[:] = r.values[:]*5
#r.smooth()
r.plot(label='CdS')
legend(['CdSe','CdS'])
return 0
示例2: June1
# 需要導入模塊: from ramanTools import RamanSpectrum [as 別名]
# 或者: from ramanTools.RamanSpectrum import values[:] [as 別名]
def June1():
clf()
subplot(122)
r = RamanSpectrum('/home/chris/Documents/DataWeiss/150601/150601_07.txt')
c = RamanSpectrum('/home/chris/Documents/DataWeiss/150601/150601_08.txt')
r = add_RamanSpectra(r,c)
r = SPIDcorrect633(r)
r = removespikes(r)
r.autobaseline((145,1148), order = 3)
r.autobaseline((1148,1253), order = 1,join='start')
r.autobaseline((1253,2000), order = 3,join='start')
r.autobaseline((2000,3600), order = 3,join='start')
r.values[:] = r.values[:]*5
#r.smooth()
r.plot()
r= RamanSpectrum('/home/chris/Documents/DataWeiss/150601/150601_09.txt')
c = RamanSpectrum('/home/chris/Documents/DataWeiss/150601/150601_10.txt')
r = add_RamanSpectra(r,c)
r = SPIDcorrect633(r)
#r = removespikes(r)
r.autobaseline((145,1148), order = 2)
r.autobaseline((1148,1253), order = 1,join='start')
r.autobaseline((1253,1700), order = 3,join='start')
r.autobaseline((1700,3600), order = 3,join='start')
r.values[:] = r.values[:]*5
#r.smooth()
r.plot()
legend(['oleate', 'exchanged'])
subplot(121)
r = RamanSpectrum('/home/chris/Documents/DataWeiss/150529/150529_05.txt')
r.autobaseline((147,2000), order =3)
r.autobaseline((147,356), order = 1)
r.autobaseline((356,389), order = 1, join = 'start')
r.autobaseline((389,892), order = 1, join = 'start')
r.autobaseline((892,923), order = 1, join = 'start')
r.autobaseline((923,1185), order = 1, join = 'start')
r.autobaseline((1185,1211), order = 1, join = 'start')
r.autobaseline((1211,1679), order = 2, join = 'start')
r.autobaseline((1679,1702), order = 2, join = 'start')
r.autobaseline((1702,1900), order = 3, join = 'start')
r.smooth()
r.plot()
r = RamanSpectrum('/home/chris/Documents/DataWeiss/150527/150527_06.txt')
r = SPIDcorrect633(r)
r.autobaseline((98,765), order = 4)
r.autobaseline((765,839), order = 2, join = 'start')
r.autobaseline((839,1456), order = 4, join = 'start')
r.autobaseline((1456,1470), order = 2, join = 'start')
r.autobaseline((1470,1900), order = 4, join = 'start')
r.smooth()
r.plot()
legend(['exchanged', 'oleate'])
return 0