Page History
...
In order to decide on the proper ROI, fit a team center or make a mask, the first step is always to create an image that you would like to use as base. This is achieved using the following function in the python terminal opened from:
/cdssdf/data/lcls/psdmds/<hutch>/<expname>/results/smalldata_tools
via:
Code Block | ||||
---|---|---|---|---|
| ||||
./producers/runSmallDataAna -r |
...
<#> [-e <expname>] |
The following command will create an average image of 100 events of an area detector with a set of default parameters:
Code Block | ||||
---|---|---|---|---|
| ||||
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 area detector is found in the dataset.
The full command with all its options can be looked via using the "?" feature of pythoniPython:
Code Block | ||||
---|---|---|---|---|
| ||||
SDAna In: anaps.AvImage? |
...
Code Block | ||||
---|---|---|---|---|
| ||||
SDAna In: anaps.plotAvImage() |
Define a ROI
To get the appropriate pixel values for you ROI, call:
Code Block | ||||
---|---|---|---|---|
| ||||
SDAna In: anaps.SelectRegion() |
In the window that comes up, select the two corners of the rectangular ROI you are interested in. Once you are ok with your selection, accept it and the code will print values you can copy/paste into the producer file.
...
The SmallDataAna session can typically be used to help setting the parameters for the smalldata production.
-------------------------------------------------------------------------------------------------------------------------------------------------------------
...