| ... | ... | @@ -248,19 +248,19 @@ Import iexplot module: |
|
|
|
from iexplot import *
|
|
|
|
```
|
|
|
|
|
|
|
|
### data loading
|
|
|
|
### Loading data
|
|
|
|
```python
|
|
|
|
data = IEX_nData(scan_num_start, scan_num_stop/inf, path=path, prefix=prefix)
|
|
|
|
```
|
|
|
|
|
|
|
|
### raw data
|
|
|
|
### Accessing raw data
|
|
|
|
For a direct access to the raw data:
|
|
|
|
```python
|
|
|
|
x = data.mda[scan_num].posx[0].data
|
|
|
|
y = data.mda[scan_num].det[det_num].data
|
|
|
|
```
|
|
|
|
|
|
|
|
### basic mda plots:
|
|
|
|
### Basic mda plots:
|
|
|
|
```python
|
|
|
|
# n1,n2,n3 is a scan number
|
|
|
|
# d1,d2,d3 is a detector number - see table below
|
| ... | ... | @@ -284,7 +284,7 @@ fit_d3() # gaussian fit for last scan on d3 |
|
|
|
fit_centroid(n) # to calculate avg centroid position during scan n
|
|
|
|
```
|
|
|
|
|
|
|
|
#### nData
|
|
|
|
### nData
|
|
|
|
```python
|
|
|
|
from Macros_29id.IEX_nData import *
|
|
|
|
|
| ... | ... | @@ -310,7 +310,7 @@ plt.show() |
|
|
|
%matplotlib inline # inline plot
|
|
|
|
```
|
|
|
|
|
|
|
|
#### mdaFile
|
|
|
|
### mdaFile
|
|
|
|
```python
|
|
|
|
mydata=mdaFile(1,3) # loads mda scans 1 to 3
|
|
|
|
mydata.update(4) # loads another scan
|
| ... | ... | @@ -319,7 +319,7 @@ mydata.header[3].all # return dictionary of metadata |
|
|
|
mydata.header[3].UB # return dictionary of UB metadata
|
|
|
|
```
|
|
|
|
|
|
|
|
## Data Scheme
|
|
|
|
## Detector list
|
|
|
|
|
|
|
|
| Detector | Det Number Raw signal | Det Number Normalized (d/I<sub>0</sub>) | Description | PV | Controller |
|
|
|
|
|----------|-----------------------|-----------------------------------------|-------------|----|------------|
|
| ... | ... | |