data reduction
set weight equal
average /nocheck offset
plot
modify frequency rest-f
set unit v f
set mode x x1 x2
plot
method gauss
lines 1 "0 0.1 0 30 0 2"
minimize /nocheck baseline
visualize /pen 1
---------------------------------------------------
fitting a line on all pixels
file in filename
set match 5
find /offset 0 0
file out filename2 single
set unit v f
set mode x 10 40
method gauss
for i 1 to found
get next
modify frequency rest-f
lines 1 "0 0.1 0 30 0 2"
minimize /nocheck baseline
write
next i
生成一个文件filename2,该文件的所有光谱已经经过了fitting
经过基线拟合后的光谱可以生成data cube
file in filename2
find
set weight equal
table filename2 new
xy_map filename2 /nogrid
以上是将光谱的强度位置宽度写入lmv文件
浙公网安备 33010602011771号