omega-2theta 扫描数据的导入与绘制
读取日本理学XRD测量的数据
import xrayutilities as xu
数据导入
我们定义一个读取数据的函数,用于读数据。
def get_ras_Omega2theta(location):
d = xu.io.RASFile(location)
scan = d.scans[-1]
tt = scan.data[scan.scan_axis]
Int = scan.data['int']
return tt, Int
然后输入数据位置和名称,调用定义的函数。
location = '.../XXXXXX.ras'
tt, Int = get_ras_Omega2theta(location)
数据绘图
显然就可以直接用matplotlib来画图了。
import matplotlib.pyplot as plt
Last updated