diff --git a/script/191121-ActualOvernight.py b/script/191121-ActualOvernight.py new file mode 100644 index 00000000..1ac172bc --- /dev/null +++ b/script/191121-ActualOvernight.py @@ -0,0 +1,33 @@ +import ch.psi.pshell.plot.RangeSelectionPlot.RangeSelection as RangeSelection + +REFERENCE_POSITION = {'X':1.2 ,'Y':0.0, 'Z':110.6, 'Theta':-9.1, 'Tilt':0.9, 'Phi':-90.0} +SAMPLE_POSITION = {'X':0.65 ,'Y':0.0, 'Z':115.0, 'Theta':-9.1, 'Tilt':0.9, 'Phi':-90.0} + +def move_to_position(pdict): + ManipulatorX.move(pdict['X']) + ManipulatorY.move(pdict['Y']) + ManipulatorZ.move(pdict['Z']) + ManipulatorTheta.move(pdict['Theta']) + ManipulatorTilt.move(pdict['Tilt']) + ManipulatorPhi.move(pdict['Phi']) + +#Au600 +move_to_position(REFERENCE_POSITION) +rs = RangeSelection(595.0,597.0) +rs.setVars([1., 0.1, 1, 600.]) #Time, Size, Iteration, photon energy + +run("XPSSpectrum", {"save_scienta_image":True, + "ranges":[rs, ], + "ENDSCAN":False, + "pass_energy":20}) + +#In600 +move_to_position(SAMPLE_POSITION) +rs = RangeSelection(140.0,153.0) +rs.setVars([1., 0.1, 1, 600.]) #Time, Size, Iteration, photon energy + +run("XPSSpectrum", {"save_scienta_image":True, + "ranges":[rs, ], + "ENDSCAN":False, + "pass_energy":20}) +