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 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
languagepy
themeRDark
SDAna In: anaps.AvImage?

...

Code Block
languagepy
themeRDark
SDAna In: anaps.plotAvImage()

Define a ROI

To get the appropriate pixel values for you ROI, call:

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

-------------------------------------------------------------------------------------------------------------------------------------------------------------

...