Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

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
languagebash
themeRDark
./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
languagepy
themeRDark
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 pythoniPython:

Code Block
languagepy
themeRDark
SDAna In: anaps.AvImage?

...

Code Block
languagepy
themeRDark
SDAna 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. 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 smd_producer file.

A new figure will also 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.

Find the center for the azimuthal integration

...