Page History
...
From from smalldata_tools top level directory, run the following command to launch an IPython shell with pre-loaded a data analysis class for the relevant run
Once an average image has been created, a ROI can be selected by running:
Code Block | ||||
---|---|---|---|---|
|
Code Block | ||||
---|---|---|---|---|
| ||||
./producers/runSmallDataAna -r <#> [-e <expname>] |
The average image can be then made by running
SDAna In: anaps.AvImage()
This will by default create an average image of 100 events of an area detector. The method will list and prompt for a detector name if more than one was recorded.The full command with all its options can be looked via using the "?" feature of python:
SDAna In: anaps.AvImage?
More details can be found in the section Working with Images from camera/areadetectors
ROISDAna In: anaps.SelectRegion() |
This will by draw the image and let you select a rectangular area of interest with the mouse. At this point, you click on two corners of the ROI. Once you are happy with your selection, it will print the numbers you need to enter in the producer file.
Below both what the terminal session looks like (here with an optional selection of different plot limits, by default 5% and 99.5% are used). Figure 2 will come up when you get asked if you are happy with the selection which appears on the right side of that figure. "n" means you can to click again until you are satisfied. "y" will print the ROI as it should be entered in the LittleDataProducer Smalldata producer file. Figure 3 shows A third figure will then show the ROI again, this time obtained from the raw data rather than the image (a technical detail). The more striking different is that the scaling/limit are now taken from only the ROI rather than the whole image.
Select ROI
The SelectRegion function works after an average image has been created. It expects you to select the two opposite corners of a rectangle. The selected region will then be plotted on the right hand side so that you can decide if this was good enough. If "yes" is selected, the ROI is plotted again using a color scale based on the ROI only and the ROI is printed in a form that can be copy/pasted into the producer python file.Overview
Content Tools