... | ... | @@ -55,4 +55,13 @@ The **debug** parameter (boolean) can just turn on verbose output. |
|
|
|
|
|
The image is saved (cached) as tiff file into a ‘./data’ folder. From there, it can be used for other manual analysis. Or if **recalc** is kept at default value (0), the next time the image is read, it is loaded from this cache (to save some time..). If recalc is set to 1, then all data are always loaded from the server.
|
|
|
|
|
|
The **dictionary** with the diagnostics can be avoided and the source name provided directly. In that case, not trainId offset is used, i.e. Jungfrau_image=em.get_image(run,runNo,diag_nickname='whatever', diag=”HED_IA1_JF500K1/DET/JNGFR01:daqOutput”, trainId=trainId,debug=debug,recalc=recalc) |
|
|
\ No newline at end of file |
|
|
The **dictionary** with the diagnostics can be avoided and the source name provided directly. In that case, not trainId offset is used, i.e. Jungfrau_image=em.get_image(run,runNo,diag_nickname='whatever', diag=”HED_IA1_JF500K1/DET/JNGFR01:daqOutput”, trainId=trainId,debug=debug,recalc=recalc)
|
|
|
|
|
|
### Image calibration
|
|
|
Image calibration is now made only very simply for ePix 1. It works like that you load an array with the dark run into extra_mmm.ePix1_dark, then the code automatcially subtracts this image from all the ePix data.
|
|
|
Example:
|
|
|
```
|
|
|
dark = np.array(Image.open('data/ePixDark.tif'))
|
|
|
em.ePix_dark=dark
|
|
|
epix_corrected_image=em.get_image(run,runNo,'ePix1')
|
|
|
``` |
|
|
\ No newline at end of file |