|
|
# Safe state
|
|
|
```python
|
|
|
Close_CBranch() # does the following: EA.off(); Close_CValve(); Close_CShutter()
|
|
|
```
|
|
|
|
|
|
|
|
|
# Beamline Controls
|
|
|
```python
|
|
|
Get_All() # prints current beamline status
|
|
|
energy(932) #sets the energy (mono,undulator and slits)
|
|
|
polarization('V') # Turns the ID off and then sets the polarization:
|
|
|
# 'RCP', 'LCP', 'H', 'V'
|
|
|
# **need to set energy after a mode change!**
|
|
|
slit(100) #changes the slits (flux and resolution 0-300)
|
|
|
resolution() #prints resolution for the current beamlize and analyzer setting
|
|
|
|
|
|
scanXAS #scans the mono with ID fixed (quick and dirty, huge background)
|
|
|
scanXAS_BL #XAS scans: mono and ID move together (slow)
|
|
|
```
|
|
|
|
|
|
# Sample position
|
|
|
```python
|
|
|
ARPES_transfer() # moves motors to transfer position
|
|
|
ARPES_measure() # moves motors to measure position
|
|
|
|
|
|
scanMesh([-1.5,1.5,.1],[12.5,14,5,.5]) #makes 2D image; EA.put before if you want EA counts
|
|
|
|
|
|
mprint() # gets a list of current motor positions
|
|
|
sample([list_from_mprint]) # to go to a position
|
|
|
```
|
|
|
# Motor scans
|
|
|
if EA is on records total number of counts not spectra:
|
|
|
```python
|
|
|
scanx(start,stop,step) #x,y,z,theta,focus
|
|
|
```
|
|
|
# Electron Analyzer (Scienta)
|
|
|
```python
|
|
|
EA.off() # turns off analyzer
|
|
|
EA.get() # get current analyzer settings
|
|
|
EA.put(KE,PE) # changes the current analyzer setting
|
|
|
|
|
|
scanEA(EAlist) # takes an analyzer spectra, number of parameters in EAlist determine the scan type
|
|
|
scanFM(RoughPositions, thList, EAlist) # takes a Fermi Map: moveS th, linear interp between RoughPositions, takes spectra
|
|
|
scanEA_hv(hvlist,EAlist=EAlist) # takes a spectra as a function of photon energy
|
|
|
scanx_EA(EAlist, start,stop,step, mode) # takes a spectra as a function of x/y/z/th
|
|
|
```
|
|
|
|
|
|
# Loading the data and graphing
|
|
|
|
|
|
### Loading data:
|
|
|
```python
|
|
|
data=IEXdata(start) # initializes the loading and loads filenumber start
|
|
|
data.update(start,inf,overwrite=False) # loads only unloaded data
|
|
|
```
|
|
|
<br>
|
|
|
|
|
|
### Ploting specta:
|
|
|
*kwargs are the standard plotting kwargs plus some extras listing in the 'help'
|
|
|
```python
|
|
|
data.plotEA(MDAscanNum) # plot EA image
|
|
|
data.plotEDC(MDAscanNum) # angle integrated data
|
|
|
```
|
|
|
<br>
|
|
|
|
|
|
### Fermi maps:
|
|
|
Run in ipython_29id from the terminal
|
|
|
```python
|
|
|
EAImageTool(MDAscanNum) # stacks the data from a single mda file
|
|
|
```
|
|
|
<br>
|
|
|
|
|
|
### MDA scans:
|
|
|
- det[16] => TEY
|
|
|
- det[17] => EA
|
|
|
```python
|
|
|
data.plotMDA(scanNum,detNum) # plots 1D and 2D mda scans,
|
|
|
# TEY: detNum=16, EA: detNum=17
|
|
|
|
|
|
data.mda[scanNum].detAll() # lists all detectors
|
|
|
data.mda.keys() # lists all the mda data loaded
|
|
|
data.mda[scanNum].EA.keys() # lists all the EA data loaded for a give EA scan (useful for Fermi maps, multiple sweeps)
|
|
|
```
|
|
|
<br>
|
|
|
|
|
|
### Metadata:
|
|
|
```python
|
|
|
data.mda[scanNum].EA[EAnum].header.all # dictionary of all the meta data
|
|
|
data.mda[scanNum].EA[EAnum].header.hv # mono readback
|
|
|
data.mda[scanNum].EA[EAnum].header.BeamlineInfo # beamline parameters
|
|
|
data.mda[171].EA[1].header.HVscanInfo # analyzer parameters
|
|
|
data.mda[171].EA[1].header.sampleInfo # sample parameter (position and temp)
|
|
|
```
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|