27 lines
730 B
Python
27 lines
730 B
Python
import ch.psi.pshell.plot.RangeSelectionPlot.RangeSelection as RangeSelection
|
|
|
|
# caution: do not insert multiple runs in the same script!
|
|
# earlier runs are overwritten!
|
|
|
|
ranges = []
|
|
|
|
# overview spec:
|
|
#rs = RangeSelection(100.0,800.0)
|
|
#rs.setVars([0.3, 0.2, 1.0, 800.0]) #Time, Size, Iteration, photon energy
|
|
#ranges.append(rs)
|
|
|
|
ManipulatorY.write(1.6991)
|
|
ManipulatorZ.write(117.32)
|
|
|
|
# Au 4f
|
|
rs = RangeSelection(105.0,114.0) # before 105 to 115 ---- -1eV
|
|
rs.setVars([0.4, 0.05, 3, 200., "Au 4f"]) #Time, Size, Iteration, photon energy
|
|
ranges.append(rs)
|
|
|
|
|
|
|
|
run("XPSSpectrum", {"save_scienta_image":False,
|
|
"ranges":ranges,
|
|
"ENDSCAN":True,
|
|
"pass_energy":50})
|