Script execution

This commit is contained in:
gac-x03da
2021-01-29 00:52:15 +01:00
parent 8a641052a9
commit 5f789abc08

View File

@@ -0,0 +1,33 @@
import ch.psi.pshell.plot.RangeSelectionPlot.RangeSelection as RangeSelection
ranges = []
# Ag 3d 5/2
rs = RangeSelection(60.5, 64.5)
rs.setVars([0.25, 0.025, 5, 435.]) #Time, Size, Iteration, photon energy
ranges.append(rs)
# dummy
rs = RangeSelection(60.5, 60.5)
rs.setVars([0.25, 0.025, 1, 435.]) #Time, Size, Iteration, photon energy
ranges.append(rs)
# Ge 3d
rs = RangeSelection(399.0, 403.5)
rs.setVars([0.25, 0.025, 15, 435.]) #Time, Size, Iteration, photon energy
ranges.append(rs)
# FE
rs = RangeSelection(429.7, 431.5)
rs.setVars([0.25, 0.025, 20, 435.]) #Time, Size, Iteration, photon energy
ranges.append(rs)
# VB
#rs = RangeSelection(123.0, 134.5)
#rs.setVars([0.25, 0.05, 10, 137.]) #Time, Size, Iteration, photon energy
#ranges.append(rs)
# caution: do not insert multiple run commands in the same script!
# earlier data is overwritten!
run("XPSSpectrum", {"save_scienta_image":True,
"ranges": ranges,
"ENDSCAN": True,
"pass_energy":20})